Rewrite Float commands in Latex3 and move them to new Floats package.
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{PrimeTeX/packages/Header}[2025-08-16]
|
||||
\ProvidesExplPackage{PrimeTeX/packages/Header}{2025-08-16}{1.0}{
|
||||
Customize header and footer layout and contents.
|
||||
}
|
||||
|
||||
\RequirePackage{PrimeTeX/packages/Layout}
|
||||
|
||||
\ProvideLength{\insideheaderoffset}[\bigfloatoverhang]
|
||||
\ProvideLength{\outsideheaderoffset}[
|
||||
\bigfloatoverhang * \real{\bigfloatoffsetratio}
|
||||
]
|
||||
\dim_new:N \g_header_insideoffset_dim
|
||||
\dim_set:Nn \g_header_insideoffset_dim {\c_BigFloat_overhang_dim}
|
||||
\dim_new:N \g_header_outsideoffset_dim
|
||||
\dim_set:Nn \g_header_outsideoffset_dim {
|
||||
\fp_to_dim:n {\c_BigFloat_overhang_dim * \c_BigFloat_offset_fp}
|
||||
}
|
||||
|
||||
\ProvideLength{\HeaderInsideOffset}[\BigFloatOverhang]
|
||||
\ProvideLength{\HeaderOutsideOffset}[\BigFloatOverhang * \real{\BigFloatOffset}]
|
||||
|
||||
% Header & Footer Options
|
||||
\RequirePackage{fancyhdr}
|
||||
@@ -38,14 +45,14 @@
|
||||
|
||||
\fancypagestyle{fancy}{
|
||||
\ifthenelse{\boolean{isElectronic}}{
|
||||
\fancyhfoffset[L]{\insideheaderoffset}
|
||||
\fancyhfoffset[R]{\outsideheaderoffset}
|
||||
\fancyhfoffset[L]{\HeaderInsideOffset}
|
||||
\fancyhfoffset[R]{\HeaderOutsideOffset}
|
||||
\fancyhead[L]{\partlabel}
|
||||
\fancyhead[R]{\chapappname{}\leftmark}
|
||||
|
||||
\fancyfoot[R]{\thepage}
|
||||
}{
|
||||
\fancyhfoffset[LE,RO]{\outsideheaderoffset}
|
||||
\fancyhfoffset[LE,RO]{\HeaderOutsideOffset}
|
||||
\fancyhead[LE]{\partlabel}
|
||||
\fancyhead[RO]{\chapappname\leftmark}
|
||||
|
||||
@@ -59,11 +66,11 @@
|
||||
\renewcommand{\footrulewidth}{0pt}
|
||||
|
||||
\ifthenelse{\boolean{isElectronic}}{
|
||||
\fancyhfoffset[L]{\insideheaderoffset}
|
||||
\fancyhfoffset[R]{\outsideheaderoffset}
|
||||
\fancyhfoffset[L]{\HeaderInsideOffset}
|
||||
\fancyhfoffset[R]{\HeaderOutsideOffset}
|
||||
\fancyfoot[R]{\thepage}
|
||||
}{
|
||||
\fancyhfoffset[LE,RO]{\outsideheaderoffset}
|
||||
\fancyhfoffset[LE,RO]{\HeaderOutsideOffset}
|
||||
\fancyfoot[LE,RO]{\thepage}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user