Advertisement
Guest User

Untitled

a guest
Aug 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. documentclass[a4paper]{article}
  2.  
  3. usepackage{hyperref}
  4. usepackage{glossaries}
  5.  
  6. makeglossaries
  7. newglossaryentry{lowercase}{name={lowercase}, description={In the glossary, this word should be capitalized}}
  8. newglossaryentry{uppercase}{name={Uppercase}, description={This word is capitalized}}
  9.  
  10. begin{document}
  11.  
  12. Should both be lowercase: gls{lowercase}, gls{uppercase}.
  13.  
  14. Workaround: gls{lowercase}, glslink{uppercase}{uppercase}.
  15.  
  16. printglossaries
  17.  
  18. end{document}
  19.  
  20. Should both be lowercase: lowercase, Uppercase.
  21. Workaround: lowercase, uppercase.
  22.  
  23. Glossary
  24. lowercase In the glossary, this word should be capitalized. 1
  25. Uppercase This word is capitalized. 1
  26.  
  27. newglossaryentry{uppercase}{
  28. name={Uppercase},
  29. text={uppercase},
  30. description={Appears uppercase in the glossary and lowercase in the text}
  31. }
  32.  
  33. usepackage{mfirstuc}
  34. renewcommand{glsnamefont}[2][]{capitalisewords{#1}xspace#2}
  35.  
  36. newglossaryentry{firstexample}{
  37. name={first}{word capitalized}
  38. }
  39.  
  40. newglossaryentry{boite}{
  41. name={Boite de valeurs},
  42. text={boite de valeurs}
  43. }
  44.  
  45. newglossaryentry{iblabla}{
  46. name={$i$-th blabla}
  47. }
  48.  
  49. setglossarystyle{long}
  50. setabbreviationstyle[acronym]{long-short}
  51. glssetcategoryattribute{acronym}{glossdesc}{firstuc}
  52.  
  53. newglossaryentry{concept}{
  54. name={Concept},
  55. text={concept},
  56. description={definition of concept},
  57. plural={concepts}
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement