mirror of
https://github.com/ElegantLaTeX/ElegantBook.git
synced 2026-01-26 04:14:35 +08:00
fix header odd/even
This commit is contained in:
@@ -74,7 +74,7 @@
|
|||||||
|
|
||||||
\ProcessKeyvalOptions*\relax
|
\ProcessKeyvalOptions*\relax
|
||||||
% \ProcessOptions*\relax
|
% \ProcessOptions*\relax
|
||||||
\LoadClass[a4paper,oneside,openany]{book}
|
\LoadClass[a4paper,oneside]{book}
|
||||||
|
|
||||||
\RequirePackage{indentfirst,comment}
|
\RequirePackage{indentfirst,comment}
|
||||||
\setlength\parindent{2em}
|
\setlength\parindent{2em}
|
||||||
@@ -318,6 +318,7 @@
|
|||||||
headsep=4mm,
|
headsep=4mm,
|
||||||
footskip=12mm
|
footskip=12mm
|
||||||
}
|
}
|
||||||
|
|
||||||
\ifdefstring{\ELEGANT@marginpar}{margintrue}{
|
\ifdefstring{\ELEGANT@marginpar}{margintrue}{
|
||||||
\geometry{
|
\geometry{
|
||||||
marginparwidth=5cm, marginparsep=5mm,
|
marginparwidth=5cm, marginparsep=5mm,
|
||||||
@@ -645,13 +646,12 @@
|
|||||||
|
|
||||||
|
|
||||||
\ifdefstring{\ELEGANT@base}{hide}{
|
\ifdefstring{\ELEGANT@base}{hide}{
|
||||||
|
\fancyfoot[c]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\scriptsize--\;\thepage\;--}
|
||||||
\if@twoside
|
\if@twoside
|
||||||
\fancyhead[ER,OR]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\rightmark}
|
\fancyhead[ER]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\leftmark}
|
||||||
\fancyhead[El,OL]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\leftmark}
|
\fancyhead[OL]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\rightmark}
|
||||||
\else
|
\else
|
||||||
\fancyhead[L]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\leftmark}
|
|
||||||
\fancyhead[R]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\rightmark}
|
\fancyhead[R]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\rightmark}
|
||||||
\fancyfoot[c]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}--\;\thepage/\pageref*{LastPage}\;--}
|
|
||||||
\fi
|
\fi
|
||||||
}{\relax}
|
}{\relax}
|
||||||
|
|
||||||
@@ -659,12 +659,12 @@
|
|||||||
\ifdefstring{\ELEGANT@base}{show}{
|
\ifdefstring{\ELEGANT@base}{show}{
|
||||||
\fancyfoot[c]{\catcode`\$=3\relax\base{structurecolor}{88}}
|
\fancyfoot[c]{\catcode`\$=3\relax\base{structurecolor}{88}}
|
||||||
\if@twoside
|
\if@twoside
|
||||||
\fancyhead[ER,OL]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}--\;\thepage/\pageref*{LastPage}\;--}
|
\fancyhead[EL,OR]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}--\;\thepage/\pageref*{LastPage}\;--}
|
||||||
\fancyhead[EL]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\leftmark}
|
\fancyhead[ER]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\leftmark}
|
||||||
\fancyhead[OR]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\rightmark}
|
\fancyhead[OL]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\rightmark}
|
||||||
\else
|
\else
|
||||||
\fancyhead[R]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}--\;\thepage/\pageref*{LastPage}\;--}
|
\fancyhead[R]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}--\;\thepage/\pageref*{LastPage}\;--}
|
||||||
\fancyhead[L]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\leftmark}
|
\fancyhead[L]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\rightmark}
|
||||||
\fi
|
\fi
|
||||||
}{\relax}
|
}{\relax}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user