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.

How can I pass the option -synctex=1 (for synctex support) of pdflatex to texi2dvi?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

I think you need to create an environment variable called PDFLATEX, which includes the argument(s) you want to pass. Thus, on my machine the following worked.

setenv PDFLATEX "pdflatex -synctex=1"
texi2dvi -p mydocument.tex
share|improve this answer
1  
Or PDFLATEX="pdflatex -synctex=1" texi2dvi -p file in Bash. Probably it's better to add also the Bash equivalent of exporting an environment variable: there's few of us using tcsh, nowadays. :) –  egreg Jul 19 '12 at 9:36
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.