diff options
author | Karl Berry <karl@freefriends.org> | 2023-06-17 19:59:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-06-17 19:59:17 +0000 |
commit | fb8f69e8be474162b1ec98c0e839e6b7ec6f2ff8 (patch) | |
tree | e7c08177c17d8ed03f51f64d22c9d60ab1cf1e9c /Master | |
parent | f7e830f5333ef3a05bf2e47121dd4f557fb21779 (diff) |
eolang (17jun23)
git-svn-id: svn://tug.org/texlive/trunk@67393 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/eolang/eolang.pdf | bin | 2063641 -> 2102365 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/eolang/eolang.dtx | 23 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/eolang/eolang.sty | 9 |
3 files changed, 23 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/latex/eolang/eolang.pdf b/Master/texmf-dist/doc/latex/eolang/eolang.pdf Binary files differindex cfd4ffcbfdb..79a75009326 100644 --- a/Master/texmf-dist/doc/latex/eolang/eolang.pdf +++ b/Master/texmf-dist/doc/latex/eolang/eolang.pdf diff --git a/Master/texmf-dist/source/latex/eolang/eolang.dtx b/Master/texmf-dist/source/latex/eolang/eolang.dtx index 3a38714fbd6..f11125a7e24 100644 --- a/Master/texmf-dist/source/latex/eolang/eolang.dtx +++ b/Master/texmf-dist/source/latex/eolang/eolang.dtx @@ -50,7 +50,7 @@ %<package>\NeedsTeXFormat{LaTeX2e} %<package>\ProvidesPackage{eolang} %<*package> -[2023-03-01 0.12.1 Formulas and Graphs for EO Programming Language] +[2023-06-17 0.12.2 Formulas and Graphs for EO Programming Language] %</package> %<*driver> \documentclass{ltxdoc} @@ -463,7 +463,7 @@ % \pagestyle{empty} % \begin{document} % \begin{phiquation*} -% x -> \left\{\begin{matrix} \ +% foo -> \left\{\begin{matrix} \ % ? \\ % [[ L> ^ \times $.\alpha_0 ]] \\ % [[ D> 42 ]] \ @@ -601,6 +601,19 @@ % \end{document} % \end{docshot} +% When necessary to use a percentage sign, prepend it with a backward slash: +% \docshotOptions{firstline=5,lastline=10} +% \begin{docshot} +% \documentclass{article} +% \usepackage{eolang} +% \thispagestyle{empty} +% \begin{document} +% \begin{phiquation*} +% x -> sprintf("Hello, \%s!", name) +% \end{phiquation*} +% \end{document} +% \end{docshot} + % You can make a copy of a vertex together with its kids: % \docshotOptions{firstline=5,lastline=15} % \begin{docshot} @@ -783,7 +796,7 @@ $macro = $ARGV[0]; open(my $fh, '<', $ARGV[1]); my $tex; { local $/; $tex = <$fh>; } -print "% This file is auto-generated by 0.12.1\n"; +print "% This file is auto-generated by 0.12.2\n"; print '% There are ', length($tex), ' chars in the input: ', $ARGV[1], "\n"; print '% ---', "\n"; @@ -796,7 +809,7 @@ foreach my $t (@lines) { print '% ', $t, "\n"; } print '% ---', "\n"; -$tex =~ s/%.*\n/\n/g; +$tex =~ s/(?<!\\)%.*\n/\n/g; $tex =~ s/^\s+|\s+$//g; my $splitting = $tex =~ /^\\begin\{split\}/; if ($splitting) { @@ -1111,7 +1124,7 @@ print '\begin{phicture}', "\n"; for (my $c = 0; $c < 0+@cmds; $c++) { my $cmd = $cmds[$c]; $cmd =~ s/^\s+//g; - $cmd =~ s/%.*//g; + $cmd =~ s/(?<!\\)%.*//g; my ($head, $tail) = split(/ /, $cmd, 2); my %opts = {}; foreach my $p (split(/ /, $tail)) { diff --git a/Master/texmf-dist/tex/latex/eolang/eolang.sty b/Master/texmf-dist/tex/latex/eolang/eolang.sty index 743f092b529..306f4d89855 100644 --- a/Master/texmf-dist/tex/latex/eolang/eolang.sty +++ b/Master/texmf-dist/tex/latex/eolang/eolang.sty @@ -31,7 +31,8 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{eolang} -[2023-03-01 0.12.1 Formulas and Graphs for EO Programming Language] +[2023-06-17 0.12.2 Formulas and Graphs for EO Programming Language] + @@ -111,7 +112,7 @@ $macro = $ARGV[0]; open(my $fh, '<', $ARGV[1]); my $tex; { local $/; $tex = <$fh>; } -print "% This file is auto-generated by 0.12.1\n"; +print "% This file is auto-generated by 0.12.2\n"; print '% There are ', length($tex), ' chars in the input: ', $ARGV[1], "\n"; print '% ---', "\n"; @@ -124,7 +125,7 @@ foreach my $t (@lines) { print '% ', $t, "\n"; } print '% ---', "\n"; -$tex =~ s/%.*\n/\n/g; +$tex =~ s/(?<!\\)%.*\n/\n/g; $tex =~ s/^\s+|\s+$//g; my $splitting = $tex =~ /^\\begin\{split\}/; if ($splitting) { @@ -394,7 +395,7 @@ print '\begin{phicture}', "\n"; for (my $c = 0; $c < 0+@cmds; $c++) { my $cmd = $cmds[$c]; $cmd =~ s/^\s+//g; - $cmd =~ s/%.*//g; + $cmd =~ s/(?<!\\)%.*//g; my ($head, $tail) = split(/ /, $cmd, 2); my %opts = {}; foreach my $p (split(/ /, $tail)) { |