TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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
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

Your Answer


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.