texlive[59909] Master/texmf-dist: iexec (12jul21)
commits+karl at tug.org
commits+karl at tug.org
Mon Jul 12 22:16:27 CEST 2021
Revision: 59909
http://tug.org/svn/texlive?view=revision&revision=59909
Author: karl
Date: 2021-07-12 22:16:27 +0200 (Mon, 12 Jul 2021)
Log Message:
-----------
iexec (12jul21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/iexec/README.md
trunk/Master/texmf-dist/doc/latex/iexec/iexec.pdf
trunk/Master/texmf-dist/doc/latex/iexec/iexec.tex
trunk/Master/texmf-dist/tex/latex/iexec/iexec.sty
Modified: trunk/Master/texmf-dist/doc/latex/iexec/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/iexec/README.md 2021-07-12 20:16:15 UTC (rev 59908)
+++ trunk/Master/texmf-dist/doc/latex/iexec/README.md 2021-07-12 20:16:27 UTC (rev 59909)
@@ -2,7 +2,8 @@
[](https://github.com/yegor256/iexec/blob/master/LICENSE.txt)
This LaTeX package helps you execute commands from the document and then input
-their output. The package uses [`ShellEscape`](https://ctan.org/pkg/ShellEscape) package.
+their output. The package uses [`shellesc`](https://ctan.org/pkg/shellesc) package.
+The development of this package was motivated by [this](https://stackoverflow.com/questions/3252957).
First, [install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages)
from [CTAN](https://ctan.org/pkg/iexec)
Modified: trunk/Master/texmf-dist/doc/latex/iexec/iexec.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/iexec/iexec.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/iexec/iexec.tex 2021-07-12 20:16:15 UTC (rev 59908)
+++ trunk/Master/texmf-dist/doc/latex/iexec/iexec.tex 2021-07-12 20:16:27 UTC (rev 59909)
@@ -27,7 +27,7 @@
\usepackage{ffcode}
\title{\ff{iexec}: \LaTeX{} Package \\ for Inputable Shell Executions}
\author{Yegor Bugayenko}
-\date{0.3.0 2021/07/10}
+\date{0.3.1 2021/07/12}
\begin{document}
\pagenumbering{gobble}
\raggedbottom
@@ -47,17 +47,17 @@
\documentclass{article}
\usepackage{iexec}
\begin{document}
-Today is \iexec{date +\%e-\%b-\%Y}.
+Today is \iexec{date +\%e-\%b-\%Y}
\end{document}
\end{ffcode}
\columnbreak
-Today is \iexec{date +\%e-\%b-\%Y}.
+Today is \iexec{date +\%e-\%b-\%Y | tr -d '\\n'}
\end{multicols}
You have to run \ff{pdflatex} (or just \ff{latex}) with the \ff{--shell-escape} flag
-in order to let \ff{ShellEscape} (the package we use) to run shell.
+in order to let \ff{shellesc} (the package we use) to run shell.
If you don't want the output to be visible,
use \ff{\char`\\phantom\char`\{\char`\\iexec\char`\{...\char`\}\char`\}}.
@@ -66,9 +66,11 @@
second optional argument of \ff{\char`\\iexec} (the default value is \ff{iexec.tmp}):
\begin{ffcode}
-Today is \iexec[date.txt]{date +\%e-\%b-\%Y}.
+Today is \iexec[date.txt]{date +\%e-\%b-\%Y | tr -d '\\n'}.
\end{ffcode}
+The tailing part of the command here removes all ends-of-line.
+
The file specified will be deleted right after its usage. If you don't
want this to happen, use \ff{trace} package option: all files will remain
in the directory.
Modified: trunk/Master/texmf-dist/tex/latex/iexec/iexec.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/iexec/iexec.sty 2021-07-12 20:16:15 UTC (rev 59908)
+++ trunk/Master/texmf-dist/tex/latex/iexec/iexec.sty 2021-07-12 20:16:27 UTC (rev 59909)
@@ -21,7 +21,7 @@
% SOFTWARE.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{iexec}[2021/07/10 0.3.0 Inputable Shell Executions]
+\ProvidesPackage{iexec}[2021/07/12 0.3.1 Inputable Shell Executions]
\RequirePackage{shellesc}
@@ -33,12 +33,14 @@
\makeatletter\newcommand\iexec[2][iexec.tmp]{%
\begingroup%
\let\%\@percentchar%
+ \let\\\@backslashchar%
\let\{\@charlb%
\let\}\@charrb%
\ShellEscape{#2 > #1}%
+ \message{iexec executed shell command: [#2 > #1]}%
\endgroup%
- \input{#1}\unskip%
- \iftrace\else\exec{rm #1}\fi%
+ \input{#1}%
+ \iftrace\else\ShellEscape{rm #1}\fi%
}\makeatother
\endinput
More information about the tex-live-commits
mailing list.