summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/eolang
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-02-08 03:02:25 +0000
committerNorbert Preining <norbert@preining.info>2023-02-08 03:02:25 +0000
commitacf3807dc0f375729de890a56d32a063fc95bacf (patch)
treee3767d7ef5cb880f029f25ae54c7a842c5b1d1e3 /macros/latex/contrib/eolang
parent9c37af35b32c30471236254cae8f82b9a8a6c44e (diff)
CTAN sync 202302080302
Diffstat (limited to 'macros/latex/contrib/eolang')
-rw-r--r--macros/latex/contrib/eolang/LICENSE.txt2
-rw-r--r--macros/latex/contrib/eolang/eolang.dtx14
-rw-r--r--macros/latex/contrib/eolang/eolang.ins4
-rw-r--r--macros/latex/contrib/eolang/eolang.pdfbin2007063 -> 2015121 bytes
4 files changed, 12 insertions, 8 deletions
diff --git a/macros/latex/contrib/eolang/LICENSE.txt b/macros/latex/contrib/eolang/LICENSE.txt
index bd949ffdab..5744f745f0 100644
--- a/macros/latex/contrib/eolang/LICENSE.txt
+++ b/macros/latex/contrib/eolang/LICENSE.txt
@@ -1,6 +1,6 @@
(The MIT License)
-Copyright (c) 2021-2022 Yegor Bugayenko
+Copyright (c) 2021-2023 Yegor Bugayenko
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
diff --git a/macros/latex/contrib/eolang/eolang.dtx b/macros/latex/contrib/eolang/eolang.dtx
index f49cc47530..daca8ee56f 100644
--- a/macros/latex/contrib/eolang/eolang.dtx
+++ b/macros/latex/contrib/eolang/eolang.dtx
@@ -1,7 +1,7 @@
% \iffalse meta-comment
% (The MIT License)
%
-% Copyright (c) 2021-2022 Yegor Bugayenko
+% Copyright (c) 2021-2023 Yegor Bugayenko
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the 'Software'), to deal
@@ -50,7 +50,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{eolang}
%<*package>
-[2023-01-30 0.11.0 Formulas and Graphs for EO Programming Language]
+[2023-02-07 0.11.1 Formulas and Graphs for EO Programming Language]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -767,7 +767,7 @@
$macro = $ARGV[0];
open(my $fh, '<', $ARGV[1]);
my $tex; { local $/; $tex = <$fh>; }
-print '% This file is auto-generated', "\n";
+print "% This file is auto-generated by 0.11.1\n";
print '% There are ', length($tex),
' chars in the input: ', $ARGV[1], "\n";
print '% ---', "\n";
@@ -782,9 +782,13 @@ foreach my $t (@lines) {
print '% ---', "\n";
$tex =~ s/%.*\n/\n/g;
$tex =~ s/^\s+|\s+$//g;
-my $gathered = (0 == $tex =~ /\n\s+/g);
+my $indents = $tex =~ /\n +/g;
+my $gathered = (0 == $indents);
if ($gathered) {
print '% The "gathered" is used since all lines are left-aligned' . "\n";
+} else {
+ print '% The "gathered" is NOT used because ' .
+ $indents . " lines are indented\n";
}
my $align = 0;
print '% The "align" is NOT used by default' . "\n";
@@ -861,7 +865,7 @@ if ($macro ne 'phiq') {
}
}
$tex =~ s/\$/\\xi{}/g;
-$tex =~ s/(?<!\{)\^/\\rho{}/g;
+$tex =~ s/(?<!\{)\^(?!\{)/\\rho{}/g;
$tex =~ s/\[\[/\\llbracket\\mathbin{}/g;
$tex =~ s/\]\]/\\mathbin{}\\rrbracket{}/g;
$tex =~ s/([\s,>(])([0-9A-F]{2}(?:-[0-9A-F]{2})+|
diff --git a/macros/latex/contrib/eolang/eolang.ins b/macros/latex/contrib/eolang/eolang.ins
index 4e11a335ff..329210aa0f 100644
--- a/macros/latex/contrib/eolang/eolang.ins
+++ b/macros/latex/contrib/eolang/eolang.ins
@@ -1,6 +1,6 @@
%% (The MIT License)
%%
-%% Copyright (c) 2021-2022 Yegor Bugayenko
+%% Copyright (c) 2021-2023 Yegor Bugayenko
%%
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software and associated documentation files (the 'Software'), to deal
@@ -26,7 +26,7 @@
\preamble
(The MIT License)
-Copyright (c) 2021-2022 Yegor Bugayenko
+Copyright (c) 2021-2023 Yegor Bugayenko
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
diff --git a/macros/latex/contrib/eolang/eolang.pdf b/macros/latex/contrib/eolang/eolang.pdf
index c97623759b..a09b3b17cd 100644
--- a/macros/latex/contrib/eolang/eolang.pdf
+++ b/macros/latex/contrib/eolang/eolang.pdf
Binary files differ