Created
August 28, 2021 17:33
-
-
Save UweZiegenhagen/871be257243b5ed6d8264b75b0852414 to your computer and use it in GitHub Desktop.
Pocket Mod for A3 paper, using LaTeX and TikZ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass[21pt]{scrartcl} | |
| \usepackage[left=2cm,right=2cm, top=2cm,bottom=2cm,a3paper]{geometry} | |
| \usepackage{forloop} | |
| \setlength{\parindent}{0pt} | |
| \usepackage{tikz} | |
| \newcounter{ct} | |
| \usepackage{pgfpages} | |
| \def\pgfpageoptionheight{\the\paperwidth} % landscaped by default | |
| \def\pgfpageoptionwidth{\the\paperheight} | |
| \def\pgfpageoptionborder{0pt} | |
| \def\pgfpageoptionfirstshipout{1} | |
| \pgfpagesphysicalpageoptions{% | |
| logical pages=8,% | |
| physical height=\pgfpageoptionheight,% | |
| physical width=\pgfpageoptionwidth,% | |
| current logical shipout=\pgfpageoptionfirstshipout% | |
| } | |
| \pgfpageslogicalpageoptions{1}{% | |
| border shrink=\pgfpageoptionborder,% | |
| resized width=.25\pgfphysicalwidth,% | |
| border code=\pgfusepath{stroke},% | |
| resized height=0.5\pgfphysicalheight,% | |
| center=\pgfpoint{.875\pgfphysicalwidth}{.75\pgfphysicalheight}% | |
| }% | |
| \pgfpageslogicalpageoptions{2} | |
| {% | |
| border shrink=\pgfpageoptionborder,% | |
| resized width=.25\pgfphysicalwidth,% | |
| border code=\pgfusepath{stroke},% | |
| rotation=180,% | |
| resized height=0.5\pgfphysicalheight,% | |
| center=\pgfpoint{.875\pgfphysicalwidth}{.25\pgfphysicalheight}% | |
| }% | |
| \pgfpageslogicalpageoptions{3} | |
| {% | |
| border shrink=\pgfpageoptionborder,% | |
| resized width=.25\pgfphysicalwidth,% | |
| border code=\pgfusepath{stroke},% | |
| rotation=180,% | |
| resized height=0.5\pgfphysicalheight,% | |
| center=\pgfpoint{.625\pgfphysicalwidth}{.25\pgfphysicalheight}% | |
| }% | |
| \pgfpageslogicalpageoptions{4} | |
| {% | |
| border shrink=\pgfpageoptionborder,% | |
| resized width=.25\pgfphysicalwidth,% | |
| border code=\pgfusepath{stroke},% | |
| rotation=180,% | |
| resized height=0.5\pgfphysicalheight,% | |
| center=\pgfpoint{.375\pgfphysicalwidth}{.25\pgfphysicalheight}% | |
| }% | |
| \pgfpageslogicalpageoptions{5} | |
| {% | |
| border shrink=\pgfpageoptionborder,% | |
| resized width=.25\pgfphysicalwidth,% | |
| border code=\pgfusepath{stroke},% | |
| rotation=180,% | |
| resized height=0.5\pgfphysicalheight,% | |
| center=\pgfpoint{.125\pgfphysicalwidth}{.25\pgfphysicalheight}% | |
| }% | |
| \pgfpageslogicalpageoptions{6} | |
| {% | |
| border shrink=\pgfpageoptionborder,% | |
| resized width=.25\pgfphysicalwidth,% | |
| border code=\pgfusepath{stroke},% | |
| resized height=0.5\pgfphysicalheight,% | |
| center=\pgfpoint{.125\pgfphysicalwidth}{.75\pgfphysicalheight}% | |
| }% | |
| \pgfpageslogicalpageoptions{7} | |
| {% | |
| border shrink=\pgfpageoptionborder,% | |
| resized width=.25\pgfphysicalwidth,% | |
| border code=\pgfusepath{stroke},% | |
| resized height=0.5\pgfphysicalheight,% | |
| center=\pgfpoint{.375\pgfphysicalwidth}{.75\pgfphysicalheight}% | |
| }% | |
| \pgfpageslogicalpageoptions{8} | |
| {% | |
| border shrink=\pgfpageoptionborder,% | |
| resized width=.25\pgfphysicalwidth,% | |
| border code=\pgfusepath{stroke},% | |
| resized height=0.5\pgfphysicalheight,% | |
| center=\pgfpoint{.625\pgfphysicalwidth}{.75\pgfphysicalheight}% | |
| }% | |
| \begin{document}% | |
| \forloop{ct}{1}{\value{ct} < 9}{% | |
| \begin{tikzpicture} | |
| \foreach \i in {0,...,-17}{% | |
| \draw[very thick] (0,\i*2) -- ++(0,1.5) -- ++(1.5,0) -- ++(0,-1.5)--cycle; | |
| \draw[very thick] (2.5,\i*2) -- (22,\i*2); | |
| \draw[very thick] (23,\i*2) -- ++(0,1.5) -- ++(1.5,0) -- ++(0,-1.5)--cycle; | |
| } | |
| \end{tikzpicture} | |
| \clearpage | |
| } | |
| \end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool. Here's an edit for letterpaper, modifying to 11 lines per page, and shorter lines: