I have a problem with Latex [pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9 64-bit)] and specially with glossaries. I've have tried to write a glossary, a list of acronyms and a list of symbols (referring, fot this latter, to this link: glossaries: How to customize list of symbols with additional column for units? ) and everything seems to go right but I have the following error:
Undefined control sequence. \glsXpageXglsnumberformat{}{1}}}
I have tried to simplify my code based on the Miede's ClassicThesis. Hope is enough or not too much: I can't say what is helpful for you and I apologize for that, I'm a new user of Latex and this site.
Thesis2.tex:
% A Classic Thesis Style
\RequirePackage{fix-cm}
\documentclass[ twoside]{scrreprt} % Classe: Report
\input{Thesis-config2}
\begin{document}
%\dominitoc
\frenchspacing
\raggedbottom
\selectlanguage{English} % american ngerman
%\renewcommand*{\bibname}{new name}
%\setbibpreamble{}
\pagenumbering{roman}
\pagestyle{plain}
\cleardoublepage\include{FrontBackmatter/Contents2}
\cleardoublepage\pagenumbering{arabic}
\setcounter{page}{1}
The \gls{latex} typesetting markup ... other glossary \gls{other}
Given a set of numbers, there are elementary methods to compute
its \acrlong{gcd}, which is abbreviated \acrshort{gcd}. This
process is similar to that used for the \acrfull{gcd} \\
This is height \gls{height} and this velocity \gls{velocity}
\end{document}
Thesis-config2.txt
\PassOptionsToPackage{parts,%drafting,%
listings,floatperchapter,%linedheaders,%
subfig,eulerchapternumbers,beramono,eulermath,pdfspacing}
{classicthesis}
\usepackage{classicthesis}
% 3. Load packages
\usepackage[utf8]{inputenc} % Encoding inputs
\usepackage[italian,english]{babel} % Select language (last most used)
\usepackage[T1]{fontenc} % T2A for cyrillics
\newcounter{dummy} % necessary for correct hyperlinks (to index, bib, etc.)
\usepackage{siunitx} % International system units
% 4. Setup floats: tables, (sub)figures, and captions
\usepackage{tabularx} % better tables
\setlength{\extrarowheight}{3pt} % increase table row height
\newcommand{\tableheadline}[1]{\multicolumn{1}{c}{\spacedlowsmallcaps{#1}}}
\newcommand{\myfloatalign}{\centering} % to be used with each float for alignment
\usepackage{caption} % Ita: didascalie
\captionsetup{font=small} % format=hang,
\usepackage{subfig}
% 6. PDFLaTeX, hyperreferences and citation backreferences
% Using PDFLaTeX
\PassOptionsToPackage{pdftex,hyperfootnotes=false,pdfpagelabels}{hyperref}
\usepackage{hyperref} % backref linktocpage pagebackref
\pdfcompresslevel=9
\pdfadjustspacing=1
\PassOptionsToPackage{pdftex}{graphicx}
\usepackage{graphicx}
% Glossary, list of symbols and nomenclature
\usepackage[nonumberlist,nopostdot,acronym,xindy]{glossaries}
\setlength{\glsdescwidth}{15cm}
\newglossary[slg]{symbolslist}{syi}{syg}{List of Symbols} % create add. symbolslist
\glsaddkey{unit}{\glsentrytext{\glslabel}}{\glsentryunit}{\GLsentryunit}{\glsunit}{\Glsunit}{\GLSunit} % Inserts unit column
\makeglossaries
\input{glossary-defs}
\newglossarystyle{symbunitlong}{%
\setglossarystyle{long3col}% base this style on the list style
\renewenvironment{theglossary}{% Change the table type --> 3 columns
\begin{longtable}{lp{0.6\glsdescwidth}>{\centering\arraybackslash}p{2cm}}}%
{\end{longtable}}%
%
\renewcommand*{\glossaryheader}{% Change the table header
\bfseries Sign & \bfseries Description & \bfseries Unit \\
\hline
\endhead}
\renewcommand*{\glossentry}[2]{% Change the displayed items
\glstarget{##1}{\glossentryname{##1}} %
& \glossentrydesc{##1}% Description
& \glsunit{##1} \tabularnewline
}
}
Contents2.tex
% Table of Contents
%*******************************************************
\refstepcounter{dummy} % to refere to a chapter not numbered
\pdfbookmark[1]{\contentsname}{tableofcontents} % bookmark to the table of contents
\setcounter{tocdepth}{2} % <-- 2 includes up to subsections in the ToC
\setcounter{secnumdepth}{3} % <-- 3 numbers up to subsubsections
\manualmark
\markboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}
\tableofcontents % makes the table of contents
\automark[section]{chapter}
\renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\enspace \spacedlowsmallcaps{#1}}}
\cleardoublepage
% List of Figures
\phantomsection
\refstepcounter{dummy}
\addcontentsline{toc}{chapter}{\listfigurename}
% \pdfbookmark[1]{\listfigurename}{lof}
\listoffigures
%\cleardoublepage
%*******************************************************
% List of Tables
\phantomsection
\refstepcounter{dummy}
\addcontentsline{toc}{chapter}{\listtablename}
% \pdfbookmark[1]{\listtablename}{lot}
\listoftables
%\cleardoublepage
%*******************************************************
% List of Listings
\phantomsection
\refstepcounter{dummy}
\addcontentsline{toc}{chapter}{\lstlistlistingname}
%\pdfbookmark[1]{\lstlistlistingname}{lol}
\lstlistoflistings
%\cleardoublepage
%*******************************************************
% Acronyms
\phantomsection
\refstepcounter{dummy}
\addcontentsline{toc}{chapter}{List of Acronyms}
% \pdfbookmark[0]{Acronyms}{acronyms}
% \markboth{\spacedlowsmallcaps{Acronyms}}{\spacedlowsmallcaps{Acronyms}}
\printglossary[type=\acronymtype,style=long] % list of acronyms
%\cleardoublepage
%*******************************************************
% List of symbols
\phantomsection
\refstepcounter{dummy}
\addcontentsline{toc}{chapter}{List of Symbols}
\printglossary[type=symbolslist,style=symbunitlong] % list of symbols
%\cleardoublepage
%*******************************************************
% Glossary
\phantomsection
\refstepcounter{dummy}
\addcontentsline{toc}{chapter}{Glossary}
% \pdfbookmark[0]{Glossary}{glossary}
\markboth{\spacedlowsmallcaps{Glossary}}{\spacedlowsmallcaps{Glossary}}
\printglossary[type=main] % main glossary
% \cleardoublepage
glossary-defs.tex
\newacronym{gcd}{GCD}{Greatest Common Divisor}
\newglossaryentry{latex}
{
name=latex,
description={Is a mark up language specially suited
for scientific document}
}
\newglossaryentry{other}
{
name=other,
description={example of description }
}
\newglossaryentry{height}{name=\ensuremath{h},
description={Height of tower},
unit={\si{m}},
type=symbolslist}
\newglossaryentry{velocity}{name=\ensuremath{V},
description={Velocity},
unit={\si{m/s}},
type=symbolslist}
So my questions are:
- What is that error? Why the PDF seems to be right despite the error?
- Why the glossary names are displayed in that way? (ex. lo@latex@name)
MWE:
\documentclass[twoside]{scrreprt}
\usepackage{classicthesis}
\usepackage{hyperref}
\usepackage[nonumberlist,nopostdot,xindy]{glossaries}
\makeglossaries
\newglossaryentry{latex}
{
name=latex,
description={Is a mark up language specially suited
for scientific document}
}
\newglossaryentry{other}
{
name=other,
description={example of description }
}
\begin{document}
\printglossary
The \gls{latex} typesetting markup ... other glossary \gls{other}
\end{document}