On 2010-03-23, Udo Hortian <[email protected]> wrote:
> Hello,
>
> Normally I compile my LaTeX documents with latex, but some I need to
> compile with pdflatex. I would like to store this setting in the .tex
> file like one can store other vim specific settings like the following:
>
> /* ex: set tabstop=8 expandtab: */
>
> I would like to set TTarget this way, but this seems not to be possible.
> Or am I missing some possibility here?
According to
:help modeline
Vim allows only certain options to be set in a modeline, for
security reasons.
Here's something you might try.
Put one of the following lines at the bottom of each of your .tex
files:
% TTarget latex
or
% TTarget pdflatex
Put the following in your ~/.vim/after/ftplugin/tex.vim file.
let compiler = matchstr(getline("$"), '^% TTarget \zs.*')
if compiler != ''
" Execute whatever command will set TTarget according to the
" value of compiler. I don't understand vim-latex-suite
" well enough to know what goes here.
endif
HTH,
Gary
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Vim-latex-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel