uhh so yeah I had the page size wrong since the beginning...

This commit is contained in:
David Daily 2024-12-18 01:56:58 -06:00
parent f5bb0a476d
commit c150e6a77e
2 changed files with 26 additions and 55 deletions

BIN
main.pdf

Binary file not shown.

View File

@ -1,33 +1,28 @@
\documentclass{article}
\usepackage[fontsize=6pt]{fontsize} % will need adjusted if you change the paper size
\usepackage{parskip} % fuck them paragraphs
\usepackage{tikz} % no good LaTeX abuse without TikZ, mein schmuzi-pusi
\usepackage{lmodern,fontspec,lipsum} % better font, change it if you want ¯\_(ツ)_
\usepackage{qrcode} % QR codes ezpz
\usepackage[fontsize=10pt]{fontsize} % will need adjusted if you change the paper size
\usepackage{parskip,tikz,lmodern,fontspec,lipsum,qrcode,hyperref}
\usepackage[%
papersize={4.25in,2.75in}, % this is a quarter of letter paper, half was too big
left=23mm, right=23mm, % this is adjusted to right inside the QR codes, use the option "showframe" to show the bounding box
bottom=-3mm
papersize={5.5in,4.25in}, % this is a quarter of letter paper, half was too big
left=7.25em, right=7.25em, % this is adjusted to right inside the QR codes, use the option "showframe" to show the bounding box
bottom=2em
]{geometry}
\setlength{\headsep}{10mm}
% 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
\setlength{\headsep}{3em}
\pagestyle{empty}
\begin{document}\pagestyle{empty}{\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.
%\setmainfont{[Hellvetica.ttf]} % uncomment if you want a better font
{\Huge Robot Lander}\\
{\small David Daily, aka Daily the Noob}\nl % you might need to mess with the spacing here to make it look even better
{\large Model:} Moonlander MkI\nl
{\large Layout:} Colemak\nl
{\large Switches:} MMK Shark {\footnotesize+ O-rings cause I slam them keys}\nl
{\large Keycaps:} Drop x LotR Mordor ortho set\nl
I made this card, isn't it neat!\\
\vfill
\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
\def\nl{\\\vspace{1.5em}}
\def\paste{%
{\Huge Robot Lander}\\
{\small Daily}\nl
{\large Model:} ZSA Moonlander\nl
{\large Layout:} Colemak {\footnotesize with \href{https://eurkey.steffen.bruentjen.eu/}{EurKEY}}\nl
{\large Switches:} MMK Shark {\footnotesize+ O-rings cause I slam them keys}\nl
{\large Keycaps:} Drop$\times$LotR Mordor ortho set\nl
I made this card, that's pretty neat!\\
\vfill
{\tiny\href{https://daviddaily.dev/david/Keeb-Plaque}{daviddaily.dev}}
\begin{tikzpicture}[remember picture, overlay]
\node [below left=0.6em](TR) at (current page.north east){\qrcode{https://daviddaily.dev/david/Keeb-Plaque}};
\node [below=.1em] at (TR.south){\footnotesize
@ -43,34 +38,10 @@
\node [above=.1em] at (BR.north){\footnotesize
Switches
};
\end{tikzpicture}\\\pagebreak
\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.
\setmainfont{[Hellvetica.ttf]} % uncomment if you want a better font
{\Huge Robot Lander}\\
{\small David Daily, aka Daily the Noob}\nl % you might need to mess with the spacing here to make it look even better
{\large Model:} Moonlander MkI\nl
{\large Layout:} Colemak\nl
{\large Switches:} MMK Shark {\footnotesize+ O-rings cause I slam them keys}\nl
{\large Keycaps:} Drop x LotR Mordor ortho set\nl
I made this card, isn't it neat!\\
\vfill
\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
\begin{tikzpicture}[remember picture, overlay]
\node [below left=0.6em](TR) at (current page.north east){\qrcode{https://daviddaily.dev/david/Keeb-Plaque}};
\node [below=.1em] at (TR.south){\footnotesize
My website
};
\node [above right=0.6em](BL) at (current page.south west){\qrcode{https://configure.zsa.io/moonlander/layouts/3yJ7D}};
\node [above=.1em] at (BL.north){\footnotesize
Layout
};
\node [above left=0.6em](BR) at (current page.south east){\qrcode{https://www.theremingoat.com/blog/momoka-shark-switch-review}};
\node [above=.1em] at (BR.north){\footnotesize
Switches
};
\end{tikzpicture}
}\end{document}
\end{tikzpicture}\newpage}
\begin{document}{\fontfamily{lmss}\selectfont\begin{center}
\paste
\setmainfont{[Hellvetica.ttf]}
\paste
\end{center}}\end{document}