1

I am trying to make a glossary list using xindy in TexStudio. I have already installed Perl but it does not work. Here is my MWE

\documentclass[a4paper,openright,12pt]{book}
\usepackage{vmargin}
\usepackage{fancyhdr}
\usepackage{emptypage}
\usepackage{xpatch}
\usepackage{float}
\fancypagestyle{plain}{\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}}
\pagestyle{fancy} 
\usepackage{afterpage}
\usepackage{blindtext}
\fancypagestyle{chapterfirstpage}{%
\renewcommand{\headrulewidth}{0pt}%
\renewcommand{\footrulewidth}{0.5pt}%
\fancyhf{}%
\rfoot{\thepage}%
}
\xpatchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{chapterfirstpage}}{\typeout{Success}}{\typeout{Failed}}
  \usepackage{epigraph}
 \newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
\usepackage[utf8]{inputenc}
\setcounter{secnumdepth}{3} 
\setcounter{tocdepth}{3} 
\usepackage[spanish, es-tabla]{babel}
 \usepackage{graphicx}
 \graphicspath{{./figuras/}}
\usepackage{setspace}
\usepackage[backend=bibtex,bibencoding=ascii,style=chem-angew,citestyle=numeric-comp,sorting=none,]{biblatex}
 \addbibresource{biblio} 
 \usepackage{csquotes}
 \usepackage{titlesec}
 \usepackage{tocloft}
 \usepackage{tabu}
 \usepackage{color}
 \usepackage{epsfig}\usepackage{multirow}
 \usepackage{colortbl}
 \usepackage[table]{xcolor}
 \titleformat{\chapter}{\normalfont\huge\sffamily}{\thechapter.}{0.1em}{\Huge}
 \renewcommand\cftchapaftersnum{.}
 \makeindex
 \usepackage[labelfont=bf]{caption}
 \usepackage{bm}
 \usepackage{textcomp}
 \usepackage{upgreek}
 \usepackage[xindy]{glossaries}
 \GlsSetXdyCodePage{duden-utf8}
 \usepackage{translator}
 \setacronymstyle{long-sc-short}
\makeglossaries
 \newacronym{DRX}{DRX}{Difracción de Rayos X}
 \raggedbottom
 \definecolor{lightgray}{gray}{0.9}
 \begin{document}
 \printglossary[letter]
 \end{document}

I get the following error:

Warning: File 'acronyms prueba.glo' is empty. Have you used any entries defined in glossary 'main'? Remember to use package option 'nomain' if you don't want to use the main glossary.

Thanks!

  • You did not use the DRX entry at all. And \printglossary[letter] produces an error! – user31729 Apr 20 '16 at 16:38
  • And please don't use vmargin package. That's outdated! Use geometry to set margins etc. – user31729 Apr 20 '16 at 16:47
  • Oh I forget to add the \gls in the example I sent. But I got the same error message I copied even if the command is included – Leila Apr 21 '16 at 19:09
  • It's a warning, not an error message. And as I said: \printglossary[letter] is wrong – user31729 Apr 21 '16 at 19:28
2

There's no \gls{DRX} or \glsaddall command in the document, that's why no glossaries is printed (and glossaries complains about an empty glossary!)

\documentclass[a4paper,openright,12pt]{book}

\usepackage{fancyhdr}
\usepackage{emptypage}
\usepackage{xpatch}
\usepackage{float}
\fancypagestyle{plain}{\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}}
\pagestyle{fancy} 
\usepackage{afterpage}
\usepackage{blindtext}
\fancypagestyle{chapterfirstpage}{%
\renewcommand{\headrulewidth}{0pt}%
\renewcommand{\footrulewidth}{0.5pt}%
\fancyhf{}%
\rfoot{\thepage}%
}
\xpatchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{chapterfirstpage}}{\typeout{Success}}{\typeout{Failed}}
  \usepackage{epigraph}
 \newcommand\blankpage{%
\null
\thispagestyle{empty}%
\addtocounter{page}{-1}%
\newpage}
\usepackage[utf8]{inputenc}
\setcounter{secnumdepth}{3} 
\setcounter{tocdepth}{3} 
\usepackage[spanish, es-tabla]{babel}
 \usepackage{graphicx}
 \graphicspath{{./figuras/}}
\usepackage{setspace}
\usepackage[backend=bibtex,bibencoding=ascii,style=chem-angew,citestyle=numeric-comp,sorting=none,]{biblatex}
 \addbibresource{biblio} 
 \usepackage{csquotes}
 \usepackage{titlesec}
 \usepackage{tocloft}
 \usepackage{tabu}
 \usepackage{color}
 \usepackage{epsfig}\usepackage{multirow}
 \usepackage{colortbl}
 \usepackage[table]{xcolor}
 \titleformat{\chapter}{\normalfont\huge\sffamily}{\thechapter.}{0.1em}{\Huge}
 \renewcommand\cftchapaftersnum{.}
 \makeindex
 \usepackage[labelfont=bf]{caption}
 \usepackage{bm}
 \usepackage{textcomp}
 \usepackage{upgreek}
 \usepackage[xindy]{glossaries}
 \GlsSetXdyCodePage{duden-utf8}
 \usepackage{translator}
 \setacronymstyle{long-sc-short}
\makeglossaries
 \newacronym{DRX}{DRX}{Difracción de Rayos X}
 \raggedbottom
 \definecolor{lightgray}{gray}{0.9}
 \begin{document}
 \gls{DRX}
 \printglossary%[letter]
 \end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.