make smaller and easily to make duplicate pages

This commit is contained in:
David Daily 2024-12-17 10:59:06 -06:00
parent e4e2950ae6
commit 9974587697
2 changed files with 30 additions and 22 deletions

BIN
main.pdf

Binary file not shown.

View File

@ -1,35 +1,37 @@
\documentclass{article} \documentclass{article}
\usepackage[fontsize=1.5em]{fontsize} % "wait doesn't em depend on font size?" don't ask me how this works \usepackage[fontsize=6pt]{fontsize} % will need adjusted if you change the paper size
\usepackage{parskip} % fuck them paragraphs \usepackage{parskip} % fuck them paragraphs
\usepackage{tikz} % no good LaTeX abuse without TikZ, mein schmuzi-pusi \usepackage{tikz} % no good LaTeX abuse without TikZ, mein schmuzi-pusi
\usepackage{lmodern,fontspec} % better font, change it if you want ¯\_(ツ)_ \usepackage{lmodern,fontspec,lipsum} % better font, change it if you want ¯\_(ツ)_
\usepackage{qrcode} % QR codes ezpz \usepackage{qrcode} % QR codes ezpz
\usepackage[% \usepackage[%
papersize={8.5in,5.5in}, % this is half of letter paper, replace whole line with just "a5paper," to switch to A5 (would look like `a5paper,`, no "papersize=" or anything) papersize={4.25in,2.75in}, % this is a quarter of letter paper, half was too big
margin=15mm left=23mm, right=23mm, % this is adjusted to right inside the QR codes, use the option "showframe" to show the bounding box
bottom=-3mm
]{geometry} ]{geometry}
\setlength{\headsep}{3mm}
% I tried using EM and other relative measurements as much as possible so that size conversions are easy. Metric is objectively better (I will fight you in real life about most aspects of this, I'm actively working on recipe localization), but units are just a social construct. % I tried using em and other relative measurements as much as possible so that size conversions are easy. Metric is objectively better (I will fight you in real life about most aspects of this, I'm actively working on recipe localization), but units are just a social construct.
\def\nl{\\\vspace{1em}} % just to give some extraspace between the things \def\nl{\\\vspace{1em}} % just to give some extraspace between the things
\pagestyle{empty} \def\paste{\pagestyle{empty}{\fontfamily{lmss}\selectfont\begin{center} % making it a command so that we can easily make multiple pages, easily undone if you don't like it
\begin{document}{\fontfamily{lmss}\selectfont\begin{center}
% this is VERY SIMPLE, and on purpose. You don't want something? comment that biznatch out. Everything else should shuffle around just fine. % this is VERY SIMPLE, and on purpose. You don't want something? comment that biznatch out. Everything else should shuffle around just fine.
%\setmainfont{[Hellvetica.ttf]} % uncomment if you want a better font %\setmainfont{[Hellvetica.ttf]} % uncomment if you want a better font
{\LARGE Title}\\ {\Huge Title}\\
{\small subtitle}\nl % you might need to mess with the spacing here to make it look even better {\small subtitle} % you might need to mess with the spacing here to make it look even better
{\large Model:} model\nl \nl{\large Model:} model
{\large Layout:} layout\nl \nl{\large Layout:} layout
{\large Switches:} switches\nl \nl{\large Switches:} switches
{\large Keycaps:} keycaps\nl \nl{\large Keycaps:} keycaps
{\large PCB:} PCB\nl \nl{\large PCB:} PCB
{\large Notes:} notes\\ \nl{\footnotesize\lipsum[1][1-15] This is just to show that it'll stay between the QR codes "automatically"}\\
\vfill \vfill % this one makes the event name all the way at the bottom
{\LARGE \#EVENT-NAME} {\LARGE \#EVENT-NAME}
\end{center} \end{center}
% The QR codes in the 4 corners, pay attention to the labels. This whole section doesn't conform to the margins and stuff, so check yourself % This is the QR codes in the 4 corners, pay attention to the labels. This whole section doesn't conform to the margins and stuff, so check yourself
\begin{tikzpicture}[remember picture, overlay] \vspace{-2em}\begin{tikzpicture}[remember picture, overlay]
\node [below right=0.6em](TL) at (current page.north west){\qrcode{https://daviddaily.dev}}; \node [below right=0.6em](TL) at (current page.north west){\qrcode{https://daviddaily.dev}};
\node [below=.1em] at (TL.south){\footnotesize \node [below=.1em] at (TL.south){\footnotesize
Top Left%your label here Top Left%your label here
@ -49,5 +51,11 @@
\node [above=.1em] at (BR.north){\footnotesize \node [above=.1em] at (BR.north){\footnotesize
Bottom Right%your label here Bottom Right%your label here
}; };
\end{tikzpicture} \end{tikzpicture}}
}\end{document} }
\begin{document}
\paste
\pagebreak
\paste
\end{document}