Debian Codegraph @

texmf-dist/doc/latex/blowup/blowup-ex3.tex

raw
1 % Rolf Niepraschk, 2023-07-15
2 %
3 % Translate to pdf with any TeX compiler and check the page size with
4 %
5 % pdfinfo filename.pdf
6 %
7 % or via the properties menu of the pdf viewer
8 %
9 \listfiles
10 \documentclass[a5paper,twoside]{article}
11 \usepackage{array}
12
13 % Just to show the page size of the source.
14 \usepackage{xcolor}
15 \AddToHook{shipout/background}{%
16 \put(0,0){\textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}}%
17 }
18
19 \renewcommand\familydefault{\sfdefault}
20 \setlength\parindent{0pt}
21 \pagestyle{empty}
22
23 \usepackage{blowup}
24 \blowUp{origin={143mm,202mm},target=a5,pos={o,c}}% centered and outside aligned
25 % or:
26 % \blowUp{origin=x0.966216,target=a5,pos={o,b}}% top and outside aligned
27
28 \begin{document}
29
30 \null\vfill
31
32 \Large\centering
33
34 A bit downscaled A5-size document on \mbox{A5-size paper}
35 (5mm more space for binding)
36
37 \vfill
38
39 \setlength\extrarowheight{.5ex}
40 \begin{tabular}{|>{\bfseries}l<{:}r<{\,mm}!{$\times$}r<{\,mm}|} \hline
41 letter & 216 & 279 \\
42 legal & 216 & 356 \\
43 executive & 184 & 267 \\
44 A8 & 52 & 74 \\
45 A7 & 74 & 105 \\
46 A6 & 105 & 148 \\
47 A5 & 148 & 210 \\
48 A4 & 210 & 297 \\
49 A3 & 297 & 420 \\
50 A2 & 420 & 594 \\
51 A1 & 594 & 841 \\
52 A0 & 841 & 1189 \\ \hline
53 \end{tabular}
54
55 \vfill
56
57 \newpage\null 2nd page\,\dots
58
59 \end{document}