lab-notebook/lab-notebook-contents.tex

78 lines
1.7 KiB
TeX
Raw Normal View History

2024-04-01 16:47:16 +00:00
\documentclass[10pt,twoside]{book}
\usepackage[utf8]{inputenc}
% Let's set up our page size
\usepackage[
letterpaper,
% A4,
bindingoffset=15mm,
textheight=250mm,
textwidth=175mm,
top=14mm,
footskip=5mm,
marginparwidth=0mm,
marginparsep=0mm
]{geometry}
% Let's set up a loop to output the number of pages we need
% https://texfaq.org/FAQ-repeat-num
% https://ctan.org/pkg/forloop
% Output a variable value: https://sodocumentation.net/latex/topic/9224/counters--if-statements-and-loops-with-latex
\usepackage{forloop}
2024-04-01 17:10:24 +00:00
\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.
2024-04-01 16:47:16 +00:00
% Select an appropriate monotype font
\usepackage[varqu]{inconsolata}
% Build tables
\usepackage{tabularray}
\author{Kenneth John Odle}
\begin{document}
\pagestyle{empty}
\ttfamily
% Begin our loop
2024-04-01 17:10:24 +00:00
\forloop{ct}{1}{\value{ct}<\pgct{}}{
2024-04-01 16:47:16 +00:00
2024-04-01 16:55:55 +00:00
% This is the right page header
\begin{tblr}{
width = 175mm,
colspec = { | X[10,r] | X[40,r] | X[10,r] | X[30,r] | X[10,c] | },
hline{1,3} = {1-5}{0.5pt},
hline{2} = {1-4}{0.5pt},
rows = {5.5mm, m, rowsep=1.5pt }
}
TITLE: & & BOOK: & & Page \\
2024-04-01 17:10:24 +00:00
PROJECT: & & DATE: & & {\LARGE \arabic{pg}} \\
2024-04-01 16:55:55 +00:00
\end{tblr}
2024-04-01 17:10:24 +00:00
\stepcounter{pg}
2024-04-01 16:55:55 +00:00
\newpage
% This is the left page header
2024-04-01 16:47:16 +00:00
\begin{tblr}{
width = 175mm,
colspec = { | X[10,r] | X[40,r] | X[10,r] | X[30,r] | X[10,c] | },
hline{1,3} = {1-5}{0.5pt},
hline{2} = {1-4}{0.5pt},
rows = {5.5mm, m, rowsep=1.5pt }
}
TITLE: & & BOOK: & & Page \\
2024-04-01 17:10:24 +00:00
PROJECT: & & DATE: & & {\LARGE \arabic{pg}} \\
2024-04-01 16:47:16 +00:00
\end{tblr}
2024-04-01 17:10:24 +00:00
\stepcounter{pg}
2024-04-01 16:47:16 +00:00
2024-04-01 17:10:24 +00:00
\newpage
2024-04-01 16:47:16 +00:00
% End our loop
2024-04-01 17:10:24 +00:00
}
2024-04-01 16:47:16 +00:00
\end{document}