diff options
Diffstat (limited to 'macros/latex/contrib/eolang')
-rw-r--r-- | macros/latex/contrib/eolang/DEPENDS.txt | 40 | ||||
-rw-r--r-- | macros/latex/contrib/eolang/eolang.dtx | 29 | ||||
-rw-r--r-- | macros/latex/contrib/eolang/eolang.pdf | bin | 2103161 -> 1888881 bytes |
3 files changed, 48 insertions, 21 deletions
diff --git a/macros/latex/contrib/eolang/DEPENDS.txt b/macros/latex/contrib/eolang/DEPENDS.txt index faa8e162c3..ea34111dee 100644 --- a/macros/latex/contrib/eolang/DEPENDS.txt +++ b/macros/latex/contrib/eolang/DEPENDS.txt @@ -1,13 +1,35 @@ -hard stmaryrd -hard amsmath +hard adjustbox hard amsfonts +hard amsmath +hard fancyvrb +hard hyperref hard iexec +hard pdftexcmds hard pgf -hard fancyvrb hard pgfopts -hard pdftexcmds -hard ifluatex -hard ifxetex -hard adjustbox -hard hyperref -hard xstring
\ No newline at end of file +hard stmaryrd +hard xstring +soft acmart +soft biber +soft biblatex +soft booktabs +soft caption +soft cmap +soft comment +soft docshots +soft environ +soft href-ul +soft hypdoc +soft hyperxmp +soft iexec +soft ifmtarg +soft l3build +soft libertine +soft ncctools +soft scheme-basic +soft setspace +soft standalone +soft textcase +soft tools +soft totpages +soft xetex
\ No newline at end of file diff --git a/macros/latex/contrib/eolang/eolang.dtx b/macros/latex/contrib/eolang/eolang.dtx index 3260d2eacc..a2e4944689 100644 --- a/macros/latex/contrib/eolang/eolang.dtx +++ b/macros/latex/contrib/eolang/eolang.dtx @@ -50,7 +50,7 @@ %<package>\NeedsTeXFormat{LaTeX2e} %<package>\ProvidesPackage{eolang} %<*package> -[2023-07-01 0.13.0 Formulas and Graphs for EO Programming Language] +[2023-08-02 0.14.0 Formulas and Graphs for EO Programming Language] %</package> %<*driver> \documentclass{ltxdoc} @@ -219,15 +219,16 @@ % The following markers are supported for a vertex: % \begin{itemize}\setlength\itemsep{0em} -% \item ``|tag:<math>|'' puts a custom label |<math>| into the circle, +% \item ``|tag:<math>|'' puts a custom label |<math>| into the circle; % \item ``|data:[<box>]|'' makes it a data vertex with an optional attached ``|<box>|'' -% (the content of the box may only be numeric data), +% (the content of the box may only be numeric data); % \item ``|atom:[<box>]|'' makes it an atom with an optional attached ``|<box>|'' -% (the content of the box is a math formula), -% \item ``|box:<txt>|'' attaches a ``|<box>|'' to it, +% (the content of the box is a math formula); +% \item ``|box:<txt>|'' attaches a ``|<box>|'' to it; % \item ``|xy:<v>,<r>,<d>|'' places this vertex in a position relative to the vertex ``|<v>|,'' -% shifting it right by ``|<r>|'' and down by ``|<d>|'' centimetres. -% \item ``|+:<v>|'' makes a copy of an existing vertex and all its kids. +% shifting it right by ``|<r>|'' and down by ``|<d>|'' centimetres; +% \item ``|+:<v>|'' makes a copy of an existing vertex and all its kids; +% \item ``|edgeless|'' removes the border from the vertex. % \end{itemize} % The following markers are supported for an edge: @@ -691,7 +692,7 @@ % \usetikzlibrary{fit} % \begin{document} % \begin{sodg} -% v0 +% v0 edgeless % v11 xy:v0,-1,1 \\ v0->v11 % v12 xy:v0,0,1 \\ v0->v12 % v13 xy:v0,1,1 \\ v0->v13 @@ -799,7 +800,7 @@ $macro = $ARGV[0]; open(my $fh, '<', $ARGV[1]); my $tex; { local $/; $tex = <$fh>; } -print "% This file is auto-generated by 0.13.0\n"; +print "% This file is auto-generated by 0.14.0\n"; print '% There are ', length($tex), ' chars in the input: ', $ARGV[1], "\n"; print '% ---', "\n"; @@ -1069,6 +1070,7 @@ print '\endinput'; % \changes{0.6.0}{2022/11/13}{The \texttt{rrho} attribute is retired, now \texttt{rho} works just fine in all situations.} % \changes{0.8.0}{2022/11/20}{The \texttt{tag} attribute is introduced for changing labels inside a vertex circle.} % \changes{0.12.1}{2023/03/01}{The bug is fixed related to the formatting of indexes of vertices.} +% \changes{0.14.0}{2023/07/26}{The \texttt{edgeless} tag of a vertex removes the border of it.} % Then, we create a Perl script for |sodg| graphs processing using |VerbatimOut| from % \href{https://ctan.org/pkg/fancyvrb}{fancyvrb}: % \begin{macrocode} @@ -1135,7 +1137,9 @@ for (my $c = 0; $c < 0+@cmds; $c++) { my ($q, $t) = split(/:/, $p); $opts{$q} = $t; } - if (index($head, '->') >= 0) { + if (index($head, '\\') == 0) { + print $cmd; + } elsif (index($head, '->') >= 0) { my $draw = '\draw['; if (exists $opts{'pi'}) { $draw = $draw . '<MB:phi-pi><F:draw=none>'; @@ -1306,6 +1310,9 @@ for (my $c = 0; $c < 0+@cmds; $c++) { } else { print ',phi-object'; } + if (exists $opts{'edgeless'}) { + print ',draw=none'; + } print ']'; print ' (' . $head . ')'; print ' {'; @@ -1326,8 +1333,6 @@ for (my $c = 0; $c < 0+@cmds; $c++) { print $head, '.south east) {'; print $opts{'box'}, '}'; } - } else { - print $cmd; } print ";\n"; } diff --git a/macros/latex/contrib/eolang/eolang.pdf b/macros/latex/contrib/eolang/eolang.pdf Binary files differindex 1340ebad23..34a9d5bea0 100644 --- a/macros/latex/contrib/eolang/eolang.pdf +++ b/macros/latex/contrib/eolang/eolang.pdf |