Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [bashful]

{bashful} provides a means to execute bash shell script(s) from within LaTeX.

2
votes
1answer
95 views

Running bashful on Windows

Since the author of the package \bashful claims: The pack­age may use other Unix shells than bash, but does not work with­out mod­i­fi­ca­tion in a Win­dows en­vi­ron­ment. https://ctan.org/pkg/...
3
votes
3answers
518 views

How to Bashful this find into this LaTeX animate?

Unix command to make png series from gif pictures in a directory # steeldriver, https://unix.stackexchange.com/a/370132/16920 find -L . -name '*.gif' -execdir sh -c 'for f; do convert -...
1
vote
0answers
533 views

Print character count

Background inspiration and code: \documentclass{article} \usepackage{bashful} \pagestyle{empty} \bash texcount -sum -1 tmp.tex \END \begin{document} %here is a front page and a table of contents %...
1
vote
1answer
180 views

Why this bashful input fails?

I am trying to test the thread answer here about Inputting multiple files in LaTeX but I get the following error about file being empty. I need to have documentclass article which should be ok as in ...
2
votes
1answer
344 views

An error with bashful package

I would like too use the bashful package but an error occured. I wrote this simple code (test.tex): \documentclass{article} \usepackage{bashful} \begin{document} \bash ls \END \end{document} and ...
3
votes
1answer
189 views

how to use output of bashful splice to assign it to a Latex counter?

This is very frustrating. I can obtain my Linux group ID and assign it to a Latex counter. When using the \bash..\END construct it works, but when using splice construct it does not work. I'll show ...
3
votes
2answers
362 views

How to use bashful package from inside etoolbox list processing?

Given list of file names, I wanted to obtain the word count of each file, but by using either \forcsvlist or \docsvlist and pass the file name to bash from Latex without hardcoding the file name in ...
41
votes
5answers
2k views

Amusing exercise - ouroboros file - Output of TeX includes itself recursively ad infinitum

Clarification: The question may be related to the the quine fun question, but IMHO it is quite distinct. The question here to write an "ouroboros" in TeX, i.e., a file that includes itself as a ...
5
votes
1answer
219 views

Partial expansion: macro arguments and nothing more

I am in search for a package that would allow me to do write a command of the following sort: \tofile{filename}{One}{Two} FROM HERE here is some nonsensical list of commands, \unexpand\...
3
votes
1answer
637 views

Error using package bashful

Even in the simplest MWE executed on a linux distribution, the command latex -shell-escape test.tex returns me the error message: Use of \bashIII doesn't match its definition. MWE: \documentclass{...