Page numbers implemented via counter
This commit is contained in:
parent
8b0a4d7aac
commit
2fa2804961
@ -19,8 +19,11 @@
|
||||
% https://ctan.org/pkg/forloop
|
||||
% Output a variable value: https://sodocumentation.net/latex/topic/9224/counters--if-statements-and-loops-with-latex
|
||||
\usepackage{forloop}
|
||||
\newcounter{ct}
|
||||
\def\pgct{3} % Set this value to the number of pages you want + 1
|
||||
\newcounter{ct} % Create a counter for our loop
|
||||
\newcounter{pg} % Create a counter for our page numbers
|
||||
\setcounter{pg}{1} % Change the value from 0 to 1
|
||||
\def\pgct{11} % Set this value to the number of leaves you want + 1
|
||||
% Note: a "leaf" is composed of two double-sided pages.
|
||||
|
||||
% Select an appropriate monotype font
|
||||
\usepackage[varqu]{inconsolata}
|
||||
@ -36,7 +39,7 @@
|
||||
\ttfamily
|
||||
|
||||
% Begin our loop
|
||||
%\forloop{ct}{1}{\value{ct}<\value{pgct}}{
|
||||
\forloop{ct}{1}{\value{ct}<\pgct{}}{
|
||||
|
||||
|
||||
% This is the right page header
|
||||
@ -48,8 +51,9 @@
|
||||
rows = {5.5mm, m, rowsep=1.5pt }
|
||||
}
|
||||
TITLE: & & BOOK: & & Page \\
|
||||
PROJECT: & & DATE: & & {\LARGE \the\value{ct}} \\
|
||||
PROJECT: & & DATE: & & {\LARGE \arabic{pg}} \\
|
||||
\end{tblr}
|
||||
\stepcounter{pg}
|
||||
|
||||
\newpage
|
||||
|
||||
@ -62,11 +66,13 @@ PROJECT: & & DATE: & & {\LARGE \the\value{ct}} \\
|
||||
rows = {5.5mm, m, rowsep=1.5pt }
|
||||
}
|
||||
TITLE: & & BOOK: & & Page \\
|
||||
PROJECT: & & DATE: & & {\LARGE \the\value{ct}} \\
|
||||
PROJECT: & & DATE: & & {\LARGE \arabic{pg}} \\
|
||||
\end{tblr}
|
||||
\stepcounter{pg}
|
||||
|
||||
\newpage
|
||||
|
||||
% End our loop
|
||||
%}
|
||||
}
|
||||
|
||||
\end{document}
|
Loading…
Reference in New Issue
Block a user