diff options
author | Karl Berry <karl@freefriends.org> | 2018-12-04 23:07:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-12-04 23:07:40 +0000 |
commit | b247da06b06a75f5d7b971654f9f289d108f0b37 (patch) | |
tree | 197425694154a790e834d979a2b545cb750a46de /Master/texmf-dist/doc/latex/adigraph | |
parent | 0eb7571a162fffe018d185cfa4a2d54807ab55e5 (diff) |
adigraph (4dec18)
git-svn-id: svn://tug.org/texlive/trunk@49315 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/adigraph')
-rw-r--r-- | Master/texmf-dist/doc/latex/adigraph/adigraph-large.png | bin | 158870 -> 0 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.pdf | bin | 110876 -> 112224 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.tex | 50 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/adigraph/adigraph_working_test.pdf | bin | 32081 -> 32299 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/adigraph/adigraph_working_test.tex | 11 |
5 files changed, 53 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/latex/adigraph/adigraph-large.png b/Master/texmf-dist/doc/latex/adigraph/adigraph-large.png Binary files differdeleted file mode 100644 index 552c74c4ca2..00000000000 --- a/Master/texmf-dist/doc/latex/adigraph/adigraph-large.png +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.pdf b/Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.pdf Binary files differindex 518bbb8a9e7..abd60150a15 100644 --- a/Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.pdf +++ b/Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.pdf diff --git a/Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.tex b/Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.tex index 85567bf7f15..8818b12ff6b 100644 --- a/Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.tex +++ b/Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.tex @@ -136,7 +136,7 @@ You can renovate an older graph by calling \textbackslash RenewAdigraph \end{minted} \section{Adding nodes} -We set its nodes with the following syntax: \textit{<node name, color: \(x\) coordinate, \(y\) coordinate: label>}. +We set its nodes with the following syntax: \textit{<node name, color, border width: \(x\) coordinate, \(y\) coordinate: label>}. \begin{figure} \begin{subfigure}{0.49\textwidth} @@ -181,6 +181,28 @@ To color a node you can use the following syntax: \textit{<node name, textual co Tested available colors are: red, blue, black, green. You may extend the possible colors with LaTex libraries such as xcolor. +\subsection{Custom node width} +To color a node you can use the following syntax: \textit{<node name, textual color, width: \(x\) coordinate, \(y\) coordinate>}. For example: + +\begin{figure} + \begin{subfigure}{0.49\textwidth} + \begin{minted}{latex} +\NewAdigraph{myAdigraph}{ + s,red,5:0,0; + t,blue,3:4,0; +} +\myAdigraph{} +\end{minted} + \end{subfigure} + \begin{subfigure}{0.49\textwidth} + \NewAdigraph{myAdigraph}{ + s,red,5:0,0; + t,blue,3:4,0; + } + \myAdigraph{} + \end{subfigure} +\end{figure} + \subsection{Custom node labels} To add a custom label you can use the following syntax: either \textit{<node name: \(x\) coordinate, \(y\) coordinate: node label>} or \textit{<node name,textual color: \(x\) coordinate, \(y\) coordinate: node label>} will work: @@ -272,7 +294,7 @@ When no coordinates are given or you just don't have time to think about where t \section{Adding edges} -We set its nodes with the following syntax: \textit{<node name: \(x\) coordinate, \(y\) coordinate, color : label>}. +We set its nodes with the following syntax: \textit{<node name: \(x\) coordinate, \(y\) coordinate, color, edge width: label>}. \subsection{A simple edge} \begin{figure} @@ -351,6 +373,30 @@ Looped edges position automatically by themselves to minimize overlapping. \end{subfigure} \end{figure} +\subsection{A wider simple edge} +\begin{figure} + \begin{subfigure}{0.49\textwidth} + \begin{minted}{latex} +\NewAdigraph{myAdigraph}{ + s:0,0; + t:4,0; +}{ + s,t,red,5; +} +\myAdigraph{} +\end{minted} + \end{subfigure} + \begin{subfigure}{0.49\textwidth} + \NewAdigraph{myAdigraph}{ + s:0,0; + t:4,0; + }{ + s,t,red,5; + } + \myAdigraph{} + \end{subfigure} +\end{figure} + \subsection{A weighted edge} \begin{figure} \begin{subfigure}{0.49\textwidth} diff --git a/Master/texmf-dist/doc/latex/adigraph/adigraph_working_test.pdf b/Master/texmf-dist/doc/latex/adigraph/adigraph_working_test.pdf Binary files differindex 8ca68710bd9..b498908af4a 100644 --- a/Master/texmf-dist/doc/latex/adigraph/adigraph_working_test.pdf +++ b/Master/texmf-dist/doc/latex/adigraph/adigraph_working_test.pdf diff --git a/Master/texmf-dist/doc/latex/adigraph/adigraph_working_test.tex b/Master/texmf-dist/doc/latex/adigraph/adigraph_working_test.tex index 2a8e76a5acf..f663aa418eb 100644 --- a/Master/texmf-dist/doc/latex/adigraph/adigraph_working_test.tex +++ b/Master/texmf-dist/doc/latex/adigraph/adigraph_working_test.tex @@ -103,21 +103,20 @@ \NewAdigraph{myForthAdigraph}{ 1:4; - 2:4; + 2,red,1:4; 3:4; 4:4; 5:4; - 6:4; + 6,purple,5:4; 7:4; 8:4; }{ 1,2:5; 2,3:5; - 3,4:5; + 3,4,blue:10; 4,5:5; - 5,6:5; + 5,6,purple,5:5; } - \begin{figure} \myForthAdigraph{ 1,2,3:0; @@ -142,7 +141,7 @@ \begin{figure} \myFifthAdigraph{ - 2,3,4::purple; + 2,3,4::purple:5; } \end{figure} \end{center} |