Advertisement
Guest User

Untitled

a guest
Aug 14th, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{titlesec}
  3.  
  4. setcounter{secnumdepth}{4}
  5.  
  6. titleformat{paragraph}
  7. {normalfontnormalsizebfseries}{theparagraph}{1em}{}
  8. titlespacing*{paragraph}
  9. {0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
  10.  
  11. begin{document}
  12.  
  13. section{Test Section}
  14. test
  15. subsection{Test Subsection}
  16. test
  17. subsubsection{Test Subsubsection}
  18. test
  19. paragraph{Test Modified Paragraph}
  20. test
  21.  
  22. end{document}
  23.  
  24. documentclass{article}
  25. usepackage{titlesec}
  26. usepackage{hyperref}
  27.  
  28. titleclass{subsubsubsection}{straight}[subsection]
  29.  
  30. newcounter{subsubsubsection}[subsubsection]
  31. renewcommandthesubsubsubsection{thesubsubsection.arabic{subsubsubsection}}
  32. renewcommandtheparagraph{thesubsubsubsection.arabic{paragraph}} % optional; useful if paragraphs are to be numbered
  33.  
  34. titleformat{subsubsubsection}
  35. {normalfontnormalsizebfseries}{thesubsubsubsection}{1em}{}
  36. titlespacing*{subsubsubsection}
  37. {0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
  38.  
  39. makeatletter
  40. renewcommandparagraph{@startsection{paragraph}{5}{z@}%
  41. {3.25ex @plus1ex @minus.2ex}%
  42. {-1em}%
  43. {normalfontnormalsizebfseries}}
  44. renewcommandsubparagraph{@startsection{subparagraph}{6}{parindent}%
  45. {3.25ex @plus1ex @minus .2ex}%
  46. {-1em}%
  47. {normalfontnormalsizebfseries}}
  48. deftoclevel@subsubsubsection{4}
  49. deftoclevel@paragraph{5}
  50. deftoclevel@paragraph{6}
  51. defl@subsubsubsection{@dottedtocline{4}{7em}{4em}}
  52. defl@paragraph{@dottedtocline{5}{10em}{5em}}
  53. defl@subparagraph{@dottedtocline{6}{14em}{6em}}
  54. makeatother
  55.  
  56. setcounter{secnumdepth}{4}
  57. setcounter{tocdepth}{4}
  58.  
  59. begin{document}
  60.  
  61. tableofcontents
  62. section{Test Section}
  63. test
  64. subsection{Test Subsection}
  65. test
  66. subsubsection{Test Subsubsection}
  67. test
  68. subsubsubsection{Test Subsubsubsection}
  69. test
  70. paragraph{Test Paragraph}
  71. test
  72. subparagraph{Test Subparagraph}
  73. test
  74.  
  75. end{document}
  76.  
  77. newcommandsubsubsection{@startsection{subsubsection}{3}{z@}%
  78. {-3.25ex@plus -1ex @minus -.2ex}%
  79. {1.5ex @plus .2ex}%
  80. {normalfontnormalsizebfseries}}
  81. newcommandparagraph{@startsection{paragraph}{4}{z@}%
  82. {3.25ex @plus1ex @minus.2ex}%
  83. {-1em}%
  84. {normalfontnormalsizebfseries}}
  85.  
  86. documentclass{article}
  87. makeatletter
  88. renewcommandparagraph{@startsection{paragraph}{4}{z@}%
  89. {-2.5ex@plus -1ex @minus -.25ex}%
  90. {1.25ex @plus .25ex}%
  91. {normalfontnormalsizebfseries}}
  92. makeatother
  93. setcounter{secnumdepth}{4} % how many sectioning levels to assign numbers to
  94. setcounter{tocdepth}{4} % how many sectioning levels to show in ToC
  95.  
  96. begin{document}
  97. tableofcontents
  98. section{A}
  99. subsection{B}
  100. subsubsection{C1}
  101. paragraph{D1}
  102. paragraph{D2}
  103. subsubsection{C2}
  104. end{document}
  105.  
  106. documentclass[article,oneside]{memoir}
  107. setcounter{secnumdepth}{5} % Note that part is -1 level !
  108. setcounter{tocdepth}{5}
  109. begin{document}
  110. begingroup
  111. letclearpagerelax
  112. letnewpagerelax
  113. tableofcontents*
  114. part{Part}
  115. endgroup
  116. chapter{Chapter} Text.
  117. section{Section} Text.
  118. subsection{Subsection} Text.
  119. subsubsection{Subsubsection} Text.
  120. paragraph{Paragraph} Text.
  121. subparagraph{Subparagraph} Text.
  122. end{document}
  123.  
  124. newcommand{subsubsubsection}[1]{paragraph{#1}mbox{}\}
  125. setcounter{secnumdepth}{4}
  126. setcounter{tocdepth}{4}
  127.  
  128. subsubsubsection{Navigator}
  129.  
  130. RedeclareSectionCommand[runin=false,afterskip=1ex,afterindent=false]{paragraph}
  131.  
  132. setcounter{secnumdepth}{paragraphnumdepth}
  133.  
  134. RedeclareSectionCommand[indent=0pt,runin=false,afterskip=1ex,afterindent=false]{subparagraph}
  135.  
  136. DeclareNewSectionCommand[style=section,level=numexpr subparagraphnumdepth+1relax,runin=false,beforeskip=1ex,afterskip=0pt,afterindent=false]{subsubparagraph}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement