Compare commits

..

3 Commits

Author SHA1 Message Date
367497aa79 fix paper size 2024-12-18 02:18:36 -06:00
52cc2c3656 minor fixes 2024-12-18 01:04:30 -06:00
0cfaaf67da initial commit 2024-12-18 00:55:42 -06:00
4 changed files with 32 additions and 53 deletions

View File

@ -1,12 +1,7 @@
# Keeb-Plaque # Keeb-Plaque
A simple little tent to print off on half of a Letter paper sheet (or whatever you want) for Mechanical Keyboard Meetups. A simple little tent to print off on a quarter of a Letter paper sheet for Mechanical Keyboard Meetups.
![an example with only placeholder text](example.png) ![example](example.png)
also available in a blank form, check the branch: ![blank-mode](https://daviddaily.dev/david/Keeb-Plaque/src/branch/blank-mode) Some printing programs don't play nice and have to have all 4 pages to make it a quarter sheet sized thing. Just repeat the `\table` command as many times as needed to do that.
`hell` branch has mine as an example if you want more
"hey this is kinda hard, I have to install this whole other program and stuff??"
yeah, well my purpose in life is to curse others with knowledge of typesetting. Do I have the skillz/hardware/time to make it some kind of decent, if not super nice, site? probably. But that's not as fun to me.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 KiB

After

Width:  |  Height:  |  Size: 41 KiB

BIN
main.pdf

Binary file not shown.

View File

@ -1,53 +1,37 @@
\documentclass{article} \documentclass{article}
\usepackage[fontsize=9pt]{fontsize} % will need adjusted if you change the paper size \usepackage[fontsize=12pt]{fontsize} % will need adjusted if you change the paper size
\usepackage{parskip,tikz,lmodern,fontspec,lipsum,qrcode,hyperref} \usepackage{lmodern,fontspec,lipsum,tabularray,qrcode,tikz,parskip,hyperref}
\usepackage[% \usepackage[%
papersize={5.5in,4.25in}, % this is a quarter of letter paper, half was too big papersize={5.5in,4.25in},
left=25mm, right=25mm, % static since the codes are a constant size. this is adjusted to right inside the QR codes, use the option "showframe" to show the bounding box bottom=2mm
bottom=12mm
]{geometry} ]{geometry}
\setlength{\headsep}{2em}
\setlength{\headsep}{10mm}
\pagestyle{empty} \pagestyle{empty}
\def\nl{\\\vspace{1em}} % just to give some extraspace between the things
\def\paste{% making it a command so that we can easily make multiple pages, easily undone if you don't like it \def\paste{%
% this is VERY SIMPLE, and on purpose. You don't want something? comment that biznatch out. Everything else should shuffle around just fine. \begin{tblr}{%
{\Huge Title}\\ column{1}={halign=r},
{\small Owner} column{2}={halign=l,wd=15em}, % set the width of the writing line here
\nl{\large Model:} model vline{2}={text=:},
\nl{\large Layout:} layout hline{2-Z}={2}{dotted},
\nl{\large Switches:} switches row{2-Z}={abovesep=1.5em}}
\nl{\large Keycaps:} keycaps {\LARGE Title}&\\
\nl{\large PCB:} PCB Owner&\\
\nl{\footnotesize\lipsum[1][1-6]\\This is just to show that it'll stay between the QR codes "automatically".}\\ Model&\\
\vfill % this one makes the event name all the way at the bottom Layout&\\
{\LARGE \#EVENT-NAME}\\{\tiny\href{https://daviddaily.dev/david/Keeb-Plaque}{daviddaily.dev}} Switches&\\
% 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 Keycaps&\\
\vspace{-2em}\begin{tikzpicture}[remember picture, overlay] PCB&\\
\node [below right=0.6em](TL) at (current page.north west){\qrcode{https://daviddaily.dev}}; \end{tblr}\\{\tiny\href{https://daviddaily.dev/david/Keeb-Plaque}{daviddaily.dev}}
\node [below=.1em] at (TL.south){\footnotesize \newpage
Top Left%your label here }
};
\node [below left=0.6em](TR) at (current page.north east){\qrcode{https://daviddaily.dev}};
\node [below=.1em] at (TR.south){\footnotesize
Top Right%your label here
};
\node [above right=0.6em](BL) at (current page.south west){\qrcode{https://daviddaily.dev}};
\node [above=.1em] at (BL.north){\footnotesize
Bottom Left%your label here
};
\node [above left=0.6em](BR) at (current page.south east){\qrcode{https://daviddaily.dev}};
\node [above=.1em] at (BR.north){\footnotesize
Bottom Right%your label here
};
\end{tikzpicture}\newpage}
\begin{document}{\fontfamily{lmss}\selectfont\begin{center} \begin{document}
%\setmainfont{[Hellvetica.ttf]} % uncomment if you want a better font {\fontfamily{lmss}\selectfont\begin{center}
% \setmainfont{[Hellvetica.ttf]} % uncomment if you want a better font
\paste \paste
\paste \paste
\end{center}}\end{document} \paste
\paste
\end{center}
}\end{document}