Guest User

Untitled

a guest
Feb 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. documentclass{article}
  2.  
  3. usepackage[nonumberlist]{glossaries}
  4. makeglossaries
  5. newglossaryentry{Hull}{name=Hull,description={Canoe body.}}
  6. newglossaryentry{Main sail}{name={Main sail},description={Hoistable, foldable cloth}}
  7. newglossarystyle{mylong}{%
  8. setglossarystyle{long}%
  9. renewcommand*{glstextformat}{textbf}
  10. renewenvironment{theglossary}%
  11. {begin{longtable}[l]{@{}p{dimexpr 3.5cm-tabcolsep}p{0.8hsize}}}% <-- change the value here
  12. {end{longtable}}%
  13. renewcommand{glsgroupskip}{}
  14. }
  15.  
  16. usepackage{titlesec}
  17. usepackage{fontspec}
  18. defaultfontfeatures{Ligatures=TeX}
  19. setmainfont[
  20. Ligatures=TeX,
  21. ItalicFont={z_CALIBRILI.TTF},
  22. BoldFont={z_CALIBRI.TTF}
  23. ]{z_CALIBRIL.TTF}
  24.  
  25. newfontfamilysectionfont{z_CAMBRIAI.TTF}
  26. titleformat*{section}{Largesectionfont}
  27.  
  28. usepackage{booktabs}
  29. usepackage{tabularx}
  30. usepackage{subfiles}
  31.  
  32. % enumitem package allows list items to be prepended with section number: nice
  33. % it also controls the format of the section numbers / letters
  34. usepackage{enumitem}
  35.  
  36. usepackage{gensymb}
  37. setenumerate[1]{label=thesection.arabic*,labelsep*=12pt}
  38. setenumerate[2]{label=(alph*)}
  39.  
  40. begin{document}
  41.  
  42. section{Example Section}
  43. begin{enumerate}
  44. item The boat shall have:
  45. begin{enumerate}
  46. item One hull,
  47. item One mast, and
  48. item One main sail.
  49. end{enumerate}
  50. item The boat shall be no longer than 75 feet.
  51. end{enumerate}
  52. glsaddall
  53. printglossary[style=mylong,title=Definition,toctitle=Notation]
  54.  
  55. end{document}
Add Comment
Please, Sign In to add comment