From 0aafae20bbd78e6199bd9117baf7fcb44edd1b98 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 12 Jul 2021 20:16:27 +0000 Subject: iexec (12jul21) git-svn-id: svn://tug.org/texlive/trunk@59909 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/iexec/README.md | 3 ++- Master/texmf-dist/doc/latex/iexec/iexec.pdf | Bin 108202 -> 108132 bytes Master/texmf-dist/doc/latex/iexec/iexec.tex | 12 +++++++----- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist/doc') diff --git a/Master/texmf-dist/doc/latex/iexec/README.md b/Master/texmf-dist/doc/latex/iexec/README.md index 2025d21ebd0..226069a29f4 100644 --- a/Master/texmf-dist/doc/latex/iexec/README.md +++ b/Master/texmf-dist/doc/latex/iexec/README.md @@ -2,7 +2,8 @@ [![License](https://img.shields.io/badge/license-MIT-green.svg)](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) diff --git a/Master/texmf-dist/doc/latex/iexec/iexec.pdf b/Master/texmf-dist/doc/latex/iexec/iexec.pdf index 044e9bea678..a47a9869fd6 100644 Binary files a/Master/texmf-dist/doc/latex/iexec/iexec.pdf and b/Master/texmf-dist/doc/latex/iexec/iexec.pdf differ diff --git a/Master/texmf-dist/doc/latex/iexec/iexec.tex b/Master/texmf-dist/doc/latex/iexec/iexec.tex index 150c8fa8821..098a297045e 100644 --- a/Master/texmf-dist/doc/latex/iexec/iexec.tex +++ b/Master/texmf-dist/doc/latex/iexec/iexec.tex @@ -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 @@ document and then put their output to the document: \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 @@ The output of your code is saved into the file provided as the 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. -- cgit v1.2.3