Browse Source

Better page and chapter numbering

The links in the ToC now work properly.
master
LaTeX Anon 1 year ago
parent
commit
c8d15c6ba3
  1. 33
      bboc.tex

33
bboc.tex

@ -1,4 +1,4 @@
\documentclass[12pt,a4paper]{book}
\documentclass[12pt,a4paper,notitlepage]{book}
\usepackage{authblk}
\usepackage{csquotes}
\usepackage[stable]{footmisc}
@ -20,6 +20,14 @@
\newcommand{\chapterauthor}[1]{\begin{center}\textbf{#1}\end{center}}
\newcommand{\rauthor}[1]{\begin{flushright}\textbf{#1}\end{flushright}}
% TODO: dashes to maybe replace: — –
% counters for arabic and roman footnotes respectively
\newcounter{afn}
\newcounter{rfn}
% roman footnotes. has to be one big 'ol line for LaTeX to not insert lots of whitespace
\newcommand{\rfootnote}[1]{\setcounter{afn}{\value{footnote}}{\renewcommand{\thefootnote}{\Roman{footnote}}\setcounter{footnote}{\value{rfn}}\footnote{#1}\setcounter{rfn}{\value{footnote}}}\setcounter{footnote}{\value{afn}}}
\newcommand{\rfootnotemark}{\setcounter{afn}{\value{footnote}}{\renewcommand{\thefootnote}{\Roman{footnote}}\setcounter{footnote}{\value{rfn}}\footnotemark\setcounter{rfn}{\value{footnote}}}\setcounter{footnote}{\value{afn}}}
\newcommand{\rfootnotetext}[1]{\setcounter{afn}{\value{footnote}}{\renewcommand{\thefootnote}{\Roman{footnote}}\setcounter{footnote}{\value{rfn}}\footnotetext{#1}\setcounter{rfn}{\value{footnote}}}\setcounter{footnote}{\value{afn}}}
\title{The Black Book of Capitalism}
\author{Jean Ziegler, 1998 \and Translated by Based BBOC Anon \and Typeset by \LaTeX\,Anon}
@ -27,8 +35,7 @@
\begin{document}
\pagenumbering{Roman}
\def\thepage{} % no page numbers on the cover
\frontmatter
\begin{textblock*}{\paperwidth}(0pt,0pt)
\noindent\includegraphics[height=\paperheight,width=\paperwidth]{ClipboardImage.png}
\end{textblock*}
@ -41,27 +48,15 @@ This is the inside of the cover. We could put stuff here.
\maketitle
\pagenumbering{arabic}
\tableofcontents
\renewcommand{\thechapter}{\Roman{chapter}}
%\renewcommand{\thechapter}{\Roman{chapter}}
\counterwithout*{footnote}{chapter}
\setcounter{footnote}{-1} % this makes the first footnote be 0 so the footnote numbers line up with BBOC Anon
% counters for arabic and roman footnotes respectively
\newcounter{afn}
\newcounter{rfn}
% roman footnotes. has to be one big 'ol line for LaTeX to not insert lots of whitespace
\newcommand{\rfootnote}[1]{\setcounter{afn}{\value{footnote}}{\renewcommand{\thefootnote}{\Roman{footnote}}\setcounter{footnote}{\value{rfn}}\footnote{#1}\setcounter{rfn}{\value{footnote}}}\setcounter{footnote}{\value{afn}}}
\newcommand{\rfootnotemark}{\setcounter{afn}{\value{footnote}}{\renewcommand{\thefootnote}{\Roman{footnote}}\setcounter{footnote}{\value{rfn}}\footnotemark\setcounter{rfn}{\value{footnote}}}\setcounter{footnote}{\value{afn}}}
\newcommand{\rfootnotetext}[1]{\setcounter{afn}{\value{footnote}}{\renewcommand{\thefootnote}{\Roman{footnote}}\setcounter{footnote}{\value{rfn}}\footnotetext{#1}\setcounter{rfn}{\value{footnote}}}\setcounter{footnote}{\value{afn}}}
\input{intro}
\renewcommand{\thechapter}{\arabic{chapter}}
\setcounter{chapter}{0}
\mainmatter
\input{01_Capitalisms_origin}
\input{02_Servile_economy_and_capitalism}
\input{03_Shoot,_theyre_just_proles}
@ -95,6 +90,8 @@ This is the inside of the cover. We could put stuff here.
\input{31_An_ad_is_worth_a_thousand_bombs_Advertisings_crimes_in_modern_warfare_Yves_Frémion}
\input{32_Even_if_the_abolition_of_capitalism_would_not_be_enough_Monique_and_Roland_Weyl}
\input{33_Capitalism_and_barbary_Black_table_of_slaughters_and_wars_in_the_XXth_century}
\backmatter
\input{appendix}
\bibliography{refs}
@ -112,7 +109,7 @@ This is the inside of the back.
\newpage{\thispagestyle{empty}}
This text is behind the back cover image and is invisible.
\def\thepage{}
%\def\thepage{}
\begin{textblock*}{\paperwidth}(0pt,0pt)
\noindent\includegraphics*[height=\paperheight,width=\paperwidth]{Oekaki.png}
\end{textblock*}

Loading…
Cancel
Save