summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/blowup/blowup-ex2.tex
blob: aba0371a692e6dc646393c4815447c411677d60b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
% Rolf Niepraschk, 2023-07-15
%
% Translate to pdf with any TeX compiler and check the page size with
% 
%   pdfinfo filename.pdf
% 
% or via the properties menu of the pdf viewer
%
\listfiles
\documentclass[a4paper,twoside]{article}
\usepackage{array}

% Just to show the page size of the source.
\usepackage{xcolor}
\AddToHook{shipout/background}{%
  \put(0,0){\textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}}%
}

\renewcommand\familydefault{\sfdefault}
\setlength\parindent{0pt}
\pagestyle{empty}

\usepackage{blowup}
\blowUp{target=letter,pos=c}% centered
%\blowUp{target=letter,pos=outside}% outside aligned

\begin{document}

\null\vfill

\huge\centering

A4-size document on letter-size paper

\vfill

\setlength\extrarowheight{.5ex}
\begin{tabular}{|>{\bfseries}l<{:}r<{\,mm}!{$\times$}r<{\,mm}|} \hline
  letter    & 216 &  279 \\
  legal     & 216 &  356 \\
  executive & 184 &  267 \\
  A8        &  52 &   74 \\
  A7        &  74 &  105 \\
  A6        & 105 &  148 \\
  A5        & 148 &  210 \\
  A4        & 210 &  297 \\
  A3        & 297 &  420 \\
  A2        & 420 &  594 \\
  A1        & 594 &  841 \\
  A0        & 841 & 1189 \\ \hline
\end{tabular}

\vfill

\newpage\null 2nd page\dots

\end{document}