Skip to content
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

Question: can Weave.jl be used to make glossaries? #475

Open
AhmedSalih3d opened this issue Oct 23, 2023 · 1 comment
Open

Question: can Weave.jl be used to make glossaries? #475

AhmedSalih3d opened this issue Oct 23, 2023 · 1 comment

Comments

@AhmedSalih3d
Copy link

Hello!

I am not sure what kind of minimal example would be beneficial here; basically what I am trying to do is producing a glossary using Weave.jl.

Basically something like this (source: https://www.baeldung.com/cs/latex-glossary):

\begin{document} 

\section{Section with glossaries}

% Term definitions 
\newglossaryentry{fondue}{
    name=fondue,
    description={is a Swiss dish consisting of melted cheese that is served in a
      communal pot heated over a portable stove using a candle or a spirit lamp}
}
 
\newglossaryentry{raclette}{
    name=raclette,
    description={is a Swiss dish that involves heating cheese and
      scraping off the melted portion and topping it onto meats or vegetables}
}

% Use the terms 
\Gls{fondue} is a very popular dish and is often associated with \gls{raclette}.

% Print the glossary 
\printglossaries 

\end{document}

I know that the reason it does not work out of the box is that one needs to compile the document once, then do a makeglossary call and then recompile twice - is this supported in a smart way in Weave.jl?

The reason I ask here is that I have not had any meaningful success asking my questions on Discourse. If this is frowned upon, please let me know and close the issue, thanks!

@AhmedSalih3d
Copy link
Author

To answer my own question;

Yes it can.

You just have to produce the TEX file using Weave, then do a few run commands to compile multiple times using xelatex or w/e.

This is of course not directly from Weave then, but it is in a sense using that eco-system :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant