[format] feat: split math.tex format

create base.tex to have a generic format file
This commit is contained in:
David JULIEN 2021-11-25 11:08:06 +01:00
parent aab8474e7b
commit 6aa85e15b6
2 changed files with 47 additions and 44 deletions

43
format/base.tex Normal file
View 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}

View File

@ -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}