Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to put output files (.pdf) into a _out dir and auxiliary files such as .synctex.gz or .toc into a _aux subdir.

From the help it seems that the -d option is what allows one to do it, but if I try to use it I get a Segmentation fault at the end.

Am I using it wrong?

echo '\documentclass{article}
\begin{document}
a
\clearpage
a
\end{document}' > a.tex
mkdir _aux _out

pdflatex -interaction=nonstopmode -synctex=1 -output-directory _aux "a.tex"
synctex view -i "5:1:a.tex" -o "_aux/a.pdf"
echo $?

gives the good output (page 2) and 0 exit status but:

mv _aux/a.pdf _out/
synctex view -i "5:1:a.tex" -o "_out/a.pdf" -d "../_aux/"
echo $?

gives the good output + a line:

Segmentation fault (core dumped)

and 139 exit status

and:

synctex view -i "5:1:a.tex" -o "_out/a.pdf" -d "_aux/"
echo $?

gives just:

This is SyncTeX command line utility, version 1.2
Segmentation fault (core dumped)

and 139 exit status.

Version: 1.2 on Ubuntu 12.10 from texlive-full package.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.