On 2013-03-22, Christoph Wiesmeyr wrote:
> Dear all,
>
> I have been trying to set the TEXINPUTS variable for my latex to
> have it search for packages in paths, where I have some custom
> built macros and styles. I have therefore added this line in my
> vimrc:
>
> let g:Tex_TEXINPUTS = '/home/christoph/Dokumente/Dropbox/NuHAG/latex/**,./**'
>
> According to what I found in http://tinyurl.com/d66jz45 , this
> should do the job.
>
> It works in console based vim, as it seems to inherit the
> environment varibles from the bash, where I have them set in
> bashrc. However, when I use gVim this is not the case. Therefore I
> have two questions:
>
> - is there anything wrong with how I set the environment variable
> above?
> - can I somehow also set environment variables in the internal
> gVim shell, that is invoked on compilation?
The setting of the $TEXINPUTS variable and the g:Tex_TEXINPUTS
variable is covered in
:help custom-packages
:help Tex_TEXINPUTS
Something that doesn't seem to be covered very well by the LaTeX
Suite documentation is where to set the g:Tex_TEXINPUTS variable.
It is set by the package in the ftplugin/latex-suite/texrc file.
The top of that file says:
NOTE: Do NOT be edit this file directly:
this file will be over-written each time you install a new
copy of latex-suite.
You can do one of the following:
1. Copy this file into $VIMFILES/ftplugin/tex/texrc
and edit the values in that file.
$VIMFILES is ~/.vim for UNIX systems and ~/vimfiles for
WINDOWS systems.
2. Just set values of each setting individually in your
$VIMFILES/ftplugin/tex.vim file. (See above for what
$VIMFILES is). You will need to use :let instead of
:TexLet in this case.
So, the proper place to set g:Tex_TEXINPUTS is _not_ in your
~/.vimrc file but in either of the two files mentioned above.
Regards,
Gary
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment