Debian Codegraph @

texmf-dist/doc/latex/blowup/blowup-ex2.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[a4paper,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{target=letter,pos=c}% centered
25 %\blowUp{target=letter,pos=outside}% outside aligned
26
27 \begin{document}
28
29 \null\vfill
30
31 \huge\centering
32
33 A4-size document on letter-size paper
34
35 \vfill
36
37 \setlength\extrarowheight{.5ex}
38 \begin{tabular}{|>{\bfseries}l<{:}r<{\,mm}!{$\times$}r<{\,mm}|} \hline
39 letter & 216 & 279 \\
40 legal & 216 & 356 \\
41 executive & 184 & 267 \\
42 A8 & 52 & 74 \\
43 A7 & 74 & 105 \\
44 A6 & 105 & 148 \\
45 A5 & 148 & 210 \\
46 A4 & 210 & 297 \\
47 A3 & 297 & 420 \\
48 A2 & 420 & 594 \\
49 A1 & 594 & 841 \\
50 A0 & 841 & 1189 \\ \hline
51 \end{tabular}
52
53 \vfill
54
55 \newpage\null 2nd page\dots
56
57 \end{document}