Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. documentclass[a4paper, 10pt, onecolumn, openany]{memoir}
  2.  
  3. usepackage[T1]{fontenc}
  4. usepackage[english]{babel}
  5. usepackage[final]{microtype}
  6. usepackage{amsmath,amssymb,mathtools} % Math
  7. usepackage{amsmath}
  8. usepackage{amsfonts}
  9. usepackage{amssymb}
  10. usepackage{makeidx}
  11. usepackage{graphicx}
  12. usepackage{lmodern}
  13. usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
  14. usepackage[hidelinks]{hyperref}
  15. usepackage{textcomp}
  16. usepackage[svgnames]{xcolor}
  17. usepackage{amsthm}
  18. usepackage{thmtools}
  19.  
  20.  
  21. setlrmarginsandblock{0.15paperwidth}{*}{1} % Left and right margin
  22. setulmarginsandblock{0.2paperwidth}{*}{1} % Upper and lower margin
  23. checkandfixthelayout
  24.  
  25.  
  26. maxsecnumdepth{subsection} % Subsections (and higher) are numbered
  27. setsecnumdepth{subsection}
  28.  
  29. makeatletter
  30.  
  31.  
  32.  
  33. makechapterstyle{standard}
  34. {
  35. setlength{beforechapskip}{0baselineskip}
  36. setlength{midchapskip}{1baselineskip}
  37. setlength{afterchapskip}{3baselineskip}
  38. renewcommand{chapterheadstart}{vspace*{beforechapskip}}
  39. renewcommand{chapnamefont}{centeringnormalfontLarge}
  40. renewcommand{printchaptername}{chapnamefont @chapapp}
  41. renewcommand{chapternamenum}{space}
  42. renewcommand{chapnumfont}{normalfontLarge}
  43. renewcommand{printchapternum}{chapnumfont thechapter}
  44. renewcommand{afterchapternum}{parnobreakvskip midchapskip}
  45. renewcommand{printchapternonum}{vspace*{midchapskip}vspace*{5mm}}
  46. renewcommand{chaptitlefont}{centeringbfseriesLARGE}
  47. renewcommand{printchaptertitle}[1]{chaptitlefont ##1}
  48. renewcommand{afterchaptertitle}{parnobreakvskip afterchapskip}
  49. }
  50. makeatother
  51.  
  52. chapterstyle{standard}
  53.  
  54. setsecheadstyle{normalfontlargebfseries}
  55. setsubsecheadstyle{normalfontnormalsizebfseries}
  56. setparaheadstyle{normalfontnormalsizebfseries}
  57. setparaindent{0pt}setafterparaskip{0pt}
  58.  
  59. makeatletter
  60. renewcommandfps@figure{htbp}
  61. renewcommandfps@table{htbp}
  62. makeatother
  63.  
  64. captiondelim{space }
  65. captionnamefont{smallbfseries}
  66. captiontitlefont{smallnormalfont}
  67.  
  68. changecaptionwidth
  69. captionwidth{1textwidth}
  70.  
  71.  
  72. renewcommand{abstractnamefont}{normalfontsmallbfseries}
  73. setlength{absleftindent}{0.1textwidth}
  74. setlength{absrightindent}{absleftindent}
  75.  
  76. makepagestyle{standard}
  77.  
  78. makeatletter
  79. makeevenfoot{standard}{}{}{}
  80. makeoddfoot{standard}{}{}{}
  81. makeevenhead{standard}{bfseriesthepagenormalfontqquadsmallleftmark}{}{}
  82. makeoddhead{standard}{}{}{smallrightmarkqquadbfseriesthepage}
  83.  
  84. makeatother
  85.  
  86. makeatletter
  87. makepsmarks{standard}{
  88. createmark{chapter}{both}{shownumber}{@chapapp }{ quad }
  89. createmark{section}{right}{shownumber}{}{ quad }
  90. createplainmark{toc}{both}{contentsname}
  91. createplainmark{lof}{both}{listfigurename}
  92. createplainmark{lot}{both}{listtablename}
  93. createplainmark{bib}{both}{bibname}
  94. createplainmark{index}{both}{indexname}
  95. createplainmark{glossary}{both}{glossaryname}
  96. }
  97. makeatother
  98.  
  99. makepagestyle{chap}
  100.  
  101. makeatletter
  102. makeevenfoot{chap}{}{smallbfseriesthepage}{}
  103. makeoddfoot{chap}{}{smallbfseriesthepage}{}
  104. makeevenhead{chap}{}{}{}
  105. makeoddhead{chap}{}{}{}
  106.  
  107. makeatother
  108.  
  109. nouppercaseheads
  110. pagestyle{standard}
  111. aliaspagestyle{chapter}{chap}
  112.  
  113.  
  114. maxtocdepth{subsection} % Only parts, chapters and sections in the table of contents
  115. settocdepth{subsection}
  116.  
  117. AtEndDocument{addtocontents{toc}{par}} % Add a par to the end of the TOC
  118.  
  119. author{author name}
  120. title{Title}
  121. date{June}%delete date
  122.  
  123.  
  124. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  125.  
  126.  
  127. theoremstyle{definition}
  128. newtheorem{definition}{Definition}[section]
  129. renewcommand{thedefinition}{thesection$text{.}$arabic{definition}}
  130.  
  131.  
  132. theoremstyle{theorem}
  133. newtheorem{theorem}[definition]{Theorem}
  134.  
  135. begin{document}
  136.  
  137. frontmatter
  138.  
  139. maketitle
  140.  
  141. newpage
  142. pagenumbering{arabic}
  143.  
  144. begin{abstract}
  145. test
  146. end{abstract}
  147. clearpage
  148.  
  149. tableofcontents*
  150. clearpage
  151.  
  152. setsecnumdepth{subsection}
  153.  
  154.  
  155. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  156.  
  157. chapter{Title of chapter}
  158.  
  159. This is a text
  160.  
  161. begin{theorem}
  162. this is a theorem.
  163. end{theorem}
  164.  
  165. appendix
  166. backmatter
  167. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement