| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 2018-2021 |
| 4 |
% Ekkart Kleinod ([email protected]) |
| 5 |
% -------------------------------------------------------------------------- |
| 6 |
% |
| 7 |
% This work may be distributed and/or modified under the |
| 8 |
% conditions of the \LaTeX\ Project Public License, either version~1.3 |
| 9 |
% of this license or any later version. |
| 10 |
% The latest version of this license is in\\ |
| 11 |
% \url{http://www.latex-project.org/lppl.txt}\\ |
| 12 |
% and version~1.3 or later is part of all distributions of \LaTeX\ |
| 13 |
% version 2005/12/01 or later. |
| 14 |
% |
| 15 |
% This work has the LPPL maintenance status "maintained". |
| 16 |
% The current maintainer of this work is Ekkart Kleinod. |
| 17 |
% \fi |
| 18 |
% |
| 19 |
% \CharacterTable |
| 20 |
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 21 |
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 22 |
% Digits \0\1\2\3\4\5\6\7\8\9 |
| 23 |
% Exclamation \! Double quote \" Hash (number) \# |
| 24 |
% Dollar \$ Percent \% Ampersand \& |
| 25 |
% Acute accent \' Left paren \( Right paren \) |
| 26 |
% Asterisk \* Plus \+ Comma \, |
| 27 |
% Minus \- Point \. Solidus \/ |
| 28 |
% Colon \: Semicolon \; Less than \< |
| 29 |
% Equals \= Greater than \> Question mark \? |
| 30 |
% Commercial at \@ Left bracket \[ Backslash \\ |
| 31 |
% Right bracket \] Circumflex \^ Underscore \_ |
| 32 |
% Grave accent \` Left brace \{ Vertical bar \| |
| 33 |
% Right brace \} Tilde \~} |
| 34 |
% |
| 35 |
% \GetFileInfo{example-screenshot.dtx} |
| 36 |
% |
| 37 |
%^^A -------------------------------------------------------------------------- |
| 38 |
% |
| 39 |
% This is the most compact example for screenshots for the website. |
| 40 |
% |
| 41 |
% Start the \LaTeX document the standard way. |
| 42 |
% |
| 43 |
% \begin{macrocode} |
| 44 |
\documentclass[11pt, a4paper, notitlepage, ngerman, english]{scrartcl} |
| 45 |
\usepackage{babel} |
| 46 |
% \end{macrocode} |
| 47 |
% |
| 48 |
% Set with basic package. |
| 49 |
% |
| 50 |
% \begin{macrocode} |
| 51 |
\usepackage[font=charter, oneside]{basis} |
| 52 |
\author{Ekkart Kleinod} |
| 53 |
\title{Basic changes example} |
| 54 |
% \end{macrocode} |
| 55 |
% |
| 56 |
% Smaller test for screenshots. |
| 57 |
% |
| 58 |
% \begin{macrocode} |
| 59 |
\setlength{\textwidth}{180pt} |
| 60 |
% \end{macrocode} |
| 61 |
% |
| 62 |
% Nice listing. |
| 63 |
% |
| 64 |
% \begin{macrocode} |
| 65 |
\usepackage{listings} |
| 66 |
\lstset{ |
| 67 |
language=[AlLaTeX]TeX, |
| 68 |
float=hbp, |
| 69 |
numberstyle=\tiny\ttfamily, |
| 70 |
basicstyle=\scriptsize\ttfamily, |
| 71 |
identifierstyle=\color{DimGrey}, |
| 72 |
morekeywords={ |
| 73 |
}, |
| 74 |
keywordstyle=\color{LightSlateBlue}, |
| 75 |
commentstyle=\itshape\color{Thistle}, |
| 76 |
backgroundcolor=\color{PapayaWhip}, |
| 77 |
columns=fixed, |
| 78 |
tabsize=4, |
| 79 |
frame=single, |
| 80 |
extendedchars=true, |
| 81 |
showspaces=false, |
| 82 |
showstringspaces=false, |
| 83 |
numbers=none, |
| 84 |
breaklines=true, |
| 85 |
breakindent=3em, |
| 86 |
breakautoindent=true, |
| 87 |
captionpos=t, |
| 88 |
xleftmargin=1em, |
| 89 |
xrightmargin=1em, |
| 90 |
lineskip=0pt, |
| 91 |
numbersep=1em, |
| 92 |
classoffset=1, |
| 93 |
morekeywords={ |
| 94 |
added, |
| 95 |
changes, |
| 96 |
color, |
| 97 |
comment, |
| 98 |
compactsummary, |
| 99 |
deleted, |
| 100 |
definechangesauthor, |
| 101 |
highlight, |
| 102 |
id, |
| 103 |
listofchanges, |
| 104 |
name, |
| 105 |
replaced, |
| 106 |
setsummarywidth, |
| 107 |
setsummarytowidth, |
| 108 |
settruncatewidth, |
| 109 |
style, |
| 110 |
xcolor, |
| 111 |
}, |
| 112 |
keywordstyle=\color{Chocolate}, |
| 113 |
moredelim=[s][\color{SlateGrey}]{<}{>}, |
| 114 |
classoffset=0 |
| 115 |
} |
| 116 |
% \end{macrocode} |
| 117 |
% |
| 118 |
% Changes package and author. |
| 119 |
% |
| 120 |
% \begin{macrocode} |
| 121 |
\usepackage{changes} |
| 122 |
\definechangesauthor[color=purple, name={Ekkart Kleinod}]{EK} |
| 123 |
\setsummarytowidth{Commentedmmm} |
| 124 |
% \end{macrocode} |
| 125 |
% |
| 126 |
% The content in English first. |
| 127 |
% |
| 128 |
% \begin{macrocode} |
| 129 |
\begin{document} |
| 130 |
|
| 131 |
\begin{lstlisting} |
| 132 |
\usepackage{changes} |
| 133 |
\definechangesauthor[color=purple, name={Ekkart Kleinod}]{EK} |
| 134 |
|
| 135 |
... |
| 136 |
|
| 137 |
\listofchanges[style=compactsummary] |
| 138 |
|
| 139 |
This is \added[id=EK, comment={Missed word!}]{new} text with a comment. |
| 140 |
This is deleted \deleted{wrong} text. |
| 141 |
And some \replaced[id=EK]{replaced}{relpaced} text. |
| 142 |
Let \highlight{this} word stand out. |
| 143 |
This is the commented\comment[id=EK]{for now} end. |
| 144 |
\end{lstlisting} |
| 145 |
|
| 146 |
\listofchanges[style=compactsummary] |
| 147 |
|
| 148 |
\noindent |
| 149 |
This is \added[id=EK, comment={Missed word!}]{new} text with a comment.\\ |
| 150 |
This is deleted \deleted{wrong} text.\\ |
| 151 |
And some \replaced[id=EK]{replaced}{relpaced} text.\\ |
| 152 |
Let \highlight{this} word stand out.\\ |
| 153 |
This is the commented\comment[id=EK]{for now} end. |
| 154 |
|
| 155 |
% \end{macrocode} |
| 156 |
% |
| 157 |
% Now the same in German. |
| 158 |
% |
| 159 |
% \begin{macrocode} |
| 160 |
\clearpage |
| 161 |
\selectlanguage{ngerman} |
| 162 |
|
| 163 |
\begin{lstlisting} |
| 164 |
\usepackage{changes} |
| 165 |
\definechangesauthor[color=purple, name={Ekkart Kleinod}]{EK} |
| 166 |
|
| 167 |
... |
| 168 |
|
| 169 |
\listofchanges[style=compactsummary] |
| 170 |
|
| 171 |
Ein \added[id=EK, comment={Wort fehlt!}]{neuer} Text mit Kommentar. |
| 172 |
Und entfernter \deleted{falscher} Text. |
| 173 |
Dazu \replaced[id=EK]{ersetzter}{esretzter} Text. |
| 174 |
Hebe \highlight{dieses} Wort hervor. |
| 175 |
Wir sind\comment[id=EK]{vorerst} am Ende. |
| 176 |
\end{lstlisting} |
| 177 |
|
| 178 |
\listofchanges[style=compactsummary] |
| 179 |
|
| 180 |
Das ist \added[id=EK, comment={Wort fehlt!}]{neuer} Text mit Kommentar.\\ |
| 181 |
Das ist entfernter \deleted{falscher} Text.\\ |
| 182 |
Dazu \replaced[id=EK]{ersetzter}{esretzter} Text.\\ |
| 183 |
Hebe \highlight{dieses} Wort hervor.\\ |
| 184 |
Wir sind\comment[id=EK]{vorerst} am Ende. |
| 185 |
|
| 186 |
\end{document} |
| 187 |
% \end{macrocode} |
| 188 |
% |
| 189 |
%\Finale |
| 190 |
\endinput |