Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. documentclass{article}
  2.  
  3. usepackage{fmultico}
  4. usepackage{geometry}
  5. geometry{paperwidth=165mm, paperheight=140mm, top=5mm, bottom=5mm}
  6. pagestyle{empty}
  7.  
  8. %%%%%%%%%%%%%%%%%%%%%%%%%%%%% ORGANIZE ENTRIES AND GLOSSARIES OF FOOTNOTES
  9. usepackage[entrycounter,nomain,nonumberlist]{glossaries}
  10. renewcommand*{glspostdescription}{}
  11. %%Glossary of footnotes
  12. newglossary[soc]{Dico}{sox}{soo}{The title of the glossary}
  13. makeglossaries
  14.  
  15. newcommand*{entrydico}[2]
  16. {%
  17. newglossaryentry{#1}{type=Dico,name={},text={#1},sort={#1},
  18. description={begin{tabular}{p{2 cm}p{2 cm}}
  19. hspace*{-6pt}#1 &hfill #2hspace*{-6pt}\
  20. hline
  21. end{tabular}} }
  22. }
  23.  
  24. %% The link of the gls commands
  25. defglsentryfmt[Dico]{}
  26.  
  27. %% ENTRIES
  28. entrydico{word1}{synonym1}
  29. entrydico{word2}{synonym2}
  30. entrydico{word3}{synonym3}
  31. entrydico{word4}{synonym4}
  32. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END GLOSSARIES COMMANDS
  33.  
  34.  
  35. begin{document}
  36. The word word1gls{word1}
  37.  
  38. The word word2gls{word2}
  39.  
  40. The word word3gls{word3}
  41.  
  42. The word word4gls{word4}
  43.  
  44.  
  45. vspace*{5mm}
  46. hrule
  47. vspace*{5mm}
  48. begin{multicols}{2}[]
  49. printglossary[type=Dico]
  50. end{multicols}
  51. vspace*{5mm}
  52. hrule
  53. vspace*{5mm}
  54. Non-numbered entries with the option `entrycounter=false`
  55. begin{multicols}{2}[]
  56. printglossary[type=Dico,entrycounter=false]
  57. end{multicols}
  58.  
  59. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement