TransWikia.com

Glossaries Package Entry wont disappear

TeX - LaTeX Asked by Kataran on May 14, 2021

i am currently using the glossaries package and found the code provived in this answer

It works just fine and displays my symbols in a column with 3 headings, but if I remove an entry in the code, it still shows up in the pdf.

I dont know why the entry still shows up? If it isnt declared as a glossary entry, how can it show up?

This is the Code from the answer:

documentclass{book}                           
usepackage{siunitx}
usepackage[acronym,toc]{glossaries}              % use glossaries-package


setlength{glsdescwidth}{15cm}

newglossary[slg]{symbolslist}{syi}{syg}{Symbolslist} % create add. symbolslist


glsaddkey{unit}{glsentrytext{glslabel}}{glsentryunit}{GLsentryunit}{glsunit}{Glsunit}{GLSunit}

makeglossaries                                   % activate glossaries-package


% ==== EXEMPLARY ENTRY FOR SYMBOLS LIST =========================================
    newglossaryentry{symb:Pi}{name=ensuremath{pi},
        description={Geometrical value},
        unit={},
        type=symbolslist}

    newglossaryentry{height}{name=ensuremath{h},
        description={Height of tower},
        unit={si{m}},
        type=symbolslist}

    newglossaryentry{energyconsump}{name=ensuremath{P},
        description={Energy consumption},
        unit={si{kW}},
        type=symbolslist}




% ==== EXEMPLARY ENTRY FOR ACRONYMS LIST ========================================
    newacronym{VRBD}{VRBD}{Violet-Red-Bile-Glucose-Agar}


% ==== EXEMPLARY ENTRY FOR MAIN GLOSSARY ========================================
    newglossaryentry{Biofouling}{name=Biofouling,description={Some description}}


newglossarystyle{symbunitlong}{%
setglossarystyle{long3col}% base this style on the list style
renewenvironment{theglossary}{% Change the table type --> 3 columns
  begin{longtable}{lp{0.6glsdescwidth}>{centeringarraybackslash}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
}
}


begin{document}

    glsaddall

    printglossary[type=acronymtype,style=long]  % list of acronyms
    printglossary[type=symbolslist,style=symbunitlong]   % list of symbols
    printglossary[type=main]                     % main glossary

end{document}

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP