-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation could be more thorough as regards how to make glossaries #2603
Comments
Thanks; I appreciate this kind of feedback, and I think the worst case consequence is that you learn something. Often I learn something as well, and sometimes we end up improving VimTeX either functionally or e.g. in documentation. :)
Ah, yes; notice that
I can see where you are coming from and I agree that latexmk may have misleading documentation here. I find that I use the following in my own push @generated_exts, "nlo";
push @generated_exts, "nls";
# ....
add_cus_dep('nlo', 'nls', 0, 'nlo2nls');
sub nlo2nls {
system("makeindex $_[0].nlo -s nomencl.ist -o $_[0].nls -t $_[0].nlg" );
} This is for nomenclatures, but as you see, it is clearly related to your issue.
Ok, so:
Two comments:
Perhaps a solution would be to remove the parantheses where |
I see that in your push @generated_exts, "glo";
push @generated_exts, "gls";
push @generated_exts, "glg";
add_cus_dep('glo', 'gls', 0, 'glo2gls');
sub glo2gls {
system("makeindex $_[0].glo -s $_[0].ist -o $_[0].gls -t $_[0].glg" );
} And it works. But... am I doing something that will bite me when I'll add stuff like nomenclature, index, and others? Or will
Yep, maybe it's a good idea.
Thanks! :) |
Yes, that seems safe - and I'm glad to hear it works. I have to admit I don't understand these things as well as I should, but I believe you will find a lot of information on these topics if you search for e.g.
I think this is safe. But again, I believe you will also find a lot of relevant information online for these things if you search specifically for
I'll do that, then. |
Description
Disclaimer: I've been away from LaTeX since late 2018, which a long long loooong time for LaTeX, in my experience, so I'm a bit rustly and might be missing something obvious. So here I'm playing the role of the beginner, maybe, but I rember that VimTeX was, and I know still is, a great (the greatest imho) plugin for LaTeX that can even make novices start using it. So I hope the feedback I'm giving can help give an improvement in this respect.
In
:h vimtex
,makeindex
is mentioned twice, fundamentally in identical texts:From this I'd deduce that that
makeindex
runs out of the box, but apparently, if I don't manually runmakeindex -s main.ist -o main.gls main.glo
, I gethas been referenced but does not exist, replaced by a fixed one
for entries I've added vianewglossaryentry
.Since the bibliography handling was automatic (so, in practice, I didn't need to look up for VimTeX documentation at all), I'd have expected that also glossay handling was automatic. If it is not, then maybe the doc could tell something more.
Steps to reproduce
In short, I've put an example from Overleaf in a
main.tex
file and started VimTeX on it.As far as the vimrc is concerned, I'm pretty confident making it minimal with respect to non-VimTeX stuff is overkill, so I've just make sure to not define
g:vimtex_compiler_latexmk
. The rest is just a few options which are unrelated to the issue:Expected behavior
From the doc, I'd have expected that executing
makeindex ...
was automatic.Actual behavior
The compilation results in
main.tex|| No file main.gls.
. Manually executingmakeindex -s main.ist -o main.gls main.glo
makes all work.Do you use a latexmkrc file?
No (I use it, but I've deleted it while doing repro steps from Overleaf example.)
VimtexInfo
The text was updated successfully, but these errors were encountered: