From b247da06b06a75f5d7b971654f9f289d108f0b37 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 4 Dec 2018 23:07:40 +0000 Subject: adigraph (4dec18) git-svn-id: svn://tug.org/texlive/trunk@49315 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/adigraph/adigraph-large.png | Bin 158870 -> 0 bytes .../doc/latex/adigraph/adigraph_documentation.pdf | Bin 110876 -> 112224 bytes .../doc/latex/adigraph/adigraph_documentation.tex | 50 ++++++++++++++++++++- .../doc/latex/adigraph/adigraph_working_test.pdf | Bin 32081 -> 32299 bytes .../doc/latex/adigraph/adigraph_working_test.tex | 11 +++-- 5 files changed, 53 insertions(+), 8 deletions(-) delete mode 100644 Master/texmf-dist/doc/latex/adigraph/adigraph-large.png (limited to 'Master/texmf-dist/doc/latex') diff --git a/Master/texmf-dist/doc/latex/adigraph/adigraph-large.png b/Master/texmf-dist/doc/latex/adigraph/adigraph-large.png deleted file mode 100644 index 552c74c4ca2..00000000000 Binary files a/Master/texmf-dist/doc/latex/adigraph/adigraph-large.png and /dev/null differ diff --git a/Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.pdf b/Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.pdf index 518bbb8a9e7..abd60150a15 100644 Binary files a/Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.pdf and b/Master/texmf-dist/doc/latex/adigraph/adigraph_documentation.pdf differ 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{}. +We set its nodes with the following syntax: \textit{}. \begin{figure} \begin{subfigure}{0.49\textwidth} @@ -181,6 +181,28 @@ To color a node you can use the following syntax: \textit{}. 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{} or \textit{} 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{}. +We set its nodes with the following syntax: \textit{}. \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 index 8ca68710bd9..b498908af4a 100644 Binary files a/Master/texmf-dist/doc/latex/adigraph/adigraph_working_test.pdf and b/Master/texmf-dist/doc/latex/adigraph/adigraph_working_test.pdf differ 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} -- cgit v1.2.3