Skip to content

Instantly share code, notes, and snippets.

@moewew
Created March 29, 2021 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moewew/30646181ab021d6c4fdbe00e0a6d4d2c to your computer and use it in GitHub Desktop.
Save moewew/30646181ab021d6c4fdbe00e0a6d4d2c to your computer and use it in GitHub Desktop.
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage{glossaries}
\newglossaryentry{latex}
{
name={\protect\LaTeX},
description={blabla},
sort={latex}
}
\makeglossaries
% this gives an error
\renewcommand{\LaTeX}{\gls{latex}}
\begin{document}
\gls{latex}
\printglossaries
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment