diff options
author | Karl Berry <karl@freefriends.org> | 2018-11-04 20:27:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-11-04 20:27:32 +0000 |
commit | 4859175b4924c3eaef115b2863325a3b0ced5e8d (patch) | |
tree | 566e9cc7d2514b30d8a336689d9e1d6664720cb0 /Master/texmf-dist/source/latex/changes/examples.dtx | |
parent | 100a6835ee4907ef9a8778ae422fa36f9791fbbd (diff) |
changes (4nov18)
git-svn-id: svn://tug.org/texlive/trunk@49079 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/changes/examples.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/changes/examples.dtx | 178 |
1 files changed, 145 insertions, 33 deletions
diff --git a/Master/texmf-dist/source/latex/changes/examples.dtx b/Master/texmf-dist/source/latex/changes/examples.dtx index 18ceb6bf52b..4b617a95c98 100644 --- a/Master/texmf-dist/source/latex/changes/examples.dtx +++ b/Master/texmf-dist/source/latex/changes/examples.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright (C) 2007-2013 +% Copyright (C) 2007-2018 % Ekkart Kleinod (ekleinod@edgesoft.de) % -------------------------------------------------------------------------- % @@ -46,9 +46,9 @@ % Different package options. % % \begin{macrocode} -%<*example:simple|example:setsocextension|example:setaddedmarkup|example:setdeletedmarkup|example:setauthormarkup|example:setauthormarkupposition|example:setauthormarkuptext|example:setremarkmarkup|example:listofchanges:list|example:listofchanges:summary|example:listofchanges:both|example:listofchanges:wrong> +%<*example:simple|example:setsocextension|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> \usepackage{changes} -%</example:simple|example:setsocextension|example:setaddedmarkup|example:setdeletedmarkup|example:setauthormarkup|example:setauthormarkupposition|example:setauthormarkuptext|example:setremarkmarkup|example:listofchanges:list|example:listofchanges:summary|example:listofchanges:both|example:listofchanges:wrong> +%</example:simple|example:setsocextension|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:draft> \usepackage[draft]{changes} @@ -73,9 +73,9 @@ \usepackage[markup=wrong]{changes} %</example:markup:wrong> % -%<*example:addedmarkup:none> -\usepackage[addedmarkup=none]{changes} -%</example:addedmarkup:none> +%<*example:addedmarkup:colored> +\usepackage[addedmarkup=colored]{changes} +%</example:addedmarkup:colored> %<*example:addedmarkup:uline> \usepackage[addedmarkup=uline]{changes} %</example:addedmarkup:uline> @@ -91,12 +91,6 @@ %<*example:addedmarkup:dotuline> \usepackage[addedmarkup=dotuline]{changes} %</example:addedmarkup:dotuline> -%<*example:addedmarkup:sout> -\usepackage[addedmarkup=sout]{changes} -%</example:addedmarkup:sout> -%<*example:addedmarkup:xout> -\usepackage[addedmarkup=xout]{changes} -%</example:addedmarkup:xout> %<*example:addedmarkup:bf> \usepackage[addedmarkup=bf]{changes} %</example:addedmarkup:bf> @@ -113,9 +107,9 @@ \usepackage[addedmarkup=wrong]{changes} %</example:addedmarkup:wrong> % -%<*example:deletedmarkup:none> -\usepackage[deletedmarkup=none]{changes} -%</example:deletedmarkup:none> +%<*example:deletedmarkup:colored> +\usepackage[deletedmarkup=colored]{changes} +%</example:deletedmarkup:colored> %<*example:deletedmarkup:uline> \usepackage[deletedmarkup=uline]{changes} %</example:deletedmarkup:uline> @@ -153,6 +147,29 @@ \usepackage[deletedmarkup=wrong]{changes} %</example:deletedmarkup:wrong> % +%<*example:commentmarkup:margin> +\usepackage[commentmarkup=margin]{changes} +%</example:commentmarkup:margin> +%<*example:commentmarkup:footnote> +\usepackage[commentmarkup=footnote]{changes} +%</example:commentmarkup:footnote> +%<*example:commentmarkup:uwave> +\usepackage[commentmarkup=uwave]{changes} +%</example:commentmarkup:uwave> +%<*example:commentmarkup:todo> +\usepackage[commentmarkup=todo]{changes} +%</example:commentmarkup:todo> +% +%<*example:highlightmarkup:background> +\usepackage[highlightmarkup=background]{changes} +%</example:highlightmarkup:background> +%<*example:highlightmarkup:uuline> +\usepackage[highlightmarkup=uuline]{changes} +%</example:highlightmarkup:uuline> +%<*example:highlightmarkup:uwave> +\usepackage[highlightmarkup=uwave]{changes} +%</example:highlightmarkup:uwave> +% %<*example:authormarkup:superscript> \usepackage[authormarkup=superscript]{changes} %</example:authormarkup:superscript> @@ -192,12 +209,31 @@ \usepackage[authormarkuptext=wrong]{changes} %</example:authormarkuptext:wrong> % +%<*example:packageoptions.todonotes> +\usepackage[todonotes={textsize=tiny}]{changes} +%</example:packageoptions.todonotes> +%<*example:packageoptions.truncate> +\usepackage[truncate=hyphenate]{changes} +%</example:packageoptions.truncate> +%<*example:packageoptions.ulem> +\usepackage[ulem=UWforbf]{changes} +%</example:packageoptions.ulem> +%<*example:packageoptions.xcolor> +\usepackage[xcolor=hideerrors]{changes} +%</example:packageoptions.xcolor> +% %<*example:setaddedmarkup> \setaddedmarkup{\emph{#1}} %</example:setaddedmarkup> %<*example:setdeletedmarkup> \setdeletedmarkup{\emph{#1}} %</example:setdeletedmarkup> +%<*example:setcommentmarkup> +\setcommentmarkup{\ifthenelse{\isColored}{\color{authorcolor}}{}---~\ifthenelse{\isAnonymous{#2}}{}{\textbf{#3} }#1~---} +%</example:setcommentmarkup> +%<*example:sethighlightmarkup> +\sethighlightmarkup{\emph{#1}} +%</example:sethighlightmarkup> % %<*example:setauthormarkup> \setauthormarkup{\xout{#1}} @@ -209,9 +245,16 @@ \setauthormarkuptext{name} %</example:setauthormarkuptext> % -%<*example:setremarkmarkup> -\setremarkmarkup{\footnote{#2 as was written by #1}} -%</example:setremarkmarkup> +%<*example:settruncatewidth> +\settruncatewidth{.3\textwidth} +%</example:settruncatewidth> +% +%<*example:setsummarywidth> +\setsummarywidth{3cm} +%</example:setsummarywidth> +%<*example:setsummarytowidth> +\setsummarytowidth{The longest text you can imagine for the summary.} +%</example:setsummarytowidth> % %<*example:setsocextension> \setsocextension{changes} @@ -223,25 +266,55 @@ % \begin{macrocode} \definechangesauthor[color=green]{Green} \definechangesauthor[name={Mister Orange}, color=orange]{OA} +\definechangesauthor{nochanges} % \end{macrocode} % -% This ist the document we use, some paragraphs from \texttt{http://slipsum.com/}. +% This is the document we use, some paragraphs from \texttt{http://slipsum.com/}. % % \begin{macrocode} \begin{document} -%<example:simple>\section*{Changes Example: Simple} -%<*example:listofchanges:list> +%<example:simple>\verb|\usepackage{changes}| +%<example:listofchanges:summary>\verb|\listofchanges[style=summary]| +%<example:setaddedmarkup>\verb|\setaddedmarkup{\emph{#1}}| +%<example:setdeletedmarkup>\verb|\setdeletedmarkup{\emph{#1}}| +%<example:setcommentmarkup>\verb|\setcommentmarkup{\ifthenelse{\isColored}{\color{authorcolor}}{}---~\ifthenelse{\isAnonymous{#2}}{}{\textbf{#3} }#1~---}| +%<example:sethighlightmarkup>\verb|\sethighlightmarkup{\emph{#1}}| +%<example:setauthormarkup>\verb|\setauthormarkup{\xout{#1}}| +%<example:setauthormarkupposition>\verb|\setauthormarkupposition{left}| +%<example:setauthormarkuptext>\verb|\setauthormarkuptext{name}| +%<example:settruncatewidth>\verb|\settruncatewidth{.3\textwidth}| +%<example:setsummarywidth>\verb|\setsummarywidth{3cm}| +%<example:setsummarytowidth>\verb|\setsummarytowidth{The longest text you can imagine for the summary.}| + + +%<*example:listofchanges:list|example:settruncatewidth> \listofchanges -%</example:listofchanges:list> -%<*example:listofchanges:summary> +%</example:listofchanges:list|example:settruncatewidth> +%<*example:listofchanges:summary|example:setsummarywidth|example:setsummarytowidth> \listofchanges[style=summary] -%</example:listofchanges:summary> -%<*example:listofchanges:both> +%</example:listofchanges:summary|example:setsummarywidth|example:setsummarytowidth> +%<*example:listofchanges:compactsummary> +\listofchanges[style=compactsummary] +%</example:listofchanges:compactsummary> +%<*example:listofchanges:all> \listofchanges \listofchanges[style=summary] -%</example:listofchanges:both> +\listofchanges[style=compactsummary] +%</example:listofchanges:all> +%<*example:listofchanges:title> +\listofchanges[title={New title for loc}] +\listofchanges[style=summary, title={New title for summary}] +\listofchanges[style=compactsummary, title={New title for compact summary}] +%</example:listofchanges:title> +%<*example:listofchanges:show> +\listofchanges[title={Additions and deletions}, show=added|deleted] +\listofchanges[title={Comments}, show=comment] +\listofchanges[style=summary, title={Summary of comments and replacements}, show=comment|replaced] +\listofchanges[style=compactsummary, title={Compact summary of replacements}, show=replaced] +\listofchanges[style=compactsummary, title={Compact summary of all changes (show=wrong)}, show=wrong] +%</example:listofchanges:show> %<*example:listofchanges:wrong> \listofchanges[style=wrong] %</example:listofchanges:wrong> @@ -252,29 +325,41 @@ You think water moves fast? \added{You should see ice.} It moves like it has a mind. Like it knows it killed the world once and got a taste for murder. -\deleted[remark={No?}]{After the avalanche, it took us a week to climb out.} +\deleted[comment={No?}]{After the avalanche, it took us a week to climb out.} Now, I don't know exactly \added{when} we turned on each other, but I know that seven of us survived the slide... and only five made it out. \replaced{Now we took an oath, that I'm breaking now.}{We said we'd say it was the snow that killed the other two, but it wasn't.} Nature is lethal but it doesn't hold a candle to man. +However unreal\comment{speaking of unreal\dots} it may seem, we are connected, you and I. +We're on the same curve, just on opposite ends. +You don't get \highlight[comment={Yes, sick.}]{sick}, I do. +That's also \highlight{clear}. \subsection*{Changes by green author} The lysine contingency - it's intended to prevent the spread of the animals is case they ever got off the island. -\added[id=Green]{Dr. Wu inserted} a gene \replaced[id=Green]{taht}{that} makes a \deleted[id=Green]{single} faulty enzyme in protein metabolism. +Dr. Wu inserted a gene \replaced[id=Green]{taht}{that} makes a \deleted[id=Green]{single} faulty enzyme in protein metabolism. The animals can't manufacture the amino acid lysine. Unless \replaced[id=Green]{they're}{continually} supplied with lysine by us, they'll slip into a coma and die. +We're on the same curve, just on opposite ends. +However unreal\comment[id=Green]{speaking of unreal\dots} it may seem, we are connected, you and I. +You don't get \highlight[id=Green, comment={Yes, sick.}]{sick}, I do. +That's also \highlight[id=Green]{clear}. -\subsection*{Changes by orange author with some remarks} +\subsection*{Changes by orange author with some comments} Now that we know who you are, I know who I am. -\added[id=OA, remark={Yeah, I like animals better than people sometimes\dots}]{I'm not a mistake!} +\added[id=OA, comment={Yeah, I like animals better than people sometimes\dots}]{I'm not a mistake!} It all makes sense! In a comic, you know how you can tell who the arch-villain's going to be? -\deleted[id=OA, remark={Especially dogs. Dogs are the best.}]{He's the exact opposite of the hero.} +\deleted[id=OA, comment={Especially dogs. Dogs are the best.}]{He's the exact opposite of the hero.} \deleted[id=OA]{And most times they're friends, like you and me!} I should've known way back when... -\replaced[id=OA, remark={Every time you come home, they act like they haven't seen you in a year.}]{You know why, David?}{Because of the kids.} +You know why, David? They called me Mr Glass. +However unreal\comment[id=OA]{just nice} it may seem, we are connected, you and I. +We're on the same curve, just on opposite ends. +You don't get \highlight[id=OA, comment={Yes, sick.}]{sick}, I do. +That's also \highlight[id=OA]{clear}. \subsection*{No changes} @@ -288,10 +373,37 @@ We swallow it too fast, we choke. \emph{We get some in our lungs, we drown.} However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends. +You don't get sick, I do. +That's also clear. + +%<*example:packageoptions.ulem> +\subsection*{Options to ulem package: UWforbf} + +This is \textbf{bold} text, underwaved by \emph{ulem} because of the \emph{UWforbf} option. +%</example:packageoptions.ulem> + +%<*example:packageoptions.xcolor> +\subsection*{Options to xcolor package: hideerrors} + +\textcolor{rainbow}{This text is black instead of \emph{rainbow}, a color that does not exist. +Because of the option \emph{hideerrors} only a warning is raised, not an error.} +%</example:packageoptions.xcolor> + +%<*example:packageoptions.todonotes> +\subsection*{Options to todonotes package: textsize=tiny} + +All\todo{very small text} notes have very small text. +%</example:packageoptions.todonotes> + +%<*example:packageoptions.truncate> +\subsection*{Options to truncate package: hyphenate} + +\truncate{12em}{Truncate word at hyphenation.} +%</example:packageoptions.truncate> + \end{document} % \end{macrocode} % %\Finale \endinput - |