summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/eolang/eolang.pdfbin2063641 -> 2102365 bytes
-rw-r--r--Master/texmf-dist/source/latex/eolang/eolang.dtx23
-rw-r--r--Master/texmf-dist/tex/latex/eolang/eolang.sty9
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
index cfd4ffcbfdb..79a75009326 100644
--- a/Master/texmf-dist/doc/latex/eolang/eolang.pdf
+++ b/Master/texmf-dist/doc/latex/eolang/eolang.pdf
Binary files differ
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)) {