diff options
author | Norbert Preining <norbert@preining.info> | 2021-07-13 03:00:55 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-07-13 03:00:55 +0000 |
commit | 4ac920a9909dd7d233ed3662bb576e1ae4ade873 (patch) | |
tree | 946aeeae5a3e59d9ec5aec51ee0520dbc712af55 /macros/latex/contrib/iexec/iexec.tex | |
parent | 1caaed73030c69f9f96c5138594089e2689e768b (diff) |
CTAN sync 202107130300
Diffstat (limited to 'macros/latex/contrib/iexec/iexec.tex')
-rw-r--r-- | macros/latex/contrib/iexec/iexec.tex | 12 |
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. |