summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/changes/examples.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/changes/examples.dtx')
-rw-r--r--macros/latex/contrib/changes/examples.dtx154
1 files changed, 144 insertions, 10 deletions
diff --git a/macros/latex/contrib/changes/examples.dtx b/macros/latex/contrib/changes/examples.dtx
index 0f6f1cdea3..22a58a492c 100644
--- a/macros/latex/contrib/changes/examples.dtx
+++ b/macros/latex/contrib/changes/examples.dtx
@@ -39,7 +39,15 @@
% Start the \LaTeX document the standard way.
%
% \begin{macrocode}
+%<example:language:british>\documentclass[11pt, a4paper, notitlepage, british]{article}
+%<example:language:english>\documentclass[11pt, a4paper, notitlepage, english]{article}
+%<example:language:french>\documentclass[11pt, a4paper, notitlepage, french]{article}
+%<example:language:german>\documentclass[11pt, a4paper, notitlepage, german]{article}
+%<example:language:italian>\documentclass[11pt, a4paper, notitlepage, italian]{article}
+%<example:language:ngerman>\documentclass[11pt, a4paper, notitlepage, ngerman]{article}
+%<*!example:language:british&!example:language:english&!example:language:french&!example:language:german&!example:language:italian&!example:language:ngerman>
\documentclass[11pt, a4paper, notitlepage, english]{article}
+%</!example:language:british&!example:language:english&!example:language:french&!example:language:german&!example:language:italian&!example:language:ngerman>
\usepackage{babel}
% \end{macrocode}
%
@@ -50,9 +58,9 @@
% Different package options.
%
% \begin{macrocode}
-%<*example:simple|example:setsocextension|example:setlocextension|example:setaddedmarkup|example:setdeletedmarkup|example:setcommentmarkup|example:sethighlightmarkup|example:setauthormarkup|example:setauthormarkupposition|example:setauthormarkuptext|example:listofchanges:list|example:listofchanges:show|example:listofchanges:summary|example:listofchanges:compactsummary|example:listofchanges:all|example:listofchanges:title|example:listofchanges:wrong|example:settruncatewidth|example:setsummarywidth|example:setsummarytowidth|example:package.hyperref>
+%<*example:simple|example:setsocextension|example:setlocextension|example:setaddedmarkup|example:setdeletedmarkup|example:setcommentmarkup|example:sethighlightmarkup|example:setauthormarkup|example:setauthormarkupposition|example:setauthormarkuptext|example:listofchanges:list|example:listofchanges:show|example:listofchanges:summary|example:listofchanges:compactsummary|example:listofchanges:all|example:listofchanges:title|example:listofchanges:wrong|example:settruncatewidth|example:setsummarywidth|example:setsummarytowidth|example:package.hyperref|example:language:british|example:language:english|example:language:french|example:language:german|example:language:italian|example:language:ngerman>
\usepackage{changes}
-%</example:simple|example:setsocextension|example:setlocextension|example:setaddedmarkup|example:setdeletedmarkup|example:setcommentmarkup|example:sethighlightmarkup|example:setauthormarkup|example:setauthormarkupposition|example:setauthormarkuptext|example:listofchanges:list|example:listofchanges:show|example:listofchanges:summary|example:listofchanges:compactsummary|example:listofchanges:all|example:listofchanges:title|example:listofchanges:wrong|example:settruncatewidth|example:setsummarywidth|example:setsummarytowidth|example:package.hyperref>
+%</example:simple|example:setsocextension|example:setlocextension|example:setaddedmarkup|example:setdeletedmarkup|example:setcommentmarkup|example:sethighlightmarkup|example:setauthormarkup|example:setauthormarkupposition|example:setauthormarkuptext|example:listofchanges:list|example:listofchanges:show|example:listofchanges:summary|example:listofchanges:compactsummary|example:listofchanges:all|example:listofchanges:title|example:listofchanges:wrong|example:settruncatewidth|example:setsummarywidth|example:setsummarytowidth|example:package.hyperref|example:language:british|example:language:english|example:language:french|example:language:german|example:language:italian|example:language:ngerman>
%
%<*example:draft>
\usepackage[draft]{changes}
@@ -177,6 +185,9 @@
%<*example:commentmarkup:todo>
\usepackage[commentmarkup=todo]{changes}
%</example:commentmarkup:todo>
+%<*example:commentmarkup:wrong>
+\usepackage[commentmarkup=wrong]{changes}
+%</example:commentmarkup:wrong>
%
%<*example:highlightmarkup:background>
\usepackage[highlightmarkup=background]{changes}
@@ -187,6 +198,9 @@
%<*example:highlightmarkup:uwave>
\usepackage[highlightmarkup=uwave]{changes}
%</example:highlightmarkup:uwave>
+%<*example:highlightmarkup:wrong>
+\usepackage[highlightmarkup=wrong]{changes}
+%</example:highlightmarkup:wrong>
%
%<*example:authormarkup:superscript>
\usepackage[authormarkup=superscript]{changes}
@@ -220,9 +234,9 @@
%<*example:authormarkuptext:id>
\usepackage[authormarkuptext=id]{changes}
%</example:authormarkuptext:id>
-%<*example:authormarkuptext:name>
+%<*example:authormarkuptext:name|example:setanonymousname>
\usepackage[authormarkuptext=name]{changes}
-%</example:authormarkuptext:name>
+%</example:authormarkuptext:name|example:setanonymousname>
%<*example:authormarkuptext:wrong>
\usepackage[authormarkuptext=wrong]{changes}
%</example:authormarkuptext:wrong>
@@ -257,6 +271,10 @@
\sethighlightmarkup{\emph{#1}}
%</example:sethighlightmarkup>
%
+%<*example:setanonymousname>
+\setanonymousname{Not so anonymous}
+%</example:setanonymousname>
+%
%<*example:setauthormarkup>
\setauthormarkup{\xout{#1}}
%</example:setauthormarkup>
@@ -301,51 +319,167 @@
% \begin{macrocode}
\begin{document}
-
%<example:simple>\verb|\usepackage{changes}|
-%<example:listofchanges:summary>\verb|\listofchanges[style=summary]|
+%<example:draft>\verb|\usepackage[draft]{changes}|
+%<example:final>\verb|\usepackage[final]{changes}|
+
+%<example:markup:default>\verb|\usepackage[markup=default]{changes}|
+%<example:markup:underlined>\verb|\usepackage[markup=underlined]{changes}|
+%<example:markup:bfit>\verb|\usepackage[markup=bfit]{changes}|
+%<example:markup:nocolor>\verb|\usepackage[markup=nocolor]{changes}|
+%<example:markup:wrong>\verb|\usepackage[markup=wrong]{changes}|
+
+%<example:commandnameprefix:none>\verb|\usepackage[commandnameprefix=none]{changes}|
+%<example:commandnameprefix:always>\verb|\usepackage[commandnameprefix=always]{changes}|
+%<example:commandnameprefix:ifneeded>\verb|\usepackage[commandnameprefix=ifneeded]{changes}|
+%<example:commandnameprefix:wrong>\verb|\usepackage[commandnameprefix=wrong]{changes}|
+
+%<example:addedmarkup:colored>\verb|\usepackage[addedmarkup=colored]{changes}|
+%<example:addedmarkup:uline>\verb|\usepackage[addedmarkup=uline]{changes}|
+%<example:addedmarkup:uuline>\verb|\usepackage[addedmarkup=uuline]{changes}|
+%<example:addedmarkup:uwave>\verb|\usepackage[addedmarkup=uwave]{changes}|
+%<example:addedmarkup:dashuline>\verb|\usepackage[addedmarkup=dashuline]{changes}|
+%<example:addedmarkup:dotuline>\verb|\usepackage[addedmarkup=dotuline]{changes}|
+%<example:addedmarkup:bf>\verb|\usepackage[addedmarkup=bf]{changes}|
+%<example:addedmarkup:it>\verb|\usepackage[addedmarkup=it]{changes}|
+%<example:addedmarkup:sl>\verb|\usepackage[addedmarkup=sl]{changes}|
+%<example:addedmarkup:em>\verb|\usepackage[addedmarkup=em]{changes}|
+%<example:addedmarkup:wrong>\verb|\usepackage[addedmarkup=wrong]{changes}|
+
+%<example:deletedmarkup:colored>\verb|\usepackage[deletedmarkup=colored]{changes}|
+%<example:deletedmarkup:uline>\verb|\usepackage[deletedmarkup=uline]{changes}|
+%<example:deletedmarkup:uuline>\verb|\usepackage[deletedmarkup=uuline]{changes}|
+%<example:deletedmarkup:uwave>\verb|\usepackage[deletedmarkup=uwave]{changes}|
+%<example:deletedmarkup:dashuline>\verb|\usepackage[deletedmarkup=dashuline]{changes}|
+%<example:deletedmarkup:dotuline>\verb|\usepackage[deletedmarkup=dotuline]{changes}|
+%<example:deletedmarkup:sout>\verb|\usepackage[deletedmarkup=sout]{changes}|
+%<example:deletedmarkup:xout>\verb|\usepackage[deletedmarkup=xout]{changes}|
+%<example:deletedmarkup:bf>\verb|\usepackage[deletedmarkup=bf]{changes}|
+%<example:deletedmarkup:it>\verb|\usepackage[deletedmarkup=it]{changes}|
+%<example:deletedmarkup:sl>\verb|\usepackage[deletedmarkup=sl]{changes}|
+%<example:deletedmarkup:em>\verb|\usepackage[deletedmarkup=em]{changes}|
+%<example:deletedmarkup:wrong>\verb|\usepackage[deletedmarkup=wrong]{changes}|
+
+%<example:commentmarkup:margin>\verb|\usepackage[commentmarkup=margin]{changes}|
+%<example:commentmarkup:footnote>\verb|\usepackage[commentmarkup=footnote]{changes}|
+%<example:commentmarkup:uwave>\verb|\usepackage[commentmarkup=uwave]{changes}|
+%<example:commentmarkup:todo>\verb|\usepackage[commentmarkup=todo]{changes}|
+%<example:commentmarkup:wrong>\verb|\usepackage[commentmarkup=wrong]{changes}|
+
+%<example:highlightmarkup:background>\verb|\usepackage[highlightmarkup=background]{changes}|
+%<example:highlightmarkup:uuline>\verb|\usepackage[highlightmarkup=uuline]{changes}|
+%<example:highlightmarkup:uwave>\verb|\usepackage[highlightmarkup=uwave]{changes}|
+%<example:highlightmarkup:wrong>\verb|\usepackage[highlightmarkup=wrong]{changes}|
+
%<example:setaddedmarkup>\verb|\setaddedmarkup{\emph{#1}}|
%<example:setdeletedmarkup>\verb|\setdeletedmarkup{\emph{#1}}|
%<example:setcommentmarkup>\verb|\setcommentmarkup{\IfIsColored{\color{authorcolor}}{}---~\IfIsAnonymous{#2}{}{\textbf{#3} }#1~---}|
%<example:sethighlightmarkup>\verb|\sethighlightmarkup{\emph{#1}}|
+
+%<example:authormarkup:superscript>\verb|\usepackage[authormarkup=superscript]{changes}|
+%<example:authormarkup:subscript>\verb|\usepackage[authormarkup=subscript]{changes}|
+%<example:authormarkup:brackets>\verb|\usepackage[authormarkup=brackets]{changes}|
+%<example:authormarkup:footnote>\verb|\usepackage[authormarkup=footnote]{changes}|
+%<example:authormarkup:none>\verb|\usepackage[authormarkup=none]{changes}|
+%<example:authormarkup:wrong>\verb|\usepackage[authormarkup=wrong]{changes}|
+
+%<example:authormarkupposition:left>\verb|\usepackage[authormarkupposition=left]{changes}|
+%<example:authormarkupposition:right>\verb|\usepackage[authormarkupposition=right]{changes}|
+%<example:authormarkupposition:wrong>\verb|\usepackage[authormarkupposition=wrong]{changes}|
+
+%<example:authormarkuptext:id>\verb|\usepackage[authormarkuptext=id]{changes}|
+%<example:authormarkuptext:name>\verb|\usepackage[authormarkuptext=name]{changes}|
+%<example:authormarkuptext:wrong>\verb|\usepackage[authormarkuptext=wrong]{changes}|
+
+%<example:defaultcolor>\verb|\usepackage[defaultcolor=magenta]{changes}|
+
+%<example:setanonymousname>\verb|\usepackage[authormarkuptext=name]{changes} \setanonymousname{Not so anonymous}|
+
%<example:setauthormarkup>\verb|\setauthormarkup{\xout{#1}}|
%<example:setauthormarkupposition>\verb|\setauthormarkupposition{left}|
%<example:setauthormarkuptext>\verb|\setauthormarkuptext{name}|
+
%<example:settruncatewidth>\verb|\settruncatewidth{.3\textwidth}|
-%<example:setlocextension>\verb|\setlocextension{changes}|
-%<example:setsocextension>\verb|\setsocextension{changes}|
+
%<example:setsummarywidth>\verb|\setsummarywidth{3cm}|
%<example:setsummarytowidth>\verb|\setsummarytowidth{The longest text you can imagine for the summary.}|
+
+%<example:setlocextension>\verb|\setlocextension{changes}|
+%<example:setsocextension>\verb|\setsocextension{changes}|
+
+%<example:listofchanges:list>\verb|See before list!|
+%<example:listofchanges:summary>\verb|See before list!|
+%<example:listofchanges:compactsummary>\verb|See before list!|
+%<example:listofchanges:all>\verb|See before list!|
+%<example:listofchanges:title>\verb|See before list!|
+%<example:listofchanges:show>\verb|See before list!|
+%<example:listofchanges:wrong>\verb|See before list!|
+
+%<example:packageoptions.todonotes>\verb|\usepackage[todonotes={textsize=tiny}]{changes}|
+%<example:packageoptions.truncate>\verb|\usepackage[truncate=hyphenate]{changes}|
+%<example:packageoptions.ulem>\verb|\usepackage[ulem=UWforbf]{changes}|
+%<example:packageoptions.xcolor>\verb|\usepackage[xcolor=hideerrors]{changes}|
+
%<example:package.hyperref>\verb|\usepackage{hyperref}| for linked list of changes
+%<example:language:british>\verb|\documentclass[11pt, a4paper, notitlepage, british]{article}|
+%<example:language:english>\verb|\documentclass[11pt, a4paper, notitlepage, english]{article}|
+%<example:language:french>\verb|\documentclass[11pt, a4paper, notitlepage, french]{article}|
+%<example:language:german>\verb|\documentclass[11pt, a4paper, notitlepage, german]{article}|
+%<example:language:italian>\verb|\documentclass[11pt, a4paper, notitlepage, italian]{article}|
+%<example:language:ngerman>\verb|\documentclass[11pt, a4paper, notitlepage, ngerman]{article}|
+
%<*example:listofchanges:list|example:settruncatewidth|example:package.hyperref>
+\verb|\listofchanges|
\listofchanges
%</example:listofchanges:list|example:settruncatewidth|example:package.hyperref>
%<*example:listofchanges:summary|example:setsummarywidth|example:setsummarytowidth>
+\verb|\listofchanges[style=summary]|
\listofchanges[style=summary]
%</example:listofchanges:summary|example:setsummarywidth|example:setsummarytowidth>
%<*example:listofchanges:compactsummary>
+\verb|\listofchanges[style=compactsummary]|
\listofchanges[style=compactsummary]
%</example:listofchanges:compactsummary>
-%<*example:listofchanges:all|example:setlocextension|example:setsocextension>
+%<*example:listofchanges:all|example:setanonymousname|example:setlocextension|example:setsocextension|example:language:british|example:language:english|example:language:french|example:language:german|example:language:italian|example:language:ngerman>
+\verb|\listofchanges|
\listofchanges
+
+\verb|\listofchanges[style=summary]|
\listofchanges[style=summary]
+
+\verb|\listofchanges[style=compactsummary]|
\listofchanges[style=compactsummary]
-%</example:listofchanges:all|example:setlocextension|example:setsocextension>
+%</example:listofchanges:all|example:setanonymousname|example:setlocextension|example:setsocextension|example:language:british|example:language:english|example:language:french|example:language:german|example:language:italian|example:language:ngerman>
%<*example:listofchanges:title>
+\verb|\listofchanges[title={New title for loc}]|
\listofchanges[title={New title for loc}]
+
+\verb|\listofchanges[style=summary, title={New title for summary}]|
\listofchanges[style=summary, title={New title for summary}]
+
+\verb|\listofchanges[style=compactsummary, title={New title for compact summary}]|
\listofchanges[style=compactsummary, title={New title for compact summary}]
%</example:listofchanges:title>
%<*example:listofchanges:show>
+\verb|\listofchanges[title={Additions and deletions}, show=added|deleted]|
\listofchanges[title={Additions and deletions}, show=added|deleted]
+
+\verb|\listofchanges[title={Comments}, show=comment]|
\listofchanges[title={Comments}, show=comment]
+
+\verb|\listofchanges[style=summary, title={Summary of comments and replacements}, show=comment|replaced]|
\listofchanges[style=summary, title={Summary of comments and replacements}, show=comment|replaced]
+
+\verb|\listofchanges[style=compactsummary, title={Compact summary of replacements}, show=replaced]|
\listofchanges[style=compactsummary, title={Compact summary of replacements}, show=replaced]
+
+\verb|\listofchanges[style=compactsummary, title={Compact summary of all changes (show=wrong)}, show=wrong]|
\listofchanges[style=compactsummary, title={Compact summary of all changes (show=wrong)}, show=wrong]
%</example:listofchanges:show>
%<*example:listofchanges:wrong>
+\verb|\listofchanges[style=wrong]|
\listofchanges[style=wrong]
%</example:listofchanges:wrong>