Skip to content

Commit

Permalink
Use pagestyle empty instead of titling page.
Browse files Browse the repository at this point in the history
titling page has weird semantics. So, instead, it's easier (and the memman
recommends) using `\\pagestyle{empty}`

Fixes #42
  • Loading branch information
artasparks committed Oct 5, 2015
1 parent ab25705 commit 521b7d3
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 26 deletions.
Binary file modified examples/game_commentary/game_commentary.pdf
Binary file not shown.
12 changes: 5 additions & 7 deletions examples/game_commentary/game_commentary.tex
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,11 @@

\begin{document}
%%% The Frontmatter. %%%
\begin{titlingpage}
\pagestyle{empty}
\mainBookTitle
\end{titlingpage}
\cleartoverso

% Copyright Page
\begin{titlingpage}
\begin{vplace}[0.7]
\footnotesize{
\textcopyright\ 2015 by Foo Publisher \\
Expand Down Expand Up @@ -115,12 +114,11 @@
Created using LaTeX generated by GPub.js.
}\\
\end{vplace}
\end{titlingpage}

\newpage
\frontmatter
\cleartorecto

\tableofcontents*
\pagestyle{companion}
\frontmatter

\chapter{Foreward}
\textbf{This} is an \textit{example} foreword.
Expand Down
8 changes: 4 additions & 4 deletions examples/game_commentary/game_commentary.toc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
\contentsline {chapter}{Foreward}{ii}{chapter*.1}
\contentsline {chapter}{Preface}{iii}{chapter*.2}
\contentsline {chapter}{Acknowledgments}{iv}{chapter*.3}
\contentsline {chapter}{Introduction}{v}{chapter*.4}
\contentsline {chapter}{Foreward}{i}{chapter*.1}
\contentsline {chapter}{Preface}{ii}{chapter*.2}
\contentsline {chapter}{Acknowledgments}{iii}{chapter*.3}
\contentsline {chapter}{Introduction}{iv}{chapter*.4}
\contentsline {chapter}{\chapternumberline {1}Introduction}{1}{chapter.1}
\contentsline {chapter}{\chapternumberline {2}An Old Fuseki}{4}{chapter.2}
\contentsline {chapter}{\chapternumberline {3}The Brilliant Peep}{35}{chapter.3}
Expand Down
16 changes: 9 additions & 7 deletions src/book/latex/latex_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,17 @@ gpub.book.latex.defaultTemplate = [
//'\\renewcommand{\\printchapternum}{\\space}', -- Force no chapter nums

'',
////////////////////////
// Start the document //
////////////////////////
'\\begin{document}',
'%%% The Frontmatter. %%%',
'\\begin{titlingpage}', // Don't number the title page
'\\pagestyle{empty}',
'\\mainBookTitle',
'\\end{titlingpage}',
'\\cleartoverso',
'',
'<%#frontmatter.copyright%>',
'% Copyright Page',
'\\begin{titlingpage}', // Don't page numbers on the title page
'\\begin{vplace}[0.7]',
'\\footnotesize{',
'\\textcopyright\\ <%frontmatter.copyright.publishYear%> by <%frontmatter.copyright.publisher%> \\\\',
Expand Down Expand Up @@ -148,15 +150,15 @@ gpub.book.latex.defaultTemplate = [
'Created using LaTeX generated by GPub.js.',
'}\\\\',
'\\end{vplace}',
'\\end{titlingpage}',
'<%/frontmatter.copyright%>',
'',
'\\newpage',
'\\frontmatter',
'\\cleartorecto',
//'\\cleartoverso',
'',
'<%#frontmatter.generateToc%>',
'\\tableofcontents*',
'<%/frontmatter.generateToc%>',
'\\pagestyle{companion}',
'\\frontmatter',
'',
'<%#frontmatter.foreword%>',
'\\chapter{Foreward}',
Expand Down
2 changes: 1 addition & 1 deletion src/compiled/gpub.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions src/compiled/gpub_combined.js
Original file line number Diff line number Diff line change
Expand Up @@ -1716,15 +1716,17 @@ gpub.book.latex.defaultTemplate = [
//'\\renewcommand{\\printchapternum}{\\space}', -- Force no chapter nums

'',
////////////////////////
// Start the document //
////////////////////////
'\\begin{document}',
'%%% The Frontmatter. %%%',
'\\begin{titlingpage}', // Don't number the title page
'\\pagestyle{empty}',
'\\mainBookTitle',
'\\end{titlingpage}',
'\\cleartoverso',
'',
'<%#frontmatter.copyright%>',
'% Copyright Page',
'\\begin{titlingpage}', // Don't page numbers on the title page
'\\begin{vplace}[0.7]',
'\\footnotesize{',
'\\textcopyright\\ <%frontmatter.copyright.publishYear%> by <%frontmatter.copyright.publisher%> \\\\',
Expand Down Expand Up @@ -1757,15 +1759,15 @@ gpub.book.latex.defaultTemplate = [
'Created using LaTeX generated by GPub.js.',
'}\\\\',
'\\end{vplace}',
'\\end{titlingpage}',
'<%/frontmatter.copyright%>',
'',
'\\newpage',
'\\frontmatter',
'\\cleartorecto',
//'\\cleartoverso',
'',
'<%#frontmatter.generateToc%>',
'\\tableofcontents*',
'<%/frontmatter.generateToc%>',
'\\pagestyle{companion}',
'\\frontmatter',
'',
'<%#frontmatter.foreword%>',
'\\chapter{Foreward}',
Expand Down

0 comments on commit 521b7d3

Please sign in to comment.