Let's try a simple document test.tex
; the package pdftexcmds
is loaded in order to have \pdf@shellescape
available with all engines.
\documentclass{article}
\usepackage{pdftexcmds}
\makeatletter
\count@=\pdf@shellescape
\showthe\count@
\makeatother
\begin{document}
Ciao
\end{document}
Here's what happens with
pdflatex test
pdflatex test --shell-escape
lualatex test
lualatex test --shell-escape
xelatex test
xelatex test --shell-escape
The execution stops because of \showthe
, showing
> 2.
l.5 \showthe\count@
in all six invocations (TeX Live 2012 on Mac OS X, but I don't think it's different with other platforms).
If we put --shell-escape
at its proper place, the execution of any of
pdflatex --shell-escape test
lualatex --shell-escape test
xelatex --shell-escape test
stops showing
> 1.
l.5 \showthe\count@
This means that the setting of --shell-escape
can be done only in "infix notation" and that the option has no effect if postfixed.
As kindly as usual, Paulo Cereda confirms that, on MiKTeX, options can be specified after the file name for pdftex
and xetex
, but not for luatex
. As the most common syntax format on other systems is with "infix" options, my opinion is that TikZEdt is wrong in its assumptions.
Since the command line version works for the OP, it looks like a TeXWorks setup problem.
The following additions to the TeXWorks compilation options work for me. I am sorry for german texts in the screenshots from my PC.
The first one is for setting up a pdfLaTeX compile option with --shell-escape
:
The second one is for a pdfLaTeX+MakeIndex+BibTeX compile option with --shell-escape
:
With both settings the example from http://t-f-s.github.io/csvsorter/ compile.
Prerequisite is that the CSVsorter
program is found on the system path. Putting it into the source directory of the LaTeX example also works.
The files for the example are the following:
songcontest.tex:
\documentclass{article}
\usepackage{array,booktabs,csvsimple}
\usepackage{geometry}
\begin{document}
\csvreader[sort by=sumsort.xml,
head to column names,
tabular=lllcc,
table head=\toprule\textbf{Artist} & \textbf{Title} & \textbf{Country} &
\textbf{Points} & \textbf{TV+JV}\\\midrule,
table foot=\bottomrule]
{songcontest.csv}{}
{\Artist & \itshape''\Title'' & \Country &
\bfseries\the\numexpr\Televote+\Juryvote\relax & $(\Televote+\Juryvote)$}
\end{document}
songcontest.csv:
Title,Artist,Country,Televote,Juryvote
La la la la la,The Singers,United Kingdom,25,62
One and two and three,Hansi Unterober,Germany,47,35
Rarara,Channel Rats,Grand Fenwick,12,14
The green hills of the shire,Frodo and Friends,New Zealand,76,45
Paris e Calais,Chantal and Pascal,France,47,41
The bell rings,Baab,Sweden,87,24
sumsort.xml:
<?xml version="1.0" encoding="UTF-8"?>
<csv>
<sortlines>
<sum order="descending" type="integer">
<column name="Televote"/>
<column name="Juryvote"/>
</sum>
<column name="Country" order="ascending" type="string"/>
</sortlines>
</csv>
My example directory contains the following files:
Best Answer
With texify you must pass the option through the
--tex-option
option: