Debian Codegraph @

texmf-dist/doc/latex/argumentation/argumentation-doc.tex

raw
1 \documentclass{scrartcl}
2
3 \usepackage[top=1.35in, bottom=1.33in, left=1.35in, right=1.35in]{geometry}
4 \usepackage[T1]{fontenc} % Font Encoding
5 \usepackage[utf8]{inputenc} % Input font encoding
6 \usepackage[english]{babel} % Language
7 \usepackage{subcaption} % Multi-part Figures
8 \usepackage[nohyperref]{doc} % Showing Commands (must load before tcolorbox)
9 \usepackage[breakable]{tcolorbox} % Fancier Examples
10 \usepackage{booktabs} % Fancier Tables
11 \usepackage{enumitem} % Fancier Enumeration
12 \usepackage[hidelinks, % Setting Meta-Data and hyperlinks
13 pdfauthor={Lars Bengel},
14 pdftitle={The argumentation LaTeX-package},
15 pdfsubject={Documentation of the argumentation LaTeX-package},
16 pdfkeywords={argumentation,tikz,graphs}]{hyperref}
17 \usepackage[macros,beamer]{argumentation} % Main Package
18
19 %%% Document settings
20 \KOMAoptions{
21 paper=a4,
22 fontsize=10pt,
23 cleardoublepage=empty,
24 footinclude=true
25 }
26
27 %%% Various commands used in the document
28 \newcommand{\todo}[1]{\textcolor{magenta}{TODO: #1}} % for todos
29 \newcommand{\tikzname}{Ti\emph{k}Z\xspace}
30 \newcommand{\argumentation}{\texttt{argumentation}\xspace}
31 \newtheorem{example}{Example}
32 \tcolorboxenvironment{example}{colframe=aigblue,colback=aigyellow!30,breakable,before skip=10pt,after skip=10pt}
33 \newcommand{\mopt}[2][red]{\textcolor{#1}{\ttfamily \meta{#2}}}
34 \newcommand{\oopt}[2][orange]{\textcolor{#1}{\ttfamily \meta{#2}}}
35 \newcommand{\popt}[2][magenta]{\textcolor{#1}{\ttfamily \meta{#2}}}
36 \newcommand{\sopt}[2][green]{\textcolor{#1}{\ttfamily \meta{#2}}}
37
38 %%% Taken from ltxdoc-class
39 \def\cmd#1{\cs{\expandafter\cmd@to@cs\string#1}}
40 \def\cmd@to@cs#1#2{\char\number`#2\relax}
41 \DeclareRobustCommand\cs[2][-1.6cm]{\hspace{#1}\texttt{\char`\\#2}}
42
43 \title{The \argumentation Package}
44 \author{Lars Bengel\footnotemark\\\small [email protected]}
45 \date{Version 1.6 [2025/07/31]}
46
47 \begin{document}
48 \maketitle
49
50 \renewcommand*{\thefootnote}{\fnsymbol{footnote}}
51 \footnotetext[1]{Please report any issues at \url{https://github.com/aig-hagen/tikz_argumentation}}
52 \renewcommand*{\thefootnote}{\arabic{footnote}}
53
54 \begin{minipage}{.26\textwidth}
55 \centering
56 \begin{af}[argumentstyle=gray,namestyle=monospace]
57 \argument{a}
58 \argument[right=of a1]{b}
59 \argument[below=of a1]{c}
60 \argument[right=of a3]{d}
61
62 \attack{a1}{a2}
63 \attack{a2}{a3}
64 \attack[bend right]{a3}{a4}
65 \label{af:example}
66 \end{af}
67 \end{minipage}
68 \begin{minipage}{.5\textwidth}
69 \begin{small}
70 \begin{verbatim}
71 \begin{af}[argumentstyle=gray,namestyle=monospace]
72 \argument{a}
73 \argument[right=of a1]{b}
74 \argument[below=of a1]{c}
75 \argument[right=of a3]{d}
76
77 \attack{a1}{a2}
78 \attack{a2}{a3}
79 \attack[bend right]{a3}{a4}
80 \label{af:example}
81 \end{af}
82 \end{verbatim}
83 \end{small}
84 \end{minipage}
85
86 \tableofcontents
87
88 \newpage
89
90 %\sffamily
91 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
92 \section{Quick Guide}\label{sec:quick}
93 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
94 \noindent
95 To create an argumentation framework in your \LaTeX-document, you first have to import the \argumentation package in the preamble:\\
96
97 \noindent\cs[0cm]{usepackage\{argumentation\}}\\
98
99 You can then create a new \texttt{af} environment in which the argumentation framework can then be built:\\
100
101 \noindent\cs[0cm]{begin\{af\}}
102
103 \quad\sopt{environment~contents}
104
105 \noindent\cs[0cm]{end\{af\}}\\
106
107 You may want to wrap the \texttt{af} environment in a \texttt{figure} environment in order to add a caption and reference label.
108 You can also add a label inside the \texttt{af} environment via \verb|\label{|\sopt{label}\verb|}|.
109 Anywhere in your document, you can then reference the af with \verb|\ref{|\sopt{label}\verb|}|.
110
111 Inside the \texttt{af} environment, you can then add an argument as follows:\\
112
113 \noindent\cs[0cm]{argument\{\mopt{name}\}}\\
114
115 Here, \mopt{name} is the name of the argument displayed in the graph and the argument is automatically assigned an \emph{identifier} of the form: $a1$, $a2$, \dots.
116
117 To properly add further arguments, you also need to specify a position.
118 The \argumentation package offers two easy ways of doing that:\\
119
120 \noindent\cs[0cm]{argument[\mopt{dir}=of \mopt{argId}]\{\mopt{name}\}}\\
121
122 \noindent\cs[0cm]{argument\{\mopt{name}\} at (\popt{posX},\popt{posY})}\\
123
124 The first instance is \emph{relative positioning} where \mopt{dir} is the direction of placement relative to the argument with the identifier \mopt{argId}, with \mopt{dir} typically being one of: \textsf{right}, \textsf{left}, \textsf{above}, \textsf{below}.
125
126 The second instance is \emph{absolute positioning} where \texttt{(\popt{posX}, \popt{posY})} is a set of coordinates, for example something like $\texttt{(2, 0)}$, $\texttt{(0, -2)}$ or $\texttt{(-1, 3.5)}$.
127
128 The next step is adding attacks.
129 For that you can simply use the following command:\\
130
131 \noindent\cs[0cm]{attack\{\mopt{a1}\}\{\mopt{a2}\}}\\
132
133 \noindent
134 Substitute \mopt{a1} and \mopt{a2} with the identifier of the two arguments.
135 Alternatively, you can also directly create bidirectional attacks and self-attacks with the following two commands:\\
136
137 \noindent\cs[0cm]{dualattack\{\mopt{a1}\}\{\mopt{a2}\}}\\
138 \noindent\cs[0cm]{selfattack\{\mopt{a1}\}}\\
139
140
141 To customize the look of the arguments and attacks and for a detailed overview over all options and commands provided by this package, please refer to the following example or to the full documentation in Section~\ref{sec:documentation}.
142
143
144 \newpage
145 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
146 \section{Example Usage}\label{sec:example}
147 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
148 \vspace{-0.5cm}
149 \begin{figure}[ht]
150 \centering
151 \begin{af}[namestyle=math]
152 \argument{a}
153 \argument[right=of a1]{b}
154 \argument[right=of a2]{c}
155 \argument[rejected,right=of a3]{d}
156 \argument[right=of a4,incomplete]{e}
157 \argument[below=of a1]{f}
158 \argument[inactive,right=of a6]{g}
159 \argument[accepted,right=of a7]{h}
160 \argument[right=of a8]{i}
161 \argument[right=of a9]{j}
162
163 \annotation[right,yshift=-0.4cm]{a5}{$a\lor b$}
164
165 \afname{$F_{\ref{af:ex2}}$} at (-1,-1)
166
167 \selfattack{a1}
168 \dualattack{a1}{a6}
169 \dualattack[inactive]{a6}{a7}
170
171 \attack[inactive]{a8}{a7}
172 \attack[inactive]{a7}{a2}
173 \annotatedattack[above]{a3}{a2}{$3$}
174 \annotatedattack[below,incomplete]{a4}{a5}{$x$}
175 \attack{a5}{a10}
176 \attack{a10}{a9}
177 \attack{a9}{a4}
178
179 \support{a4}{a3}
180 \support{a9}{a3}
181 \label{af:ex2}
182 \end{af}
183 \caption{The AF $F_{\ref{af:ex2}}$ created with the \argumentation package.}
184 \label{fig:example}
185 \end{figure}
186
187 \begin{verbatim}
188 \usepackage[namestyle=math]{argumentation}
189 ...
190 \begin{document}
191 ...
192 \begin{figure}[ht]
193 \centering
194 \begin{af}
195 \argument{a}
196 \argument[right=of a1]{b}
197 \argument[right=of a2]{c}
198 \argument[rejected,right=of a3]{d}
199 \argument[right=of a4,incomplete]{e}
200 \argument[below=of a1]{f}
201 \argument[inactive,right=of a6]{g}
202 \argument[accepted,right=of a7]{h}
203 \argument[right=of a8]{i}
204 \argument[right=of a9]{j}
205
206 \annotation[right,yshift=-0.4cm]{a5}{$a\lor b$}
207 \afname{$F_{\ref{af:ex2}}$} at (-1,-1)
208
209 \selfattack{a1}
210 \dualattack{a1}{a6}
211 \dualattack[inactive]{a6}{a7}
212
213 \attack[inactive]{a8}{a7}
214 \attack[inactive]{a7}{a2}
215 \attack{a5}{a10}
216 \attack{a10}{a9}
217 \attack{a9}{a4}
218
219 \annotatedattack[above]{a3}{a2}{$3$}
220 \annotatedattack[below,incomplete]{a4}{a5}{$x$}
221 \support{a4}{a3}
222 \support{a9}{a3}
223 \label{af:ex2}
224 \end{af}
225 \caption{The AF $F_{\ref{af:ex2}}$ created with the \argumentation package.}
226 \label{fig:example}
227 \end{figure}
228 ...
229 \end{document}
230 \end{verbatim}
231
232 \newpage
233 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
234 \section{Documentation for Version 1.6 [2025/07/31]}\label{sec:documentation}
235 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
236 The \argumentation package provides an easy way for creating argumentation frameworks\footnote{Dung, P. M. (1995). On the acceptability of arguments and its fundamental role in non-monotonic reasoning, logic programming and n-person games. Artificial intelligence.} in \LaTeX-documents.
237 It builds on the \tikzname package for drawing the argumentation graphs.
238 The \argumentation package provides simplified syntax while keeping the same customisation options and keeping full compatibility with all \tikzname features.
239 In addition to that, the \argumentation package provides the ability to label and reference the created argumentation frameworks as well as some other additional features.
240
241 The \argumentation package can be imported via the command\\
242
243 \noindent\cs{usepackage[\oopt{options}]\{argumentation\}}\\
244
245 \vspace{-0.2cm}
246 In the following, we give an overview over the functionality of the \argumentation package.
247 Most importantly, that includes the \texttt{af} environment to encapsulate the created argumentation frameworks, the command \verb|\argument{ }| to create argument nodes and the \verb|attack{ }{ }| command to create attack edges.
248 Options to customise the appearance of arguments and attacks are described in Section~\ref{sec:options}.
249
250 \vspace{-0.2cm}
251 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
252 \subsection{The \texttt{af} Environment}
253 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
254 The \argumentation package provides an environment for creating argumentation frameworks in \LaTeX-documents.\\
255
256 \noindent\cs{begin\{af\} [\oopt{options}]}
257
258 \hspace{-1cm}\sopt{environment~contents}
259
260 \noindent\cs[-1.6cm]{end\{af\}}\\
261
262 \vspace{-0.2cm}
263 The \texttt{af} environment supports referencing.
264 For that add the command \cs[0cm]{label\{\sopt{label}\}} anywhere inside an \texttt{af} environment.
265 The AFs are automatically numbered in ascending order of occurrence.
266 The \sopt{label} allows you to reference the corresponding AF via \cs[0cm]{ref\{\sopt{label}\}} anywhere in the document.
267
268 If you want to create an AF that is excluded from the automatic numbering, the \argumentation package provides the \texttt{af*} version of the environment, which has the same functionality otherwise:\\
269
270 \noindent\cs{begin\{af*\} [\oopt{options}]}
271
272 \hspace{-1cm}\sopt{environment~contents}
273
274 \noindent\cs[-1.6cm]{end\{af*\}}\\
275
276 \vspace{-0.2cm}
277 The \texttt{af} (and \texttt{af*}) environment also accepts the package style options (see Section~\ref{sec:options}).
278 Locally set style options override defaults and the values set globally with the package import.
279
280 In general, the \texttt{af} environment extends the \texttt{tikzpicture} environment, meaning all \tikzname commands and parameters can be used for the \texttt{af} environment.
281 The \argumentation package also provides the options \textsf{small} or \textsf{tiny} for the \texttt{af} environment to create smaller AFs.
282 This is especially useful for two-column layout documents.
283
284
285 \begin{figure}[!ht]
286 \begin{subfigure}{0.48\textwidth}
287 \centering
288 \begin{af}[small,namestyle=math]
289 \label{af:small}
290 \argument{a}
291 \argument[right=of a1]{b}
292 \argument[right=of a2]{c}
293 \argument[right=of a3]{d}
294 \argument[right=of a4]{e}
295 \argument[below=of a1]{f}
296 \argument[inactive,right=of a6]{g}
297 \argument[inactive,argin,right=of a7]{h}
298 \argument[right=of a8]{i}
299 \argument[right=of a9]{j}
300
301 \afname[left of=a1,yshift=-0.55cm,xshift=-0.2cm]{\afref{af:small}}
302
303 \selfattack{a1}
304 \dualattack[]{a1}{a6}
305 \dualattack[inactive]{a6}{a7}
306 \attack[inactive]{a8}{a7}
307
308 \attack[inactive]{a7}{a2}
309 \attack[]{a3}{a2}
310
311 \support[]{a4}{a3}
312 \support[]{a9}{a3}
313
314 \attack[]{a4}{a5}
315 \attack[]{a5}{a10}
316 \attack[]{a10}{a9}
317 \attack[]{a9}{a4}
318 \end{af}
319 \caption{An AF created with the \textsf{small} option set.}
320 \label{fig:example_small}
321 \end{subfigure}
322 \hfill
323 \begin{subfigure}{0.48\textwidth}
324 \centering
325 \begin{af}[tiny,namestyle=math]
326 \label{af:tiny}
327 \argument{a}
328 \argument[right=of a1]{b}
329 \argument[right=of a2]{c}
330 \argument[right=of a3]{d}
331 \argument[right=of a4]{e}
332 \argument[below=of a1]{f}
333 \argument[inactive,right=of a6]{g}
334 \argument[inactive,argin,right=of a7]{h}
335 \argument[right=of a8]{i}
336 \argument[right=of a9]{j}
337
338 \afname[left of=a1,yshift=-0.4cm,xshift=-0.2cm]{\afref{af:tiny}}
339
340 \selfattack{a1}
341 \dualattack[]{a1}{a6}
342 \dualattack[inactive]{a6}{a7}
343 \attack[inactive]{a8}{a7}
344
345 \attack[inactive]{a7}{a2}
346 \attack[]{a3}{a2}
347
348 \support[]{a4}{a3}
349 \support[]{a9}{a3}
350
351 \attack[]{a4}{a5}
352 \attack[]{a5}{a10}
353 \attack[]{a10}{a9}
354 \attack[]{a9}{a4}
355 \end{af}
356 \caption{An AF created with the \textsf{tiny} option set.}
357 \label{fig:example_tiny}
358 \end{subfigure}
359 \caption{Argumentation frameworks using the \textsf{small} and \textsf{tiny} option of the \texttt{af} environment.}
360 \label{fig:mini_afs}
361 \end{figure}
362
363
364 \newpage
365 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
366 \subsection{Creating Arguments}\label{sec:arguments}
367 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
368
369 Inside an \texttt{af} (or \texttt{af*}) environment, you can create argument nodes for the argumentation framework with the following command\\
370
371 \noindent\cs{argument [\oopt{options}] (\popt{id}) \{\mopt{name}\} at (\popt{posX},\popt{posY})}
372
373 \begin{description}
374 \item[\oopt{options}] (optional) a list of \tikzname style parameters and/or relative positioning information.
375 \item[\popt{id}] (optional) the identifier of the new argument. Per default, when omitted, arguments will automatically be assigned an identifier of the form: $a1, a2, a3,...$.
376 \item[\mopt{name}] the displayed name of the argument.
377 \item[\popt{posX},\popt{posY}] (optional) the coordinates where the argument is placed. Must be omitted if relative positioning is used.
378 \end{description}
379
380 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
381 \subsubsection{Positioning}\label{sec:positioning}
382 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
383 The \argumentation package also provides the ability to use \emph{relative positioning} instead of absolute positioning via coordinates.
384 For that, it relies on relative placement via the \tikzname-library \textsf{positioning}.
385 The relative positioning information is provided as an optional parameter via \texttt{[\oopt{options}]} as follows\\
386
387 \noindent\cs{argument[\mopt{dir}=of \mopt{argId}]\{\mopt{name}\}}
388
389 \begin{description}
390 \item[\mopt{dir}] The direction of placement relative to the argument \mopt{argId}. Typically one of: \textsf{above}, \textsf{right}, \textsf{left} or \textsf{below}.
391 \item[\mopt{argId}] The identifier of another argument.
392 \item[\mopt{name}] The displayed name of the argument.
393 \end{description}
394
395 Additionally, you can adjust the horizontal/vertical position of an argument by adding \verb|xshift=|\mopt{v} or \verb|yshift=|\mopt{v} inside the \texttt{[...]}.
396 The value \mopt{v} is hereby the horizontal/vertical offset, e.\,g., \verb|-6.6ex| or \verb|1cm|.
397
398 In the following, we list some useful style options for the \verb|\argument| command, provided by the\argumentation package:
399
400 \vspace{-0.15cm}
401 \begin{table}[ht]
402 \centering
403 \begin{tabular}{ll}
404 \textsf{inactive} &\quad \text{The argument is displayed with grey outline and text.}\\
405 \textsf{incomplete} &\quad \text{The argument is displayed with a dotted outline.}\\
406 \textsf{invisible} &\quad \text{The argument node is completely transparent.}\\
407 \textsf{accepted} &\quad \text{The argument is displayed with green background color.}\\
408 \textsf{rejected} &\quad \text{The argument is displayed with red background color.}\\
409 \textsf{undecided} &\quad \text{The argument is displayed with cyan background color.}\\
410 \textsf{highlight} &\quad \text{The argument is displayed with yellow background color.}\\
411 \end{tabular}
412 \caption{Some style options for the \cs[0cm]{argument} command (for exact definition see Section~\ref{sec:parameters}).}
413 \label{tab:argument_style}
414 \end{table}
415
416 \vspace{-0.4cm}
417 \begin{example}~
418
419 \vspace{-0.2cm}
420 \begin{minipage}{0.3\textwidth}
421 \centering
422 \begin{af}[namestyle=math]
423 \argument{a}
424 \argument{b} at (1,0)
425 \argument[below=of a1,accepted](c){c}
426 \argument(x){d} at (1,-1)
427 \argument[right=of x,yshift=0.5cm]{e}
428 \argument[inactive]{f} at (2,-1.5)
429 \end{af}
430 \end{minipage}%
431 \begin{minipage}{0.7\textwidth}
432 \begin{small}
433 \begin{verbatim}
434 \begin{af}[namestyle=math]
435 \argument{a}
436 \argument{b} at (1,0)
437 \argument[below=of a1,accepted](c){c}
438 \argument(x){d} at (1,-1)
439 \argument[right=of x,yshift=0.5cm]{e}
440 \argument[inactive]{f} at (2,-1.5)
441 \end{af}
442 \end{verbatim}
443 \end{small}
444 \end{minipage}
445 \vspace{-0.3cm}
446 \end{example}
447
448
449 \newpage
450 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
451 \subsection{Creating Attacks}\label{sec:attacks}
452 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
453
454 To create an directed attack between two argument nodes, you can use the following command.
455 The parameters \mopt{arg1} and \mopt{arg2} are the identifiers of the two arguments.\\
456
457 \noindent\cs{attack [\oopt{options}] \{\mopt{argId1}\} \{\mopt{argId2}\}}
458 \begin{description}
459 \item[\oopt{options}] (optional) a list of \tikzname style parameters.
460 \item[\mopt{arg1}] Identifier of the attacking argument.
461 \item[\mopt{arg2}] Identifier of the attacked argument.\\
462 \end{description}
463
464 To simplify creating special types of attacks, like bidirectional attacks or self-attacks, the following two commands are provided.\\
465
466 \noindent\cs{dualattack [\oopt{options}] \{\mopt{argId1}\} \{\mopt{argId2}\}}
467 \begin{description}
468 \item[\oopt{options}] (optional) a list of \tikzname style parameters.
469 \item[\mopt{arg1}] Identifier of the first argument.
470 \item[\mopt{arg2}] Identifier of the second argument.
471 \end{description}
472
473 \noindent\cs{selfattack [\oopt{options}] \{\mopt{argId}\}}
474 \begin{description}
475 \item[\oopt{options}] (optional) a list of \tikzname style parameters.
476 \item[\mopt{arg1}] Identifier of the self-attacking argument.
477 \end{description}
478
479 For \verb|\selfattack| you might want to specify the position of the attack loop.
480 For that, you should provide the start and end point of the attack-edge (as a degree from \verb|0| to \verb|360|) via the optional \tikzname-parameters \texttt{in=\oopt{degree1}} and \texttt{out=\oopt{degree2}}.
481 The default values are \texttt{in=0} and \texttt{out=60}.\\
482
483 If you want to attach a value to an attack edge, you may use the following command.\\
484
485 \noindent\cs{annotatedattack [\oopt{options}] \{\mopt{argId1}\} \{\mopt{argId2}\} \{\mopt{value}\}}
486 \begin{description}
487 \item[\oopt{options}] Optional \tikzname parameters. Must also include one of the following parameters to specify placement of the annotation relative to the attack arrow: \textsf{above}, \textsf{below}, \textsf{left}, \textsf{right}.
488 \item[\mopt{arg1}] Identifier of the attacking argument.
489 \item[\mopt{arg2}] Identifier of the attacked argument.
490 \item[\mopt{value}] The text that is annotated.\\
491 \end{description}
492
493 As an alternative to the standard attack arrow, you can use the following command.\\
494
495 \noindent\cs{support [\oopt{options}] \{\mopt{argId1}\} \{\mopt{argId2}\}}
496 \begin{description}
497 \item[\oopt{options}] (optional) a list of \tikzname style parameters.
498 \item[\mopt{arg1}] Identifier of the supporting argument.
499 \item[\mopt{arg2}] Identifier of the supported argument.\\
500 \end{description}
501
502 \newpage
503 Some useful style options for the attacks (and other edges) are listed below:
504
505 \begin{table}[ht]
506 \centering
507 \begin{tabular}{ll}
508 \textsf{inactive} &\quad \text{The attack is displayed in grey.}\\
509 \textsf{incomplete} &\quad \text{The attack is displayed with a dotted line.}\\
510 \textsf{invisible} &\quad \text{The attack is completely transparent.}\\
511 \textsf{selfattack} &\quad \text{Use if source and target of the attack are the same node.}\\
512 \textsf{bend~right} &\quad \text{The attack arrow is bent to the right.}\\
513 &\quad \text{Can additionally provide the angle, e.\,g., \textsf{bend~right=40}.}\\
514 \textsf{bend~left} &\quad \text{The attack arrow is bent to the left. Can also provide an angle.}
515 \end{tabular}
516 \caption{Some useful style options for the \cs[0cm]{attack} (and related) commands. For the exact definition see Section~\ref{sec:parameters}.}
517 \label{tab:attack_style}
518 \end{table}
519
520 \begin{example}~
521
522 \begin{minipage}{0.3\textwidth}
523 \centering
524 \begin{af}[namestyle=math]
525 \argument{a}
526 \argument[right=of a1]{b}
527 \argument[below=of a1]{c}
528 \argument[right=of a3]{d}
529
530 \attack{a3}{a1}
531 \selfattack[incomplete]{a3}
532 \dualattack{a1}{a2}
533 \annotatedattack[right]{a2}{a4}{$x$}
534 \support[bend left]{a4}{a3}
535 \end{af}
536 \end{minipage}%
537 \begin{minipage}{0.7\textwidth}
538 \begin{verbatim}
539 \begin{af}[namestyle=math]
540 ...
541
542 \attack{a3}{a1}
543 \selfattack[incomplete]{a3}
544 \dualattack{a1}{a2}
545 \annotatedattack[right]{a2}{a4}{$x$}
546 \support[bend left]{a4}{a3}
547 \end{af}
548 \end{verbatim}
549 \end{minipage}
550 \end{example}
551
552 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
553 \subsection{Beamer}\label{sec:beamer}
554 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
555 Most commands provided by the \argumentation package support \emph{overlay specifications} used for creating presentations with \textsf{beamer}\footnote{\url{https://tug.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf}}.
556 To specify overlay information, use \verb|<X>| directly after the command name, where \verb|X| is for instance a number, a list of numbers or any other form of overlay specification (see \textsf{beamer} documentation for more information).
557 All commands for creating AFs introduced so far support overlay specifications.
558
559 \begin{example}~
560 \begin{verbatim}
561 \begin{frame}{Example AF}
562 \begin{af}
563 \argument<1>{a} % Argument visible on slide 1
564 \argument<1,2>[right=of a1]{b} % Argument visible on slides 2 and 3
565 \argument<2-4>[right=of a2]{c} % Argument visible on slides 2 to 4
566
567 \attack<2->{a2}{a3} % Attack is visible on slide 2
568 % and any following slides
569 \end{af}
570 \end{frame}
571 \end{verbatim}
572 \end{example}
573
574 In accordance with the \textsf{beamer} cover types, the \argumentation package provides the two cover modes: \textsf{transparent} and \textsf{invisible}, activated by giving the option \textsf{covered=transparent} or \textsf{covered=invisible} to the \texttt{af} environment (default is \textsf{transparent}).
575 In \textsf{transparent} mode arguments and attacks that are inactive on a slide are rendered in gray, and in \textsf{invisible} mode they are completely invisible on inactive slides.
576
577 \iffalse
578 \subsubsection{Experimental Features}
579 \textbf{Warning: The following features are experimental and the performance is not necessarily optimized yet.}
580 If you want to reuse (parts of) previously created argumentation frameworks in some form, the \argumentation package provides some useful commands that can be enabled via the package option $\textsf{beamer}{=}\textsf{true}$.
581 While primarily intended for the use inside the $\textsf{beamer}$ document class when creating presentations, the commands also work in any other document class.
582 Each command required the label of some argumentation framework and a list of argument IDs of that framework and then creates a copy of that framework, with some changes depending on the command.\\
583
584 \noindent\cs{aflabeling \{\mopt{af-label}\} \{\mopt{argument list}\}}
585
586 \noindent
587 Applies the style parameter \textsf{accepted} to all arguments in \mopt{argument list}, the parameter \textsf{rejected} to those attacked by arguments in \mopt{argument list} and \textsf{undecided} to all other arguments.\\
588
589 \noindent\cs{afextension \{\mopt{af-label}\} \{\mopt{argument list}\}}
590
591 \noindent
592 Applies the style parameter \textsf{accepted} to all arguments in \mopt{argument list}.\\
593
594 \noindent\cs{afreduct \{\mopt{af-label}\} \{\mopt{argument list}\}}
595
596 \noindent
597 Applies the style parameter \textsf{inactive} to all arguments in \mopt{argument list} and those attacked by them.
598 All attacks involving at least one such argument also receive the parameter \textsf{inactive}.\\
599
600 \noindent\cs{afrestriction \{\mopt{af-label}\} \{\mopt{argument list}\}}
601
602 \noindent
603 Applies the style parameter \textsf{invisible} to all arguments \emph{not} in \mopt{argument list}.
604 All attacks involving at least one such argument also receive the parameter \textsf{invisible}.\\
605
606
607 See Figure~\ref{fig:beamer} for some examples.
608
609 \begin{figure}[!ht]
610 %\setafstyle{small}
611 \setargumentstyle{argument thick}
612 %\centering
613 \begin{subfigure}{0.48\textwidth}
614 \centering
615 \begin{af*}[namestyle=monospace]
616 \aflabeling{af:example}{a1}
617 \end{af*}
618 \caption{Result of \cs[0cm]{aflabeling\{af:example\}\{a1\}}.}
619 \end{subfigure}
620 \begin{subfigure}{0.48\textwidth}
621 \centering
622 \begin{af*}[namestyle=monospace]
623 \afextension{af:example}{a1,a3}
624 \end{af*}
625 \caption{Result of \cs[0cm]{afextension\{af:example\}\{a1,a3\}}.}
626 \end{subfigure}
627
628 \par\bigskip
629
630 \begin{subfigure}{0.48\textwidth}
631 \centering
632 \begin{af*}[namestyle=monospace]
633 \afreduct{af:example}{a2}
634 \end{af*}
635 \caption{Result of \cs[0cm]{afreduct\{af:example\}\{a2\}}.}
636 \end{subfigure}
637 \begin{subfigure}{0.48\textwidth}
638 \centering
639 \begin{af*}[namestyle=monospace]
640 \afrestriction{af:example}{a3,a4}
641 \end{af*}
642 \caption{Result of \cs[0cm]{afrestriction\{af:example\}\{a3,a4\}}.}
643 \end{subfigure}
644 \caption{Example usage of the four commands provided by the \textsf{beamer} package option.}
645 \label{fig:beamer}
646 \end{figure}
647
648 \fi
649
650 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
651 \subsection{Other Commands}
652 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
653
654 The \argumentation package also provides some additional features.
655 The following command can be used to create a text annotation next to an argument node in the argumentation framework.
656 The annotation we be placed above the argument node, to adjust its position you should use \texttt{xshift} and \texttt{yshift}.\\
657
658 \noindent\cs{annotation [\oopt{options}] \{\mopt{argId}\} \{\mopt{value}\}}
659 \begin{description}
660 \item[\oopt{options}] Optional \tikzname style parameters.
661 \item[\mopt{argId}] Identifier of the argument.
662 \item[\mopt{value}] The annotation text.\\
663 \end{description}
664
665 The command \cs[0cm]{afname} can be used to create a simple text node inside the AF.
666 Mainly intended to add the name of the AF into the picture, you can generally put any text there.
667 The command behaves essentially exactly like the \cs[0cm]{argument} command.\\
668
669 \noindent\cs{afname [\oopt{options}] (\popt{id}) \{\mopt{name}\} at (\popt{posX}, \popt{posY})}
670 \begin{description}
671 \item[\oopt{options}] (optional) a list of \tikzname style parameters and/or relative positioning parameters.
672 \item[\popt{id}] (optional) Identifier of the text node. If omitted the identifier will be \textsf{caption}.
673 \item[\mopt{text}] Text to be displayed.
674 \item[\popt{posX},\popt{posY}] (optional) the coordinates for placement. Omit if using relative positioning.
675 \end{description}
676
677 If you want to define your own style for arguments, attacks or supports, you may use one of the following commands to override the package-wide settings to your liking.
678 For that you may also reuse some of the pre-defined parameters of the \argumentation package (see Section~\ref{sec:parameters}).\\
679
680 \noindent\cs{setargumentstyle \{\mopt{style parameters}\}}
681
682 \noindent\cs{setatackstyle \{\mopt{style parameters}\}}
683
684 \noindent\cs{setsupportstyle \{\mopt{style parameters}\}}\\
685
686 Similarly, you can also use the following command to override the default settings of the \texttt{af} environment, e.\,g., the \texttt{node distance}.\\
687
688 \noindent\cs{setafstyle \{\mopt{style parameters}\}}\\
689
690 Finally, when using the $\textsf{argumentstyle}{=}\emph{colored}$ package option, you may use the following command to set the color scheme.\\
691
692 \noindent\cs{setargumentcolorscheme \{\mopt{outer color}\} \{\mopt{inner color}\}}
693
694 \newpage
695 \begin{example}~
696
697 \begin{minipage}{0.22\textwidth}
698 \centering
699 \setargumentstyle{argument thick,text=blue}
700 \setafstyle{node distance=0.75cm}
701 \begin{af}
702 \label{af:8}
703 \argument{a}
704 \argument[right=of a1]{b}
705 \argument[below=of a1]{c}
706 \argument[right=of a3]{d}
707
708 \annotation[yshift=-0.2cm]{a4}{$\top$}
709 \afname{$F_{\ref{af:8}}$} at (-1,-0.75)
710
711 \attack{a1}{a2}
712 \dualattack{a1}{a3}
713 \attack{a4}{a3}
714 \end{af}
715 \end{minipage}%
716 \begin{minipage}{0.7\textwidth}
717 \begin{verbatim}
718 \setargumentstyle{argument thick,text=blue}
719 \setafstyle{node distance=0.75cm}
720 \begin{af}\label{af:8}
721 ...
722
723 \annotation[yshift=-0.2cm]{a4}{$\top$}
724 \afname{$F_{\ref{af:8}}$} at (-1,-0.75)
725 \end{af}
726 \end{verbatim}
727 \end{minipage}
728 \end{example}
729
730 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
731 \subsubsection{Argumentation Macros}\label{sec:macros}
732 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
733 To facilitate referencing argumentation frameworks and working with them in general, the \argumentation package provides some additional macros that can be enabled with the package option \textsf{macros=true}.
734 Most importantly, there is the macro \verb|\afref{|\sopt{label}\verb|}| which works like the \verb|\ref| command but adds the reference number directly into the index of the \verb|\AF| symbol.
735 You may redefine any of the first four commands if you prefer a different naming scheme for AFs.
736
737 \begin{table}[ht]
738 \centering
739 \begin{tabular}{lll}
740 \verb|\AF|&& \AF \\
741 \verb|\arguments|&& \arguments\\
742 \verb|\attacks|&&\attacks\\
743 \verb|\AFcomplete|&&\AFcomplete\\
744 \verb|\afref{af:example}|&&\afref{af:example}\\
745 \verb|\fullafref{af:example}|&\qquad\qquad\qquad&\fullafref{af:example}
746 \end{tabular}
747 \caption{Macros provided by the package option \textsf{macros=true} and their respective output.}
748 \label{tab:macros}
749 \end{table}
750
751 With the following command you can define a new type of argumentation environment, which will have its own separate counter and accompanying \verb|\ref| command, analogously to the \texttt{af} environment.\\
752
753 \noindent\cs{newafenvironment \{\mopt{environment name}\} \{\mopt{macro name}\}}
754 \begin{description}
755 \item[\mopt{environment name}] name of the environment to be defined.
756 \item[\mopt{macro name}] name of the accompanying macro for the type of argumentation framework.\\
757 \end{description}
758
759 For instance, \verb|\newafenvironment{adf}{\ADF}| creates a new environment called \texttt{adf} and the command \verb|\adfref{ }|, which indexes the symbol you have defined via \verb|\ADF|.
760
761 \newpage
762 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
763 \section{Package Options}\label{sec:options}
764 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
765 The \argumentation package comes with some package options to customize the appearance of the created argumentation frameworks as well as some additional features.
766 All style package options can both be set globally when importing the package and also locally for each \texttt{af} environment.
767 To import the \argumentation package, use the following command in the preamble of your \LaTeX-document:\\
768
769 \noindent\cs[0cm]{usepackage[\oopt{options}]\{argumentation\}}\\
770
771 The following package options are currently available:
772
773 \begin{description}
774 \item[argumentstyle] (default \texttt{standard}) Globally sets the appearance of the argument nodes.
775 The \argumentation package provides five options: \texttt{standard}, \texttt{large}, \texttt{thick}, \texttt{gray} and \texttt{colored}.
776 Detailed descriptions of these options can be found below.
777
778 \item[attackstyle] (default \texttt{standard}) Globally sets the appearance of the attack edges.
779 The package comes with three available options: \texttt{standard}, \texttt{large} and \texttt{modern}.
780 Detailed descriptions of these options can be found below.
781
782 \item[supportstyle] (default \texttt{standard}) Globally sets the appearance of the support edges.
783 The package comes with three available options: \texttt{standard}, \texttt{dashed} and \texttt{double}.
784 Detailed descriptions of these options can be found below.
785
786 \item[namestyle] (default \texttt{none}) Sets the text formatting applied to the argument names in the document.
787 The package comes with five available options: \texttt{none}, \texttt{math}, \texttt{bold}, \texttt{monospace} and \texttt{monoemph}.
788 Detailed descriptions of these options can be found below.
789
790 \item[indexing] (default \texttt{numeric}) Enables or disables automatic generation of \tikzname node-IDs for the created arguments.
791 The available options are: \texttt{none}, \texttt{numeric} and \texttt{alphabetic}.
792 Under the default numeric indexing the generated argument IDs are of the form $a1, a2, \dots$.
793 With alphabetic indexing the IDs will simply be letters: $a,b,\dots$.
794 If \texttt{none} is selected, no IDs will be generated and you are required to provide them for each argument via the parameter \texttt{(\popt{id})} of the \verb|\argument| command.
795
796 \item[macros] Boolean (default \texttt{false}) When enabled provides additional macros for naming and referencing argumentation frameworks (see Table~\ref{tab:macros}).
797 \item[beamer] Boolean (default \texttt{false}) When enabled, provides the commands for recreating argumentations frameworks described in Section~\ref{sec:beamer}.
798 \end{description}
799
800 In the following we give an overview of the different options for the style parameters that can be used to customise the created argumentation frameworks.
801 For the exact definitions of these parameters, refer to Section~\ref{sec:parameters}.
802
803 \newpage
804 \paragraph{\sffamily argumentstyle=\mopt{option}}
805 \begin{align*}
806 \mathsf{standard} &\quad \text{Circular argument node with normal size argument name.}\\
807 \mathsf{large} &\quad \text{Larger font of the argument name.}\\
808 \mathsf{thick} &\quad \text{Thick black outline and normal size argument name.}\\
809 \mathsf{gray} &\quad \text{Thick gray outline, light gray background.}\\
810 \mathsf{colored} &\quad \text{Thick blue outline, light blue background.}
811 \end{align*}
812
813 \begin{figure}[!h]
814 \begin{subfigure}{0.32\textwidth}
815 \centering
816 \begin{af}[argumentstyle=standard]
817 \argument{a}
818 \argument[right=of a1]{b}
819
820 \attack[]{a1}{a2}
821 \label{af:test}
822 \end{af}
823 \caption{\textsf{argumentstyle}=\textit{standard}}
824 \label{fig:argumentstyle_standard}
825 \end{subfigure}
826 \hfill
827 \begin{subfigure}{0.3\textwidth}
828 \centering
829 \begin{af}[argumentstyle=large]
830 \argument{a}
831 \argument[right=of a1]{b}
832
833 \attack[]{a1}{a2}
834 \end{af}
835 \caption{\textsf{argumentstyle}=\textit{large}}
836 \label{fig:argumentstyle_large}
837 \end{subfigure}
838 \hfill
839 \begin{subfigure}{0.3\textwidth}
840 \centering
841 \begin{af}[argumentstyle=thick]
842 \argument{a}
843 \argument[right=of a1]{b}
844
845 \attack[]{a1}{a2}
846 \end{af}
847 \caption{\textsf{argumentstyle}=\textit{thick}}
848 \label{fig:argumentstyle_thick}
849 \end{subfigure}
850
851 \par\bigskip
852
853 \begin{subfigure}{0.49\textwidth}
854 \centering
855 \begin{af}[argumentstyle=gray]
856 \argument{a}
857 \argument[right=of a1]{b}
858
859 \attack[]{a1}{a2}
860 \end{af}
861 \caption{\textsf{argumentstyle}=\textit{gray}}
862 \label{fig:argumentstyle_gray}
863 \end{subfigure}
864 \hfill
865 \begin{subfigure}{0.49\textwidth}
866 \centering
867 \begin{af}[argumentstyle=colored]
868 \argument{a}
869 \argument[right=of a1]{b}
870
871 \attack[]{a1}{a2}
872 \end{af}
873 \caption{\textsf{argumentstyle}=\textit{colored}}
874 \label{fig:argumentstyle_colored}
875 \end{subfigure}
876
877 \caption{Available options for \textsf{argumentstyle}.}
878 \label{fig:argumentstyle}
879 \end{figure}
880
881
882 \paragraph{\sffamily attackstyle=\mopt{option}}
883
884 \begin{align*}
885 \mathsf{standard} &\quad \text{Standard 'stealth' \tikzname arrow tip.}\\
886 \mathsf{large} &\quad \text{Arrow tip is larger and sharper.}\\
887 \mathsf{modern} &\quad \text{\tikzname ModernCS arrow tip.}
888 \end{align*}
889
890 \begin{figure}[!h]
891 \begin{subfigure}{0.32\textwidth}
892 \centering
893 \begin{af}[attackstyle=standard]
894 \argument{a}
895 \argument[right=of a1]{b}
896
897 \attack[]{a1}{a2}
898 \end{af}
899 \caption{\textsf{attackstyle}=\textit{standard}}
900 \label{fig:attackstyle_standard}
901 \end{subfigure}
902 \hfill
903 \begin{subfigure}{0.3\textwidth}
904 \centering
905 \begin{af}[attackstyle=large]
906 \argument{a}
907 \argument[right=of a1]{b}
908
909 \attack[]{a1}{a2}
910 \end{af}
911 \caption{\textsf{attackstyle}=\textit{large}}
912 \label{fig:attackstyle_large}
913 \end{subfigure}
914 \hfill
915 \begin{subfigure}{0.3\textwidth}
916 \centering
917 \begin{af}[attackstyle=modern]
918 \argument{a}
919 \argument[right=of a1]{b}
920
921 \attack[]{a1}{a2}
922 \end{af}
923 \caption{\textsf{attackstyle}=\textit{modern}}
924 \label{fig:attackstyle_thick}
925 \end{subfigure}
926 \caption{Available options for \textsf{attackstyle}.}
927 \label{fig:attackstyle}
928 \end{figure}
929
930
931 \paragraph{\sffamily supportstyle=\mopt{option}}
932
933 \begin{align*}
934 \mathsf{standard} &\quad \text{Same tip as attack arrow, perpendicular mark on arrow line.}\\
935 \mathsf{dashed} &\quad \text{Dashed arrow line and same tip as attack arrow.}\\
936 \mathsf{double} &\quad \text{Double arrow line and large flat tip.}
937 \end{align*}
938
939 \begin{figure}[!h]
940 \begin{subfigure}{0.32\textwidth}
941 \centering
942 \begin{af}[supportstyle=standard]
943 \argument{a}
944 \argument[right=of a1]{b}
945
946 \support[]{a1}{a2}
947 \end{af}
948 \caption{\textsf{supportstyle}=\textit{standard}}
949 \label{fig:supportstyle_standard}
950 \end{subfigure}
951 \hfill
952 \begin{subfigure}{0.3\textwidth}
953 \centering
954 \begin{af}[supportstyle=dashed]
955 \argument{a}
956 \argument[right=of a1]{b}
957
958 \support[]{a1}{a2}
959 \end{af}
960 \caption{\textsf{supportstyle}=\textit{dashed}}
961 \label{fig:supportstyle_dashed}
962 \end{subfigure}
963 \hfill
964 \begin{subfigure}{0.3\textwidth}
965 \centering
966 \begin{af}[supportstyle=double]
967 \argument{a}
968 \argument[right=of a1]{b}
969
970 \support[]{a1}{a2}
971 \end{af}
972 \caption{\textsf{supportstyle}=\textit{double}}
973 \label{fig:supportstyle_double}
974 \end{subfigure}
975 \caption{Available options for \textsf{supportstyle}. Note that for \textit{standard} and \textit{dashed} the arrow tip of the selected \textsf{attackstyle} will be used.}
976 \label{fig:supportstyle}
977 \end{figure}
978
979
980 \paragraph{\sffamily namestyle=\mopt{option}}
981
982 \begin{align*}
983 \mathsf{none} &\quad \text{No effect applied to argument name.}\\
984 \mathsf{math} &\quad \text{The argument name is rendered as $math$ text.}\\
985 &\quad\quad \text{(name must be given without mathmode).}\\
986 \mathsf{bold} &\quad \text{The argument name is rendered in $\boldsymbol{bold}$.}\\
987 &\quad\quad \text{(name must be given without mathmode).}\\
988 \mathsf{monospace} &\quad \text{The argument name is rendered in \texttt{monospace} font.}\\
989 &\quad\quad \text{(name must be given without mathmode).}\\
990 \mathsf{monoemph} &\quad \text{The argument name is rendered as {\ttfamily\emph{name}}.}
991 \end{align*}
992
993 \begin{figure}[!ht]
994 \begin{subfigure}{0.32\textwidth}
995 \centering
996 \begin{af}[namestyle=none]
997 \argument{a}
998 \argument[right=of a1]{b}
999
1000 \attack[]{a1}{a2}
1001 \end{af}
1002 \caption{\textsf{namestyle}=\textit{none}}
1003 \label{fig:namestyle_none}
1004 \end{subfigure}
1005 \hfill
1006 \begin{subfigure}{0.32\textwidth}
1007 \centering
1008 \begin{af}[namestyle=math]
1009 \argument{a}
1010 \argument[right=of a1]{b}
1011
1012 \attack[]{a1}{a2}
1013 \end{af}
1014 \caption{\textsf{namestyle}=\textit{math}}
1015 \label{fig:namestyle_math}
1016 \end{subfigure}
1017 \hfill
1018 \begin{subfigure}{0.32\textwidth}
1019 \centering
1020 \begin{af}[namestyle=bold]
1021 \argument{a}
1022 \argument[right=of a1]{b}
1023
1024 \attack[]{a1}{a2}
1025 \end{af}
1026 \caption{\textsf{namestyle}=\textit{bold}}
1027 \label{fig:namestyle_bold}
1028 \end{subfigure}
1029 \hfill
1030 \par\bigskip
1031 \begin{subfigure}{0.49\textwidth}
1032 \centering
1033 \begin{af}[namestyle=monospace]
1034 \argument{a}
1035 \argument[right=of a1]{b}
1036
1037 \attack[]{a1}{a2}
1038 \end{af}
1039 \caption{\textsf{namestyle}=\textit{monospace}}
1040 \label{fig:namestyle_monospace}
1041 \end{subfigure}
1042 \hfill
1043 \begin{subfigure}{0.49\textwidth}
1044 \centering
1045 \begin{af}[namestyle=monoemph]
1046 \argument{a}
1047 \argument[right=of a1]{b}
1048
1049 \attack[]{a1}{a2}
1050 \end{af}
1051 \caption{\textsf{namestyle}=\textit{monoemph}}
1052 \label{fig:namestyle_monoemph}
1053 \end{subfigure}
1054 \caption{Available options for \textsf{namestyle}. You can of course apply any formatting yourself when using the default \textsf{namestyle}=\textit{none}.}
1055 \label{fig:namestyle}
1056 \end{figure}
1057
1058 \newpage
1059 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1060 \section{Style Parameter Reference}\label{sec:parameters}
1061 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1062 For reference, the style parameters provided by this package are listed below.
1063 You may use or redefine them at your own discretion.
1064
1065 \begin{table}[ht]
1066 \centering
1067 \ttfamily
1068 \begin{tabular}{l|l}
1069 \toprule
1070 \tikzname-keyword & style parameters \\
1071 \midrule
1072 \textsf{argument size} & \emph{contains the currently selected argument size}\\
1073 \textsf{argument} & \emph{contains the currently selected argument style and size}\\
1074 \textsf{argument standard} & circle,inner sep=0,outer sep=0,draw=black\\
1075 \textsf{argument large} & circle,inner sep=0,outer sep=0,draw=black,font=\verb|\|large\\
1076 \textsf{argument thick} & circle,inner sep=0,outer sep=0,draw=black,line width=0.1em\\
1077 \textsf{argument gray} & argument thick,fill=gray!30,draw=gray!65,text=black!80\\
1078 \textsf{argument colored} & argument thick,fill=aigblue!40,draw=aigblue!80,text=black!80\\
1079 \midrule
1080 \textsf{attack} & \emph{contains the currently selected attack style}\\
1081 \textsf{attack standard} & -\{stealth'\}\\
1082 \textsf{attack large} & -\{Stealth[scale=1.25]\}\\
1083 \textsf{attack modern} & -\{To[sharp,length=0.65ex,line width=0.05em]\}\\
1084 \textsf{selfattack} & loop,min distance=0.4em,in=0,out=60,looseness=4.5\\
1085 \midrule
1086 \textsf{support} & \emph{contains the currently selected support style}\\
1087 \textsf{support standard} & attack,postaction=\{decorate,decoration=\{\dots\}\}\\
1088 \textsf{support dashed} & attack,densely dashed\\
1089 \textsf{support double} & -\{Classical TikZ Rightarrow\},double\\
1090 \midrule
1091 \textsf{inactive} & fill=none,draw=gray!50,text=gray!60\\
1092 \textsf{incomplete} & densely dashed\\
1093 \textsf{accepted} & fill=green!40\\
1094 \textsf{rejected} & fill=red!40\\
1095 \textsf{undecided} & fill=cyan!40\\
1096 \textsf{highlight} & fill=aigyellow!60\\
1097 \textsf{invisible} & draw=none,fill=none,opacity=0.0\\
1098 \midrule
1099 \textsf{standard} & node distance=6.6ex,argument size/.style={minimum size=4.5ex},\\
1100 & attack width/.style={line width=0.05em}\\
1101 \textsf{small} & node distance=3.5ex,argument size/.style={minimum size=3.4ex},\\
1102 & attack width/.style={line width=0.045em}\\
1103 \textsf{tiny} & node distance=2.3ex,argument size/.style={minimum size=2.6ex,}\\
1104 & attack width/.style={line width=0.03em},font=\verb|\small|\\
1105 \bottomrule
1106 \end{tabular}
1107 \caption{Reference list of \tikzname-style parameters provided by the \argumentation package.}
1108 \label{tab:styles}
1109 \end{table}
1110 \newpage
1111 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1112 \section{Version History}\label{sec:history}
1113 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1114 \subsection*{[v1.6 2025/07/31]}
1115 \begin{itemize}
1116 \item Added command \verb|\newafenvironment{ }{ }| to dynamically add new \texttt{af} environments.
1117 \item Updated \verb|\afref{ }| command with better hyperlink.
1118 \item Removed experimental features.
1119 \end{itemize}
1120
1121 \subsection*{[v1.5 2025/02/09]}
1122 \begin{itemize}
1123 \item Added support for beamer overlay specifications to \verb|\argument{ }|, \verb|\attack{ }{ }| and related commands.
1124 \item Added \textsf{covered} parameter for \texttt{af} environment to select between \textit{transparent} and \textit{invisible} rendering of inactive arguments/attacks on slides.
1125 \item Bugfix related to experimental beamer commands.
1126 \end{itemize}
1127
1128 \subsection*{[v1.4 2024/10/31]}
1129 \begin{itemize}
1130 \item Added functions \verb|\aflabeling|, \verb|\afextension|, \verb|\afreduct| and \verb|\afrestriction| that recreate (parts of) previously created argumentation frameworks. Can be enabled via the package option \textsf{beamer=true}.
1131 \item Added internal storage of arguments and attacks of an argumentation framework to enable further computations.
1132 \item Added environment \verb|af*| for argumentation frameworks that are unlabeled/uncounted.
1133 \item Added command \verb|\setargumentcolorscheme{ }{ }| to change color scheme of the \textsf{colored} argument style.
1134 \item Added command \verb|\setafstyle{ }| to set global style options for the AFs.
1135 \item Added optional parameter (\popt{value}) to \verb|\attack| command to add a label to the attack edge (undocumented for now).
1136 \item Major revision of the documentation.
1137 \item Various minor changes to internal functions, naming scheme and comments.
1138 \end{itemize}
1139 \subsection*{[v1.3 2024/09/25]}
1140 \begin{itemize}
1141 \item Added support for \verb|\label{ }| and \verb|\ref{ }| to \texttt{af} environment.
1142 \item Added commands \verb|\AF|, \verb|\arguments|, \verb|\attacks| and \verb|\AFcomplete| to facilitate consistent naming of AFs. Have to be loaded with the package option \textsf{macros=true}.
1143 \item Added commands \verb|\afref{ }| and \verb|\fullafref{ }| to reference AFs.
1144 \item adjusted scaling of nodes and arrows for larger page sizes.
1145 \item added new style options for arguments.
1146 \item Various minor fixes and changes regarding the \textsf{namestyle} package option.
1147 \end{itemize}
1148
1149 \subsection*{[v1.2 2024/06/07]}
1150 \begin{itemize}
1151 \item Changed Syntax of \verb|\argument| command. The \textit{id} parameter is now given inside parenthesis instead of curly braces and is optional.
1152 \item Added absolute positioning to \verb|\argument| command, like for \tikzname nodes.
1153 \item Added package option $\textsf{indexing}$ to toggle automatic generation of identifiers for created argument nodes. Can be set to \textit{none}, or selected between \textit{alphabetic} and \textit{numeric} (default).
1154 \item All package style options can now also be set locally in the \texttt{af} environment.
1155 \item Adjusted \verb|\annotatedattack| to require position parameter.
1156 \item Various minor bugfixes regarding the \textsf{namestyle} package option.
1157 \item Added new argumentstyle \textsf{large}.
1158 \end{itemize}
1159
1160 \subsection*{[v1.1 2023/12/03]}
1161 \begin{itemize}
1162 \item Adjusted standard styles.
1163 \item Added command for creating annotated attacks.
1164 \item Now only provides one environment, which can be parameterised.
1165 \item Changed option management to pgfkeys.
1166 \item Updated and improved documentation.
1167 \end{itemize}
1168
1169 \subsection*{[v1.0 2023/11/05]}
1170 \begin{itemize}
1171 \item First Version.
1172 \end{itemize}
1173
1174 \end{document}