Generalglossaries | List of Symbols - Number List

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
olga30d
Posts: 8
Joined: Thu Jul 28, 2011 12:39 pm

glossaries | List of Symbols - Number List

Post by olga30d »

Dear all,

In my document the List of Symbols is preceded by a List of Figures and Tables, within which there are several \gls{} items. I wonder whether it is possible to suppress entries in the number list for the List of Figures and List of Tables to appear in List of Symbols?

Thanks,
Olga

Code: Select all

\documentclass[11pt, oneside]{book}
\usepackage[T1]{fontenc}
\usepackage[british]{babel}
\usepackage[pagestyles,raggedright]{titlesec}
\usepackage[nottoc]{tocbibind}
\usepackage{url,natbib}
\titleformat*{\chapter}{\Huge\bfseries\rm}\titleformat*{\section}{\LARGE\bfseries\rm}
\titleformat*{\subsection}{\Large\bfseries\rm}
\titleformat*{\subsubsection}{\large\bfseries\rm}
\newpagestyle{main}[\small\sffamily\rm]{
\headrule
\sethead{\thechapter\enspace\chaptertitle}{}{\thepage}}
\usepackage[]{appendix}%for appendices
\usepackage[acronym, sort=use, toc]{glossaries}
\usepackage{glossary-long}
\glossarystyle{long}
\newglossary[slg]{symbolslist}{syi}{syg}{List of Symbols}
\newglossary[alg]{acronymslist}{acr}{acn}{List of Acronyms}
\renewcommand*{\glspostdescription}{}
\setlength{\glsdescwidth}{0.95\linewidth}
\makeglossaries
\loadglsentries{listofsym}
\loadglsentries[acronym]{listofacr}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\pagestyle{empty}
\include{title}
\pagenumbering{roman}
\chapter{Summary}
\tableofcontents
\listoftables
\listoffigures
\clearpage
\printglossary[type=symbolslist]
\printglossary[type=acronymslist]
\clearpage
\pagenumbering{arabic}
\pagestyle{main}
\chapter{SomeChapters.tex}
some text
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

glossaries | List of Symbols - Number List

Post by kaiserkarl13 »

Why are there glossary entries in your list of figures/tables? If you mean that there's a glossary entry in the captions that's getting double-listed because of the captions' inclusion in the ToC, I would create an alternative (possibly shorter) caption that only appears in the table of contents, like so:

Code: Select all

\begin{figure}
  % code to generate picture / include graphic goes here
  \caption[Description of figure]{Description of figure with extra details
    that are important for the caption but not the table of contents, such as
    glossary and nomenclature entries.\nomenclature[A]{Apples}\index[I]{Images}}
\end{figure}
Post Reply