Debian Codegraph @

texmf-dist/doc/latex/pdfreview/sample.tex

raw
1 \documentclass[letterpaper,10pt]{article}
2 \usepackage{lipsum,mathptmx}
3
4 \pagestyle{empty}
5
6 \usepackage[
7 sourcedoc={lorem-ipsum.pdf}, % use braces if the file name contains spaces
8 grid=true, % set to false to remove help lines when done
9 staggered=true, % avoid overlap between notes
10 trim={2cm}, % trim source doc pages by 2cm all around
11 bodywidth=0.66, % use 2/3 of the page width for the source doc
12 twocolumn=true, % have two columns of notes, left and right
13 ]{pdfreview}
14
15
16 \begin{document}
17
18 \begin{page}{1} % mount the first page
19
20 \begin{leftnotes} % write notes into the left margin
21 \cnote{84}{It looks like Latin.} % place note centered on help line 84
22 \bnote{68}{Is this really Latin?} % align bottom of note to help line 68
23 \tnote{16}{No, not Latin} % align top of note to help line 16
24 \end{leftnotes} % notes after this point go into the right margin
25
26 \tnote[important]{48}{Important note: You really should be writing proper Latin}
27 \cnote{12}{Cite your references}
28 \end{page}
29
30 \begin{page}{2}
31 \pagegrid[red][20] % draw a grid of guides on top of source doc page - comment out when done
32
33 % place node on top of source doc page. Default x and y units in are scaled
34 % to 1/100 of width and height of source doc
35 \node[sticky,anchor=center, text width=1.5in] at (50,65) {You can draw on top of the page, too, using dimension-less units ranging from 0 to 100 for both $x$ and $y$.};
36
37 % draw an ellipse in the center of the page
38 \draw[blue, thick](50,50) circle (20 and 10);
39
40 \begin{leftnotes}
41 \cnote{69}{With \texttt{staggered=true}, there can be only one \texttt{leftnotes} environment, and it must come either before or after all of the notes on the right}
42 \end{leftnotes}
43
44 \tnote{80}{This note should top-align to 80 and then prattle on for a little bit}
45 \tnote{76}{This note is declared to top-align to 76, but it gets pushed downward to not overlap the previous one, because we use option \texttt{\textbackslash staggered=true}}
46 \tnote{90}{And this note, even though declared to top-align to 90, will be pushed down below the previously declared one}
47
48 \tnote{52}{With \texttt{staggered=true}, there can be only one \texttt{leftnotes} environment, and it must come either before or after all of the notes on the right. This is because \texttt{leftnotes} resets the staggering mechanism.}
49
50 \begin{leftnotes}
51 \cnote{50}{With \texttt{staggered=true}, there can be only one \texttt{leftnotes} environment, and it must come either before or after all of the notes on the right. This is because \texttt{leftnotes} resets the staggering mechanism. This note is declared in a separate \texttt{leftnotes} environment and therefore overlaps the preceding one.}
52 \end{leftnotes}
53
54 \tnote{36}{This note is separated from the preceding one by a \texttt{leftnotes} environment, and therefore overlaps it.}
55
56 \end{page}
57
58 \begin{insertpage}
59 This is an example of the \texttt{insertpage} environment.
60
61 \lipsum[1-3]
62 \end{insertpage}
63
64 \end{document}
65
66