Skip to content
This repository was archived by the owner on Jan 10, 2021. It is now read-only.

Commit 90b55ff

Browse files
fix page numbers in print version header
1 parent 4a9eba7 commit 90b55ff

File tree

6 files changed

+5
-4
lines changed

6 files changed

+5
-4
lines changed

Books/Example/Example-Amazon.mobi

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

Books/Example/Example-ebook.pdf

2.12 KB
Binary file not shown.

Books/Example/Example-print.pdf

4.33 KB
Binary file not shown.

Books/Example/Example.epub

0 Bytes
Binary file not shown.

Pandoc/templates/cs-5x8-pdf.latex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ $endif$
206206
\setmainfont[
207207
Ligatures=TeX,
208208
ItalicFont={Linux Libertine O:style=Italic},
209+
BoldFont={Linux Libertine O:style=Bold},
210+
BoldItalicFont={Linux Libertine O:style=Bold Italic},
209211
]{Linux Libertine O}
210212

211213
%\setmainfont[
@@ -252,7 +254,6 @@ $endif$
252254
\newfontfamily\primaryfont[Ligatures=TeX, Numbers=OldStyle]{Linux Libertine O}
253255
\newfontfamily\titlefont[Scale=1.75, Ligatures=TeX]{Linux Libertine O}
254256

255-
256257
%\setmainfont
257258
%\renewcommand{\sfdefault}{URW Gothic}
258259
%\setmonofont
@@ -475,9 +476,9 @@ $endif$
475476
\renewcommand{\chaptermark}[1]{\markboth {\@chapapp\ \thechapter \hspace{1mm}-\hspace{1mm}{#1}}{}}
476477

477478
\fancyfoot[C]{} % remove numbered footers
478-
\fancyhead[RO,LE]{\bfseries\itshape\primaryfont \thepage} % add page numbers to the header
479-
\fancyhead[LO]{\bfseries\itshape\primaryfont \nouppercase \leftmark} % add subtitle to header
480-
\fancyhead[RE]{\bfseries\itshape\primaryfont \nouppercase \@title}
479+
\fancyhead[RO,LE]{\primaryfont\bfseries \thepage} % add page numbers to the header
480+
\fancyhead[LO]{\primaryfont\bfseries\itshape \nouppercase \leftmark} % add subtitle to header
481+
\fancyhead[RE]{\primaryfont\bfseries\itshape \nouppercase \@title}
481482
\renewcommand{\headrulewidth}{0.0pt}
482483
\makeatother
483484

0 commit comments

Comments
 (0)