summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/iexec/iexec.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/iexec/iexec.tex')
-rw-r--r--macros/latex/contrib/iexec/iexec.tex12
1 files changed, 7 insertions, 5 deletions
diff --git a/macros/latex/contrib/iexec/iexec.tex b/macros/latex/contrib/iexec/iexec.tex
index 150c8fa882..098a297045 100644
--- a/macros/latex/contrib/iexec/iexec.tex
+++ b/macros/latex/contrib/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.