OthersHow to automatically include nomenclatures in Vim-Latex

Information and discussion about other LaTeX editors not listed above
Post Reply
Joseph
Posts: 2
Joined: Fri Nov 08, 2019 6:38 pm

How to automatically include nomenclatures in Vim-Latex

Post by Joseph »

Hi guys,

I am using Vim-Latex as an editor and have a curiosity on how to enable the automatic inclusion of the nomenclatures I have defined in a file test.tex, by simply running \ll.
Right now, after running \ll I have to explicitly write (as explained in https://latex.org/forum/viewtopic.php?t=27292 ) the following colon command in vim:
:! makeindex test.nlo -s nomencl.ist -o test.nls
After that, another \ll creates the pdf file with correct nomenclatures.

So it all works fine, except that....
on the page http://vim-latex.sourceforge.net/docume ... tiple.html it is written that setting the option
let g:Tex_MultipleCompileFormats='pdf'
in your .vimrc file should make .bib and .idx files be properly treated with. (My pdf compiler is pdftex). Indeed, I tested it with bibtex, and simply running \ll once makes the pdftex -> bibtex -> pdftex chain be executed and creates a correct bibliography in the pdf.
After running \ll on my test.tex, a test.nlo file is created, but the resulting pdf does not show the nomenclatures. I wonder whether it is strange that setting the option above does not properly handle this .nlo file by calling makeindex in a proper way, as it is supposedly able to do with .idx files. Also, can modifying the .vimrc file in some way resolve this issue?

PS I am new to this forum, great platform!
PPS So this is my first post, feel free to comment on the contents and relevance it for future improvements.

Thanks for the help!
Joseph

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How to automatically include nomenclatures in Vim-Latex

Post by Johannes_B »

I am a user of vim for years, but never used vim-latex. I just do :! latexmk -pdf %, which is much faster if you have typed it before and you can just use the arrow key.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Joseph
Posts: 2
Joined: Fri Nov 08, 2019 6:38 pm

How to automatically include nomenclatures in Vim-Latex

Post by Joseph »

Johannes_B wrote:I am a user of vim for years, but never used vim-latex. I just do :! latexmk -pdf %, which is much faster if you have typed it before and you can just use the arrow key.
Hi Johannes_B,

Thanks for the suggestion. I never tried latexmk but will give it a try!

What do you mean with 'you can just use the arrow key'?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How to automatically include nomenclatures in Vim-Latex

Post by Johannes_B »

I just type :! l and use the arrow-up key to get to the last command i used.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply