Guest User

Untitled

a guest
Nov 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1. documentclass[ms,twoside, 12pt]{thesis}
  2.  
  3. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  4. % The following file defines the inclusion of packages and some other required commands
  5.  
  6. input{setting}
  7.  
  8. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  9. % The following file defines the settings for including List of Abbreviations
  10.  
  11. input{set_loa}
  12.  
  13. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  14. % The following file defines the list of abbreviations
  15.  
  16. input{loa}
  17.  
  18. begin{document}
  19.  
  20. begin{preamble}
  21.  
  22. %Printing list of symbols and abbreviations
  23. %setting the width of the labels the same as 2.5cm as required by DGS template
  24. setlist[description]{leftmargin=!, labelwidth=2.5cm, font=normalfont} %
  25. {setstretch{1.5}%
  26. %
  27. newpage
  28. phantomsection
  29. printglossary[title=LIST OF SYMBOLS, toctitle=LIST OF SYMBOLS, nogroupskip] %
  30. %
  31. newpage%
  32. phantomsection
  33. printglossary[title=LIST OF ABBREVIATIONS, toctitle=LIST OF ABBREVIATIONS,type=acronymtype,
  34. nogroupskip] %
  35. setstretch{2}%
  36. }%
  37. setlist[description]{style=standard} %
  38. %
  39. % The following file defines the Thesis abstract
  40.  
  41.  
  42. end{preamble}
  43.  
  44. end{document}
  45.  
  46. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  47.  
  48. %% The following is the list of most commonly used packages. If more / other packages are needed they are
  49. %% to be added immediately after the following list.
  50. usepackage{graphicx}
  51. usepackage{latexsym}
  52. usepackage{amsmath,epsfig}
  53. usepackage{epstopdf}
  54.  
  55. usepackage{graphicx}
  56. usepackage{epsfig}
  57. usepackage{graphicx}
  58. usepackage{latexsym}
  59. usepackage{amsmath}
  60. usepackage{amssymb}
  61. usepackage{mhsetup}
  62. usepackage{mathtools}
  63. usepackage{mathrsfs}
  64. usepackage{float}
  65. usepackage{xfrac}
  66. usepackage{epsfig}
  67.  
  68. %The polyglossia package allows for using Arabic and English together in one document.
  69. %IMPORTANT: polyglossia is only compatible with XeLaTeX
  70. usepackage{polyglossia}%
  71. setmainlanguage{english}%
  72. %This handles a bug due to polyglossia which corrupts the maketitle command in hyperref
  73. letkeptmaketitlemaketitle%
  74. %This allows navigation using links
  75. usepackage{hyperref}
  76. hypersetup{
  77. colorlinks,
  78. citecolor=blue,
  79. filecolor=blue,
  80. linkcolor=blue,
  81. urlcolor=blue,
  82. hidelinks=false %use this to change color of hyperlinks
  83. }
  84. %This package is used to get the correct formatting of the list of abbreviations and list of symbols using glossaries
  85. usepackage{enumitem}
  86. %--------------------------------------------------
  87. % Needed to insert empty page between title and committe page in double sided document
  88. newcommand{clearemptydoublepage}{%
  89. clearpage
  90. {pagestyle{empty}cleardoublepage}%
  91. }
  92. %--------------------------------------------------
  93.  
  94. %% The following is required for References
  95.  
  96. addto{captionsenglish}{%
  97. renewcommand{bibname}{REFERENCES}
  98. }
  99.  
  100. %% Thefollowing are the most common figure file extensions
  101.  
  102. DeclareGraphicsExtensions{.pdf,.png,.jpg, .eps}
  103.  
  104. %glossaries package for list of symbols and list of abbreviations
  105. usepackage[xindy,toc,acronym,nonumberlist,nopostdot]{glossaries}
  106. renewcommand*{glsclearpage}{}% to remove empty pages before the list of abbreviations and list of symbols
  107.  
  108. %to use the glossaries package, the symbols and acronyms have to be defined first
  109. %SYMBOLS: Symbols can be defined using the following code
  110. newcommand{sym}[4]{%This command can be used to define a symbol as explain below
  111. newglossaryentry{#1}{%
  112. name={#2},
  113. description={#3},
  114. symbol={#2},
  115. sort={#4}
  116. }%
  117. }%
  118. %The format for defining a symbol is as follows
  119. %sym{label}{symbol}{description}{alphabetical sorting name}
  120. %label: This will be used later on in the main body to use the symbol
  121. %symbol: The actual symbol to be used
  122. %description: The description of the symbol
  123. %alphabetical sorting name: This name will be used to sort the symbol in alphabetical order if desired
  124. %example symbol definition
  125. sym{mysymbol}{ensuremath{Gamma}}{This is a symbol}{gamma}
  126.  
  127. %An acronym or abbreviation can be defined as follows
  128. %newacronym{label}{short}{long}
  129. %label: this will be used to call the acronym in the main body
  130. %short: the acronym
  131. %long: the full form of the acronym
  132. %example acronym
  133. newacronym{phd}{Ph.D.}{Doctor of Philosophy}
  134.  
  135.  
  136. makeglossaries
Add Comment
Please, Sign In to add comment