diff options
author | Norbert Preining <norbert@preining.info> | 2023-09-14 03:01:37 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-09-14 03:01:37 +0000 |
commit | 527001b634c06d34f92d1809f507add012c320f6 (patch) | |
tree | 17d54020bd8e320a65d118c5036beed8e4e18cb9 /support | |
parent | de0fb15550a55ba5685a755fec7326e21a79fccd (diff) |
CTAN sync 202309140301
Diffstat (limited to 'support')
-rw-r--r-- | support/latexindent/LatexIndent/Version.pm | 4 | ||||
-rw-r--r-- | support/latexindent/LatexIndent/Wrap.pm | 2 | ||||
-rw-r--r-- | support/latexindent/README | 2 | ||||
-rw-r--r-- | support/latexindent/bin/linux/latexindent | bin | 6173320 -> 6173334 bytes | |||
-rw-r--r-- | support/latexindent/bin/macos/latexindent | bin | 6402551 -> 6402565 bytes | |||
-rw-r--r-- | support/latexindent/defaultSettings.yaml | 2 | ||||
-rw-r--r-- | support/latexindent/documentation/latexindent-yaml-schema.json | 2 | ||||
-rw-r--r-- | support/latexindent/documentation/latexindent.pdf | bin | 1259686 -> 1259013 bytes | |||
-rw-r--r-- | support/latexindent/documentation/latexindent.tex | 8 | ||||
-rwxr-xr-x | support/latexindent/latexindent.pl | 2 | ||||
-rw-r--r-- | support/runtexshebang/README.md | 7 | ||||
-rwxr-xr-x | support/runtexshebang/runtexshebang.lua | 60 |
12 files changed, 71 insertions, 18 deletions
diff --git a/support/latexindent/LatexIndent/Version.pm b/support/latexindent/LatexIndent/Version.pm index 9b6fbc7272..6da4d24cf7 100644 --- a/support/latexindent/LatexIndent/Version.pm +++ b/support/latexindent/LatexIndent/Version.pm @@ -20,6 +20,6 @@ use warnings; use Exporter qw/import/; our @EXPORT_OK = qw/$versionNumber $versionDate/; -our $versionNumber = '3.23'; -our $versionDate = '2023-09-09'; +our $versionNumber = '3.23.1'; +our $versionDate = '2023-09-13'; 1 diff --git a/support/latexindent/LatexIndent/Wrap.pm b/support/latexindent/LatexIndent/Wrap.pm index c7dbd09765..5885675ec5 100644 --- a/support/latexindent/LatexIndent/Wrap.pm +++ b/support/latexindent/LatexIndent/Wrap.pm @@ -49,7 +49,7 @@ sub text_wrap { my $yesNo = $blocksFollowHash->{$blocksFollowEachPart}; if ($yesNo) { if ( $blocksFollowEachPart eq "par" ) { - $blocksFollowEachPart = qr/\R?\\par/s; + $blocksFollowEachPart = qr/\R?\\par(?![a-zA-Z])/s; } elsif ( $blocksFollowEachPart eq "blankLine" ) { $blocksFollowEachPart = qr/ diff --git a/support/latexindent/README b/support/latexindent/README index c1db1e1f98..28928e3390 100644 --- a/support/latexindent/README +++ b/support/latexindent/README @@ -1,5 +1,5 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - latexindent.pl, version 3.23, 2023-09-09 + latexindent.pl, version 3.23.1, 2023-09-13 PERL script to indent code within environments, and align delimited environments in .tex files. diff --git a/support/latexindent/bin/linux/latexindent b/support/latexindent/bin/linux/latexindent Binary files differindex c99ddccff9..21c1283c7f 100644 --- a/support/latexindent/bin/linux/latexindent +++ b/support/latexindent/bin/linux/latexindent diff --git a/support/latexindent/bin/macos/latexindent b/support/latexindent/bin/macos/latexindent Binary files differindex d1cc7c7530..300e3c8753 100644 --- a/support/latexindent/bin/macos/latexindent +++ b/support/latexindent/bin/macos/latexindent diff --git a/support/latexindent/defaultSettings.yaml b/support/latexindent/defaultSettings.yaml index f55bf5202d..8ee2b7a2fb 100644 --- a/support/latexindent/defaultSettings.yaml +++ b/support/latexindent/defaultSettings.yaml @@ -1,5 +1,5 @@ # -# latexindent.pl, version 3.23, 2023-09-09 +# latexindent.pl, version 3.23.1, 2023-09-13 # # defaultSettings.yaml, the default settings for latexindent.pl # diff --git a/support/latexindent/documentation/latexindent-yaml-schema.json b/support/latexindent/documentation/latexindent-yaml-schema.json index 2419f3ed60..8cf416a1c7 100644 --- a/support/latexindent/documentation/latexindent-yaml-schema.json +++ b/support/latexindent/documentation/latexindent-yaml-schema.json @@ -2,7 +2,7 @@ "$schema": "http://json-schema.org/schema", "$id": "latexindent-yaml-schema.json", "title": "latexindent.pl YAML schema", - "description": "latexindent.pl YAML schema helper, V3.23 2023-09-09", + "description": "latexindent.pl YAML schema helper, V3.23.1 2023-09-13", "type": "object", "properties": { "fileExtensionPreference": { diff --git a/support/latexindent/documentation/latexindent.pdf b/support/latexindent/documentation/latexindent.pdf Binary files differindex 3ab061348e..55689ec493 100644 --- a/support/latexindent/documentation/latexindent.pdf +++ b/support/latexindent/documentation/latexindent.pdf diff --git a/support/latexindent/documentation/latexindent.tex b/support/latexindent/documentation/latexindent.tex index 01202c8b8d..df6041f3eb 100644 --- a/support/latexindent/documentation/latexindent.tex +++ b/support/latexindent/documentation/latexindent.tex @@ -4323,7 +4323,7 @@ latexindent.pl headings2.tex -l headings4.yaml \end{example} \paragraph{namedGroupingBracesBrackets} This type of code block is mostly motivated by - tikz-based code; we define this code block as follows: + tikz-based code; we define this code block as follows: \begin{itemize} \item it must immediately follow either \emph{horizontal space} OR \emph{one or more line breaks} OR \lstinline!{! OR \lstinline![! OR \lstinline!$! OR \lstinline!)! @@ -4360,8 +4360,8 @@ latexindent.pl headings2.tex -l headings4.yaml \end{example} \paragraph{UnNamedGroupingBracesBrackets} occur in a variety of situations; - specifically, we define this type of code block as satisfying the following - criteria: + specifically, we define this type of code block as satisfying the following + criteria: \begin{itemize} \item it must immediately follow either \lstinline!{! OR \lstinline![! OR \lstinline!,! OR \lstinline!&! OR \lstinline!)! OR \lstinline!(! OR @@ -4400,7 +4400,7 @@ latexindent.pl headings2.tex -l headings4.yaml \texttt{always-un-named}. \paragraph{filecontents} code blocks behave just as \texttt{environments}, except that - neither arguments nor items are sought. + neither arguments nor items are sought. \subsubsection{Summary} \index{indentation!summary} diff --git a/support/latexindent/latexindent.pl b/support/latexindent/latexindent.pl index 571dbcbd26..50b94939ff 100755 --- a/support/latexindent/latexindent.pl +++ b/support/latexindent/latexindent.pl @@ -1,6 +1,6 @@ #!/usr/bin/env perl # -# latexindent.pl, version 3.23, 2023-09-09 +# latexindent.pl, version 3.23.1, 2023-09-13 # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/support/runtexshebang/README.md b/support/runtexshebang/README.md index e96825b9c1..7c3f233b2d 100644 --- a/support/runtexshebang/README.md +++ b/support/runtexshebang/README.md @@ -158,8 +158,15 @@ You can typeset a LaTeX document file in a Docker container as below. ## References +### Commentary + * [TeXworks、TeXShop、VSCodeでTeX-style shebangしてみた - Qiita](https://qiita.com/munepi/items/a30c68133cfffbf4d189) (in Japanese) +### Tools supporting `%#!` + +* [YaTeX](https://www.yatex.org/): Yet Another TeX mode for Emacs +* [llmk](https://github.com/wtsnjp/llmk): Light LaTeX Make + Enjoy Happy TeXing! diff --git a/support/runtexshebang/runtexshebang.lua b/support/runtexshebang/runtexshebang.lua index 11240adfe0..670bdc2b33 100755 --- a/support/runtexshebang/runtexshebang.lua +++ b/support/runtexshebang/runtexshebang.lua @@ -22,15 +22,61 @@ -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -- THE SOFTWARE. -if not ( #arg == 1 ) then - print("runtexshebang 20230909 v0.3") - print("") - print("Usage: runtexshebang [input.tex]") - os.exit(0) +NAME = "runtexshebang" +VERSION = "20230913 v0.4" +USAGE = [[ +Usage: runtexshebang [input.tex] + +Options: + -h, --help print help + -v, --version print version + +See also: +The command + texdoc runtexshebang +should give you access to the README. +]] + +function whoami() + print(NAME .. " " .. VERSION) end -local line_ctr = 0 -for line in io.lines(arg[1]) do +function help() + whoami() + print() + print(USAGE) +end + +if #arg == 0 then + help() + os.exit(0) +end + +-- +texfilename = "" +narg = 1 +repeat + this_arg = arg[narg] + -- replace double dash by single dash at the beginning + this_arg = string.gsub(this_arg, "^%-%-", "-") + + if this_arg == "-h" or this_arg == "-help" then + help() + os.exit(0) + elseif this_arg == "-v" or this_arg == "-version" then + whoami() + os.exit(0) + else + texfilename = this_arg + end --if this_arg == ... + narg = narg+1 +until narg > #arg + +-- main process +whoami() + +line_ctr = 0 +for line in io.lines(texfilename) do line_ctr = line_ctr + 1 if line_ctr > 20 then break end |