-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheso-ex4-pt.tex
48 lines (34 loc) · 978 Bytes
/
eso-ex4-pt.tex
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
% based on `eso-ex4.tex' in eso-pic
% -- a framed text area example by Rolf Niepraschk
\ifx\AddToHook\undefined
\RequirePackage{plautopatch}% pxatbegshi
\fi
\listfiles\setcounter{errorcontextlines}{100}
\documentclass[a4paper,twoside]{tarticle}
\usepackage{graphicx,color}
\usepackage{eso-pic}
\definecolor{lightgray}{gray}{.75}
\AddToShipoutPicture{%
\AtTextLowerLeft{%
\framebox(\LenToUnit{\textwidth},\LenToUnit{\textheight}){}}}
\setlength\parindent{0pt}
\begin{document}
\section*{First page}
This page and all the following have a frame around the
text area.
\vfill
X \hfill X\newpage
\section*{Second page}
\AddToShipoutPicture*{%
\AtTextCenter{%
\makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
\rotatebox{45}{\textsf{\textbf{\color{lightgray}DRAFT}}}}}
}
}
Only this page has rotated text in the center of the text area.
\vfill
X \hfill X\newpage
\section*{Last page}
\vfill
X \hfill X
\end{document}