Compare commits

...

11 Commits
hell ... master

Author SHA1 Message Date
744b22dc89 had the page size wrong... 2024-12-18 02:10:01 -06:00
0d94c6e032 simplification/unit switcheroo 2024-12-18 01:19:48 -06:00
2a227a340e Update README.md 2024-12-18 01:08:00 -06:00
08bb6d945e update screenshot 2024-12-17 11:23:06 -06:00
48461bb653 minor fixes 2024-12-17 11:20:24 -06:00
27bfeced23 Title was too close to the top 2024-12-17 11:08:53 -06:00
9974587697 make smaller and easily to make duplicate pages 2024-12-17 10:59:06 -06:00
e4e2950ae6 Update README.md 2024-12-17 03:19:03 -06:00
d07513c7b1 woops 2024-12-17 03:13:14 -06:00
e8e3ae4510 add pic 2024-12-17 03:11:58 -06:00
66fef9e5ae forgot the switch type... 2024-12-17 03:00:50 -06:00
4 changed files with 38 additions and 28 deletions

View File

@ -1,3 +1,12 @@
# 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 half of a Letter paper sheet (or whatever you want) for Mechanical Keyboard Meetups.
![an example with only placeholder text](example.png)
also available in a blank form, check the branch: ![blank-mode](https://daviddaily.dev/david/Keeb-Plaque/src/branch/blank-mode)
`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.

BIN
example.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

BIN
main.pdf

Binary file not shown.

View File

@ -1,34 +1,30 @@
\documentclass{article}
\usepackage[fontsize=1.5em]{fontsize} % "wait doesn't em depend on font size?" don't ask me how this works
\usepackage{parskip} % fuck them paragraphs
\usepackage{tikz} % no good LaTeX abuse without TikZ, mein schmuzi-pusi
\usepackage{lmodern,fontspec} % better font, change it if you want ¯\_(ツ)_
\usepackage{qrcode} % QR codes ezpz
\usepackage[fontsize=9pt]{fontsize} % will need adjusted if you change the paper size
\usepackage{parskip,tikz,lmodern,fontspec,lipsum,qrcode,hyperref}
\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)
margin=15mm
papersize={5.5in,4.25in}, % this is a quarter of letter paper, half was too big
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=12mm
]{geometry}
% 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.
\setlength{\headsep}{10mm}
\pagestyle{empty}
\def\nl{\\\vspace{1em}} % just to give some extraspace between the things
\pagestyle{empty}
\begin{document}{\fontfamily{lmss}\selectfont\begin{center}
\def\paste{% making it a command so that we can easily make multiple pages, easily undone if you don't like it
% 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
{\LARGE Title}\\
{\small subtitle}\nl % you might need to mess with the spacing here to make it look even better
{\large Model:} model\nl
{\large Layout:} layout\nl
{\large Keycaps:} keycaps\nl
{\large PCB:} PCB\nl
{\large Notes:} notes\\
\vfill
{\LARGE \#EVENT-NAME}
\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]
{\Huge Title}\\
{\small Owner}
\nl{\large Model:} model
\nl{\large Layout:} layout
\nl{\large Switches:} switches
\nl{\large Keycaps:} keycaps
\nl{\large PCB:} PCB
\nl{\footnotesize\lipsum[1][1-6]\\This is just to show that it'll stay between the QR codes "automatically".}\\
\vfill % this one makes the event name all the way at the bottom
{\LARGE \#EVENT-NAME}\\{\tiny\href{https://daviddaily.dev/david/Keeb-Plaque}{daviddaily.dev}}
% 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
\vspace{-2em}\begin{tikzpicture}[remember picture, overlay]
\node [below right=0.6em](TL) at (current page.north west){\qrcode{https://daviddaily.dev}};
\node [below=.1em] at (TL.south){\footnotesize
Top Left%your label here
@ -48,5 +44,10 @@
\node [above=.1em] at (BR.north){\footnotesize
Bottom Right%your label here
};
\end{tikzpicture}
}\end{document}
\end{tikzpicture}\newpage}
\begin{document}{\fontfamily{lmss}\selectfont\begin{center}
%\setmainfont{[Hellvetica.ttf]} % uncomment if you want a better font
\paste
\paste
\end{center}}\end{document}