[format] feat: split math.tex format
create base.tex to have a generic format file
This commit is contained in:
parent
aab8474e7b
commit
6aa85e15b6
43
format/base.tex
Normal file
43
format/base.tex
Normal file
@ -0,0 +1,43 @@
|
||||
\usepackage{setspace}
|
||||
\usepackage{enumitem}
|
||||
|
||||
\renewcommand\thesection{\Roman{section}}
|
||||
\renewcommand\thesubsection{\arabic{subsection}}
|
||||
\renewcommand\thesubsubsection{\alph{subsubsection}}
|
||||
|
||||
% ------------------------------------ %
|
||||
|
||||
\usepackage{titlesec}
|
||||
|
||||
\titleformat{\section}
|
||||
{\LARGE\bfseries}
|
||||
{\thesection. }
|
||||
{0em}
|
||||
{\setstretch{0.4}}
|
||||
|
||||
\titleformat{\subsection}
|
||||
{\Large}
|
||||
{\thesubsection. }
|
||||
{0em}
|
||||
{\setstretch{0.4}}
|
||||
|
||||
\titleformat{\subsubsection}
|
||||
{}
|
||||
{\thesubsubsection \,- }
|
||||
{0em}
|
||||
{\setstretch{0.4}}
|
||||
|
||||
\setlength{\parindent}{0em}
|
||||
|
||||
% ------------------------------------ %
|
||||
|
||||
\usepackage{fancyhdr}
|
||||
|
||||
\pagestyle{fancy}
|
||||
\fancyhf{}
|
||||
\lhead{\nouppercase{\leftmark}}
|
||||
\rfoot{Page \thepage}
|
||||
|
||||
% ------------------------------------ %
|
||||
|
||||
\usepackage{dirtytalk}
|
@ -1,3 +1,7 @@
|
||||
\input{$LATEX_RESOURCES/format/base.tex}
|
||||
|
||||
% ------------------------------------ %
|
||||
|
||||
\usepackage{amsmath}
|
||||
\usepackage{amssymb}
|
||||
\usepackage{amsthm}
|
||||
@ -5,13 +9,6 @@
|
||||
\usepackage{bbold}
|
||||
\usepackage[framemethod=TikZ]{mdframed}
|
||||
|
||||
\usepackage{setspace}
|
||||
\usepackage{enumitem}
|
||||
|
||||
\renewcommand\thesection{\Roman{section}}
|
||||
\renewcommand\thesubsection{\arabic{subsection}}
|
||||
\renewcommand\thesubsubsection{\alph{subsubsection}}
|
||||
|
||||
% ------------------------------------ %
|
||||
|
||||
\newcounter{thm}\setcounter{thm}{0}
|
||||
@ -82,40 +79,3 @@
|
||||
\theoremstyle{remark}
|
||||
\newtheorem*{rmk}{Remark}
|
||||
\newtheorem*{note}{Note}
|
||||
|
||||
% ------------------------------------ %
|
||||
|
||||
\usepackage{titlesec}
|
||||
|
||||
\titleformat{\section}
|
||||
{\bfseries}
|
||||
{\thesection. }
|
||||
{0em}
|
||||
{\setstretch{0.4}}[\titlerule]
|
||||
|
||||
\titleformat{\subsection}
|
||||
{}
|
||||
{\thesubsection. }
|
||||
{0em}
|
||||
{\setstretch{0.4}}
|
||||
|
||||
\titleformat{\subsubsection}
|
||||
{}
|
||||
{\thesubsubsection \,- }
|
||||
{0em}
|
||||
{\setstretch{0.4}}
|
||||
|
||||
\setlength{\parindent}{0em}
|
||||
|
||||
% ------------------------------------ %
|
||||
|
||||
\usepackage{fancyhdr}
|
||||
|
||||
\pagestyle{fancy}
|
||||
\fancyhf{}
|
||||
\lhead{\nouppercase{\leftmark}}
|
||||
\rfoot{Page \thepage}
|
||||
|
||||
% ------------------------------------ %
|
||||
|
||||
\usepackage{dirtytalk}
|
||||
|
Loading…
Reference in New Issue
Block a user