Tag Info

New answers tagged

4

\documentclass{article} \begin{document} \immediate\write18{echo pwd > /tmp/zzpipe} \texttt{\input{result.txt}} \immediate\write18{echo cd > /tmp/zzpipe} \immediate\write18{echo pwd > /tmp/zzpipe} \texttt{\input{result.txt}} \immediate\write18{echo 'FOO=wibble' > /tmp/zzpipe} \immediate\write18{echo 'echo FOO is $FOO' > /tmp/zzpipe} ...


3

If I run the example, I get runsystem(makeindex "donom".nlo -s nomencl.ist -o "donom".nls)...quotation error in system command. in the log file; tested with MacTeX/TeX Live 2014 on Mac OS X and TeX Live/Debian 2013 on a Debian box. On the other hand, if I change the line into \immediate\write18{makeindex "\jobname.nlo" -s nomencl.ist -o "\jobname.nls"} ...


0

It looks like the unusual file name quotation (i.e. "paper".nlo and "paper".nls) became an issue for restricted \write18. I don't know why I had used that in the past but it must have been some quirk related to makeindex that required it. That quirk seems to be fixed now. So, if I change to \immediate\write18{makeindex paper.nlo -s nomencl.ist -o paper.nls} ...



Top 50 recent answers are included