![]() |
TEXEDIT Environment Variable |
When the built in terminal stops on a TeX error, you can press the "e" button to switch from the terminal to the text editor highlighting the line where the error occured. In standard configuration, when an external text editor is used, iTeXMac just shows the text file in that editor, but it does not ask the external editor to highlight the line where the error occured.
However,
if your external editor supports the TEXEDIT environment variable,
you can add in iTeXMac preferences an entry with key: "TEXEDIT"
and string value "vi -%d %s" for example, see the tex
man page for details about the value. You can use in a terminal
the following command line:
defaults write "iTeXMac" "TEXEDIT" "vi -%d %s" |
To retrieve
the original state, enter
defaults delete "iTeXMac" "TEXEDIT" |
People who also use the command line to run tex commands may have already configured their .cshrc to set the environment variable TEXEDIT. iTeXMac indirectly parses the .cshrc for compile and typeset but the value of the preferences file will always take precedence.