Commit 9492330b authored by Maxime Bombar's avatar Maxime Bombar

Initial Commit

parents
\usepackage{xcolor}
\usepackage{mdframed}
%% "section" option numbers theorems with respect to the current section
%%
%% 1- Section
%% Theorem 1.1
%% Theorem 1.2
%% 2- Section
%% Theorem 2.1
%%
\newtheorem{default}{default}[section]
%% To change a theorem background, simply add background=$color
%% where $color is the name of a color, either existing or defined via \defincolor :
%% \definecolor{light-gray}{gray}{0.95}
%% \definecolor{mostly-white}{gray}{0.97}
\newmdtheoremenv[%
topline=false,
rightline=false,
leftline=false,
bottomline=false]{results}[default]{Results}
\newmdtheoremenv[%
topline=false,
rightline=false,
leftline=false,
bottomline=false]{thm}[default]{Theorem}
\newmdtheoremenv[%
topline=false,
rightline=false,
leftline=false,
bottomline=false]{prop}[default]{Proposition}
\newmdtheoremenv[%
topline=false,
rightline=false,
leftline=false,
bottomline=false]{lem}[default]{Lemma}
\newmdtheoremenv[%
topline=false,
rightline=false,
leftline=false,
bottomline=false]{cor}[default]{Corollary}
\theoremstyle{definition}
\newmdtheoremenv[%
topline=false,
rightline=false,
leftline=false,
bottomline=false]{rem}[default]{Remark}
\newmdtheoremenv[%
topline=false,
rightline=false,
leftline=false,
bottomline=false]{defi}[default]{Definition}
\newmdtheoremenv[%
topline=false,
rightline=false,
leftline=false,
bottomline=false]{hyp}[default]{Hypothesis}
% Abstract %
\makeatletter %useful hack : changes default code for @ from 12 to 11; \makeatother turns it back
\newenvironment{chapabstract}{%
\begin{center}%
\bfseries Abstract
\end{center}}%
{\par}
\makeatother
% Appendix %
\usepackage[toc,page]{appendix}
% Useful shortcuts %
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\Nstar}{\mathbb{N}^{\ast}}
\newcommand{\K}{\mathcal{K}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Rplus}{\mathbb{R}^{+}}
\newcommand{\Rstar}{\mathbb{R}_{\ast}}
\newcommand{\Rplusstar}{\mathbb{R}_{\ast}^{+}}
\newcommand{\Prop}{\mathbb{P}}
\newcommand{\eps}{\epsilon}
\newcommand{\grad}{\nabla}
% To define a function
\newcommand{\fun}[5]{#1 : \left \{ \begin{aligned} #2 & \to #3 \\ #4 & \mapsto #5\end{aligned}\right. \phantom{\hspace{10cm}}}
\usepackage{xcolor}
\usepackage{mdframed}
%% L'option "section" numérotte les théorèmes en fonction de la section :
%%
%% 1- Section
%% Theorem 1.1
%% Theorem 1.2
%% 2- Section
%% Theorem 2.1
%%
\newtheorem{default}{default}[section]
%% Pour changer le fond d'un théorème, rajouter l'option background=$color
%% où $color est le nom d'une couleur existante ou définie via \definecolor :
%% \definecolor{light-gray}{gray}{0.95}
%% \definecolor{mostly-white}{gray}{0.97}
\newmdtheoremenv[%
backgroundcolor=white,
topline=false,
rightline=false,
leftline=false,
bottomline=false]{results}[default]{Results}
\newmdtheoremenv[%
backgroundcolor=white,
topline=false,
rightline=false,
leftline=false,
bottomline=false]{thm}[default]{Theorem}
\newmdtheoremenv[%
backgroundcolor=white,
topline=false,
rightline=false,
leftline=false,
bottomline=false]{prop}[default]{Proposition}
\newmdtheoremenv[%
backgroundcolor=white,
topline=false,
rightline=false,
leftline=false,
bottomline=false]{lem}[default]{Lemma}
\newmdtheoremenv[%
backgroundcolor=white,
topline=false,
rightline=false,
leftline=false,
bottomline=false]{cor}[default]{Corollary}
\theoremstyle{definition}
\newmdtheoremenv[%
backgroundcolor=white,
topline=false,
rightline=false,
leftline=false,
bottomline=false]{rem}[default]{Remark}
\newmdtheoremenv[%
backgroundcolor=white,
topline=false,
rightline=false,
leftline=false,
bottomline=false]{defi}[default]{Definition}
\newmdtheoremenv[%
backgroundcolor=white,
topline=false,
rightline=false,
leftline=false,
bottomline=false]{hyp}[default]{Hypothesis}
% Abstract pour le chapitre %
\makeatletter
\newenvironment{chapabstract}{%
\begin{center}%
\bfseries Résumé
\end{center}}%
{\par}
\makeatother
% Appendices %
\usepackage[toc,page]{appendix}
% Commandes pour gagner du temps %
\newcommand{\N}{\mathbb{N}}
\newcommand{\Nstar}{\mathbb{N}^{\ast}}
\newcommand{\K}{\mathcal{K}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Rplus}{\mathbb{R}^{+}}
\newcommand{\Rstar}{\mathbb{R}_{\ast}}
\newcommand{\Rplusstar}{\mathbb{R}_{\ast}^{+}}
\newcommand{\Prop}{\mathbb{P}}
\newcommand{\eps}{\epsilon}
% Définition de fonction
\newcommand{\fun}[5]{#1 : \left \{ \begin{aligned} #2 & \to #3 \\ #4 & \mapsto #5\end{aligned}\right. \phantom{\hspace{10cm}}}
% Au cas où
\newcommand{\grad}{\nabla}
\ No newline at end of file
#!/usr/bin/make -f
#
# Requires latexmk.
PDFLATEX = latexmk -pdf $<
all: main.tex
$(PDFLATEX)
rebuild: clean all
.PHONY: clean
clean:
@echo -n "aux bbl blg fdb_latexmk fls log toc"|xargs -t -d ' ' -n 1 -I {} find . -iname "*{}" -delete
find . -iname "*~" -delete
find . -iname "\#*" -delete
find . -iname "main.pdf" -delete
find . -type d -iname 'auto' -exec rm -ri {} +
../Custom_packages/customized_commands.sty
\ No newline at end of file
\documentclass[10pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{customized_commands}
\begin{document}
\title{}
\date{\today}
\author{}
\maketitle
\end{document}
Basic repository containing templates for latex projects.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment