-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.tex
77 lines (73 loc) · 2.71 KB
/
example.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
\documentclass[a4paper,11pt]{ydoc}
\usepackage{pdfpages}
\usepackage[T1]{fontenc}
\lstset{basicstyle=\small\ttfamily,language={[LaTeX]TeX},numbers=none,columns=fullflexible}
\begin{document}
\begin{center}
\par\noindent%
\lstinputlisting[language={[latex]tex},gobble=4,numbers=none,caption={},frame=lines,firstline=2]{example-common.tex}
%\begin{minipage}{\textwidth}
% \begin{lstlisting}[language={[latex]tex},gobble=4,frame=lines,caption={},numbers=none]
% \usepackage{newrevisor}
% \newrevisor{manuel}{violet!75}
% \newrevisor{maria}{blue}
% \newrevisor{peter}{green!80!black}[red]
% \begin{document}
% This is \manuel{text-to-be-deleted}{text-to-be-added}.\MANUEL{This is a note}
% \footnote{This is a footnote.\MANUEL*{this is a note in the footnote}}
% This is \maria{text-to-be-deleted}{text-to-be-added}.\MARIA{This is a note}
% \footnote{This is a footnote.\MARIA*{this is a note in the footnote}}
% This is \peter{text-to-be-deleted}{text-to-be-added}.\PETER{This is a note}
% \footnote{This is a footnote.\PETER*{this is a note in the footnote}}
% \begin{figure}[h!]
% \centering
% A FIGURE
% \caption{Caption \manuel{and}{with} note\MANUEL*{note}}
% \label{fig:test}
% \end{figure}
% \end{document}
% \end{lstlisting}
% \end{minipage}
\newpage
\lstinputlisting[language={[latex]tex},gobble=4,numbers=none,caption={},frame=lines,firstline=2]{test-default.tex}
\includepdf[frame,width=\textwidth,pages=-]{test-default.pdf}
\newpage
\begin{raggedright}
Same as above but with option \verb|hide=after|\\[2em]
\end{raggedright}
\par\noindent%
\begin{minipage}{\textwidth}
\begin{lstlisting}[language={[latex]tex},gobble=4,frame=lines,caption={},numbers=none]
\usepackage[hide=after]{newrevisor}
\end{lstlisting}
\end{minipage}
\newpage
\includepdf[frame,width=\textwidth,pages=-]{test-default-hide-after.pdf}
\newpage
\begin{raggedright}
Same as above but with option \verb|hide=before|\\[2em]
\end{raggedright}
\par\noindent%
\begin{minipage}{\textwidth}
\begin{lstlisting}[language={[latex]tex},gobble=4,frame=lines,caption={},numbers=none]
\usepackage[hide=before]{newrevisor}
\end{lstlisting}
\end{minipage}
\includepdf[frame,width=\textwidth,pages=-]{test-default-hide-before.pdf}
\newpage
\begin{raggedright}
With option \verb|todonotes|\\[2em]
\end{raggedright}
\par\noindent%
\begin{minipage}{\textwidth}
\begin{lstlisting}[language={[latex]tex},gobble=4,frame=lines,caption={},numbers=none]
\usepackage[todonotes]{newrevisor}
\end{lstlisting}
\end{minipage}
\includepdf[frame,width=\textwidth,pages=-]{test-todonotes.pdf}
\end{center}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: