summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/latexdiff/example
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-12-18 00:16:57 +0000
committerKarl Berry <karl@freefriends.org>2012-12-18 00:16:57 +0000
commit7ce0811299d8127ecd4eff9d16c73e4972cd2c32 (patch)
tree9fd64f068ccc5b095a1467b6a5ef3efeda66ba30 /Master/texmf-dist/doc/support/latexdiff/example
parent140b20f73ca9e01da13e96a751ce89703fc87872 (diff)
latexdiff (17dec12)
git-svn-id: svn://tug.org/texlive/trunk@28564 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/support/latexdiff/example')
-rw-r--r--Master/texmf-dist/doc/support/latexdiff/example/example-draft.tex59
-rw-r--r--Master/texmf-dist/doc/support/latexdiff/example/example-rev.tex60
2 files changed, 119 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/support/latexdiff/example/example-draft.tex b/Master/texmf-dist/doc/support/latexdiff/example/example-draft.tex
new file mode 100644
index 00000000000..593a1707121
--- /dev/null
+++ b/Master/texmf-dist/doc/support/latexdiff/example/example-draft.tex
@@ -0,0 +1,59 @@
+\documentclass[12pt,a4paper]{article}
+
+\setlength{\topmargin}{-0.2in}
+\setlength{\textheight}{9.5in}
+\setlength{\oddsidemargin}{0.0in}
+
+\setlength{\textwidth}{6.5in}
+
+\title{latexdiff Example - Draft version}
+\author{F Tilmann}
+
+\begin{document}
+\maketitle
+
+\section*{Introduction}
+
+This is an extremely simple document that showcases some of latexdiff features.
+Type
+\begin{verbatim}
+latexdiff -t UNDERLINE example-draft.tex example-rev.tex > example-diff.tex
+\end{verbatim}
+to create the difference file. You can inspect this file directly. Then run either
+\begin{verbatim}
+pdflatex example-diff.tex
+xpdf example-diff.pdf
+\end{verbatim}
+or
+\begin{verbatim}
+latex example-diff.tex
+dvips -o example-diff.ps example-diff.dvi
+gv example-diff.ps
+\end{verbatim}
+to display the markup.
+
+\section*{Another section title}
+
+A paragraph with a line only in the draft document. More things could be said
+were it not for the constraints of time and space.
+
+More things could be said were it not for the constraints of time and space.
+
+And here is a tipo.
+
+Here is a table:
+
+\begin{tabular}{ll}
+Name & Description \\
+\hline
+Gandalf & Grey \\
+Saruman & White
+\end{tabular}
+
+And sometimes a whole paragraph gets completely rewritten. In this
+case latexdiff marks up the whole paragraph even if some words in it
+are identical.
+No change, no markup!
+\end{document}
+
+
diff --git a/Master/texmf-dist/doc/support/latexdiff/example/example-rev.tex b/Master/texmf-dist/doc/support/latexdiff/example/example-rev.tex
new file mode 100644
index 00000000000..4bcaf156272
--- /dev/null
+++ b/Master/texmf-dist/doc/support/latexdiff/example/example-rev.tex
@@ -0,0 +1,60 @@
+\documentclass[12pt,a4paper]{article}
+
+\setlength{\topmargin}{-0.2in}
+\setlength{\textheight}{9.5in}
+\setlength{\oddsidemargin}{0.0in}
+
+\setlength{\textwidth}{6in}
+
+\title{latexdiff Example - Revised version}
+\author{F Tilmann}
+% Note how in the preamble visual markup is never used (even
+% if some preamble might eventually end up as visible text.)
+
+\begin{document}
+\maketitle
+
+\section*{Introduction}
+
+This is an extremely simple document that showcases some of the latexdiff features.
+Type
+\begin{verbatim}
+latexdiff -t UNDERLINE example-draft.tex example-rev.tex > example-diff.tex
+\end{verbatim}
+to create the difference file. You can inspect this file directly. Then run either
+\begin{verbatim}
+pdflatex example-diff.tex
+xpdf example-diff.pdf
+\end{verbatim}
+or
+\begin{verbatim}
+latex example-diff.tex
+dvips -o example-diff.ps example-diff.dvi
+gv example-diff.ps
+\end{verbatim}
+to display the markup.
+
+\section*{Yet another section title}
+
+ More things could be said were it not for the constraints of time and space.
+
+A paragraph with a line only in the revised document. More things could be
+said were it not for the constraints of time and space.
+
+And here is a typo.
+
+Here is a table:
+
+\begin{tabular}{ll}
+Name & Description \\
+\hline
+Gandalf & White \\
+Saruman & Evil
+\end{tabular}
+
+And now for something completely different, with not a paragraph in sight.
+No change,
+no markup!
+\end{document}
+
+