Guest User

Untitled

a guest
Jul 20th, 2024
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 5.38 KB | Source Code | 0 0
  1. \renewcommand{\paragraph}[1]{
  2.     \refstepcounter{paragraph}
  3.     \setcounter{subparagraph}{0}
  4.     {\centering\textsc{\Roman{section}.\Roman{subsection}.\Roman{subsubsection}.\Roman{paragraph}. #1}\par}
  5. }
  6.  
  7. \renewcommand{\subparagraph}[1]{
  8.     \refstepcounter{subparagraph}
  9.     {\centering\textsc{\Roman{section}.\Roman{subsection}.\Roman{subsubsection}.\Roman{paragraph}.\Roman{subparagraph}. #1}\par}
  10. }
  11.  
  12. \renewcommand{\paragraph}[1]{
  13.     \refstepcounter{paragraph}
  14.     \setcounter{subparagraph}{0}
  15.     {\centering\textsc{\Roman{section}.\Roman{subsection}.\Roman{subsubsection}.\Roman{paragraph}. #1}\par}
  16. }
  17.  
  18. \renewcommand{\subparagraph}[1]{
  19.     \refstepcounter{subparagraph}
  20.     {\centering\textsc{\Roman{section}.\Roman{subsection}.\Roman{subsubsection}.\Roman{paragraph}.\Roman{subparagraph}. #1}\par}
  21. }
  22.  
  23. % Document Class And Settings %
  24.  
  25. \documentclass[
  26.     letterpaper,
  27.     12pt
  28. ]{article}
  29.  
  30. % Packages %
  31.  
  32. % \usepackage{graphicx}
  33. % \usepackage{showframe}
  34. % \usepackage{tikz} % loads pgf and pgffor
  35. % \usepackage{pgfplots}
  36. % \usepackage{amssymb} % already loads amsfonts
  37. % \usepackage{thmtools}
  38. % \usepackage{amsthm}
  39. % \usepackage{newfloat} % replaces float
  40. \usepackage[
  41.     left=1.5cm,
  42.     right=1.5cm,
  43.     top=1.5cm,
  44.     bottom=1.5cm
  45. ]{geometry}
  46. \usepackage{indentfirst}
  47. % \usepackage{setspace}
  48. % \usepackage{lua-ul} % better for lualatex than soul
  49. % \usepackage[
  50. %     backend=biber
  51. % ]{biblatex}
  52. % \usepackage{subcaption} % has caption
  53. % \usepackage{cancel}
  54. % \usepackage{stackengine}
  55. % \usepackage{hyperref}
  56. % \usepackage{cleveref}
  57. % \usepackage[
  58. %     version=4
  59. % ]{mhchem}
  60. % \usepackage{pdfpages}
  61. % \usepackage{siunitx}
  62. \usepackage{fancyhdr}
  63. % \usepackage{mhsetup}
  64. % \usepackage{mathtools} % loads amsmath and graphicx
  65. % \usepackage{empheq}
  66. % \usepackage{derivative}
  67. % \usepackage{tensor}
  68. % \usepackage{xcolor}
  69. % \usepackage{tcolorbox}
  70. % \usepackage{multirow} % might not need
  71. % \usepackage{adjustbox} % better than rotating?
  72. % \usepackage{tabularray}
  73. % \usepackage{nicematrix} % loads array, l3keys2e, pgfcore, amsmath, and module shapes of pgf
  74. % \usepackage{enumitem}
  75. % \usepackage{ragged2e}
  76. % \usepackage{verbatim}
  77. % \usepackage{circledsteps}
  78. % \usepackage{titlesec} % might add titleps and titletoc
  79. % \usepackage{csquotes}
  80. \usepackage{microtype}
  81. \usepackage{lipsum}
  82. \usepackage[
  83.     warnings-off={mathtools-colon,mathtools-overbracket}
  84. ]{unicode-math} % loads fontspec, and takes away the warning for the unicode-math & mathtools clash
  85. % \usepackage[
  86. %     main=english
  87. % ]{babel} % english is using american english
  88.  
  89. % Commands And Envirionments %
  90.  
  91. \makeatletter
  92. \renewcommand{\maketitle}{
  93.     {\centering
  94.     \normalsize{\@title} \par
  95.     \normalsize{\@author} \par
  96.     \normalsize{\@date} \\ \vspace{\baselineskip}
  97.     }
  98. }
  99. \makeatother
  100.  
  101. \renewcommand{\section}[1]{
  102.     \refstepcounter{section}
  103.     \setcounter{subsection}{0}
  104.     \setcounter{subsubsection}{0}
  105.     \setcounter{paragraph}{0}
  106.     \setcounter{subparagraph}{0}
  107.     {\centering\textsc{\Roman{section}. #1}\par}
  108. }
  109.  
  110. \renewcommand{\subsection}[1]{
  111.     \refstepcounter{subsection}
  112.     \setcounter{subsubsection}{0}
  113.     \setcounter{paragraph}{0}
  114.     \setcounter{subparagraph}{0}
  115.     {\centering\textsc{\Roman{section}.\Roman{subsection}. #1}\par}
  116. }
  117.  
  118. \renewcommand{\subsubsection}[1]{
  119.     \refstepcounter{subsubsection}
  120.     \setcounter{paragraph}{0}
  121.     \setcounter{subparagraph}{0}
  122.     {\centering\textsc{\Roman{section}.\Roman{subsection}.\Roman{subsubsection}. #1}\par}
  123. }
  124.  
  125. \renewcommand{\paragraph}[1]{
  126.     \refstepcounter{paragraph}
  127.     \setcounter{subparagraph}{0}
  128. {\centering\textsc{\Roman{section}.\Roman{subsection}.\Roman{subsubsection}.\Roman{paragraph}. #1}\par}
  129. }
  130.  
  131. \renewcommand{\subparagraph}[1]{
  132.     \refstepcounter{subparagraph}
  133.     {\centering\textsc{\Roman{section}.\Roman{subsection}.\Roman{subsubsection}.\Roman{paragraph}.\Roman{subparagraph}. #1}\par}
  134. }
  135.  
  136. \newcommand{\blk}{
  137.     \vspace{
  138.         \baselineskip
  139.     }
  140. }
  141.  
  142. \newcommand{\ds}{
  143.     \displaystyle
  144. }
  145.  
  146. % Header and Foot
  147.  
  148. \pagestyle{fancy}
  149. \fancyhf{} % clear all header and footers
  150. \cfoot{\thepage} % put the page number in the center footer
  151. \renewcommand{\headrulewidth}{
  152.     0pt
  153. } % remove the header rule
  154. \addtolength{\footskip}{
  155.     -.375cm
  156. } % shift the footer down which will shift the page number up
  157.  
  158. % Final Settings %
  159.  
  160. \setlength\parindent{.25cm}
  161. % \setlength{\jot}{
  162.     % .25cm
  163. % } % spaces inbetween align, gather, etc
  164. % \pgfplotsset{compat=1.18}
  165. % \UseTblrLibrary{booktabs}
  166. % \newlength{\tblrwidth}
  167. % \setlength{\tblrwidth}{
  168.     % \dimexpr\linewidth-2\parindent
  169. % }
  170. % \newlist{checkboxlist}{itemize}{1}
  171. % \setlist[checkboxlist]{label=$\square$} % requires asmsymb
  172. % \newlist{alphabetization}{enumerate}{1}
  173. % \setlist[alphabetization]{label=\alph*.)}
  174. % \setlist{nosep}
  175. % \declaretheorem{theorem}
  176.  
  177. % Fonts and Languages %
  178.  
  179. \setmainfont{Times.ttf}[
  180.     Ligatures=TeX,
  181.     BoldFont=Timesbd.ttf,
  182.     ItalicFont=Timesi.ttf,
  183.     BoldItalicFont=Timesbi.ttf
  184. ]
  185. \setmathfont{STIXTwoMath-Regular.otf}
  186. % \newfontfamily\secondfont{STIX Two Text}[
  187. %     Ligatures=TeX
  188. % ]
  189. % \babelprovide[
  190. %     import=es-MX
  191. % ]{spanish}
  192.  
  193. % maketitle %
  194.  
  195. \title{}
  196. \author{u/FattenedSponge}
  197. \date{\today}
  198.  
  199. \begin{document}
  200.  
  201. \maketitle
  202.  
  203.  
  204.  
  205. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment