diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.tex | 117 |
1 files changed, 112 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.tex b/Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.tex index 4d2773c0d1e..85567bf7f15 100644 --- a/Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.tex +++ b/Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.tex @@ -2,7 +2,7 @@ \title{Adigraph, \AdigraphVersionNumber} \author{Luca Cappelletti} -\date{March 2018} +\date{December 2018} \usepackage{adigraph} \usepackage{xcolor} @@ -115,7 +115,9 @@ Here we create a new Adigraph object, called \textit{myAdigraph}. <edges here, separated by semicolon> }{ <cuts here, separated by semicolon> -} +}[ + <edge style here> +] \end{minted} \section{Changing an existing graph} @@ -128,7 +130,9 @@ You can renovate an older graph by calling \textbackslash RenewAdigraph <edges here, separated by semicolon> }{ <cuts here, separated by semicolon> -} +}[ + <edge style here> +] \end{minted} \section{Adding nodes} @@ -556,7 +560,7 @@ Looped edges position automatically by themselves to minimize overlapping. \section{Kleene star operators} \subsection{Kleene star on an element} -This works only when you don't have a node called \textit{<*>}. When this happens, the behavior of a tuple \textit{<a,*>} becomes the normal one. +This works only when you don't have a node called \textit{<*>}. When this happens, the behaviour of a tuple \textit{<a,*>} becomes the normal one. \begin{figure} \begin{subfigure}{0.49\textwidth} \begin{minted}{latex} @@ -595,7 +599,7 @@ This works only when you don't have a node called \textit{<*>}. When this happen \end{figure} \subsection{Kleene star minus the element} -This works only when you don't have a node called \textit{<+>}. When this happens, the behavior of a tuple \textit{<a,+>} becomes the normal one. +This works only when you don't have a node called \textit{<+>}. When this happens, the behaviour of a tuple \textit{<a,+>} becomes the normal one. \begin{figure} \begin{subfigure}{0.49\textwidth} \begin{minted}{latex} @@ -986,6 +990,109 @@ If you'd like to color the cuts you just have to add the color as follows: \text \end{subfigure} \end{figure} +\section{Non oriented edges and custom edge stiles} +If you need non oriented edges or in general to ad a custom style to your edges you can proceed as follows: +\subsection{Non oriented} +\begin{figure} + \begin{subfigure}{0.49\textwidth} + \begin{minted}{latex} +\NewAdigraph{myCustomEdgesAdigraph}{ + s:0,0; + 1:2,2; + 3:2,-2; + 2:6,2; + 4:6,-2; + t:8,0; +}{ + s,1:25; + s,3:25; + 3,4:25; + 1,2:35; + 2,t:20; + 4,t:30; + 3,1:10; + 4,2:10; + 2,3:15::near start; + 4,1:5::near start; +}[-] +\myCustomEdgesAdigraph{} +\end{minted} + \end{subfigure} + \begin{subfigure}{0.49\textwidth} + \NewAdigraph{myCustomEdgesAdigraph}{ + s:0,0; + 1:2,2; + 3:2,-2; + 2:6,2; + 4:6,-2; + t:8,0; + }{ + s,1:25; + s,3:25; + 3,4:25; + 1,2:35; + 2,t:20; + 4,t:30; + 3,1:10; + 4,2:10; + 2,3:15::near start; + 4,1:5::near start; + }[-] + \myCustomEdgesAdigraph{} + \end{subfigure} +\end{figure} + +\subsection{Dashed} +\begin{figure} + \begin{subfigure}{0.49\textwidth} + \begin{minted}{latex} +\NewAdigraph{myCustomEdgesAdigraph}{ + s:0,0; + 1:2,2; + 3:2,-2; + 2:6,2; + 4:6,-2; + t:8,0; +}{ + s,1:25; + s,3:25; + 3,4:25; + 1,2:35; + 2,t:20; + 4,t:30; + 3,1:10; + 4,2:10; + 2,3:15::near start; + 4,1:5::near start; +}[dashed] +\myCustomEdgesAdigraph{} +\end{minted} + \end{subfigure} + \begin{subfigure}{0.49\textwidth} + \NewAdigraph{myCustomEdgesAdigraph}{ + s:0,0; + 1:2,2; + 3:2,-2; + 2:6,2; + 4:6,-2; + t:8,0; + }{ + s,1:25; + s,3:25; + 3,4:25; + 1,2:35; + 2,t:20; + 4,t:30; + 3,1:10; + 4,2:10; + 2,3:15::near start; + 4,1:5::near start; + }[dashed] + \myCustomEdgesAdigraph{} + \end{subfigure} +\end{figure} + + \chapter{Warnings} \section{Reserved words} I reserve to use for the package the following tokens: |