%% mypreamble.tex %% Copyright 2022 A. Grau % % This work may be distributed and/or modified under the conditions of the LaTeX % Project Public License, either version 1.3 of this license or (at your option) % any later version, with the exception that distribution of Derived Work is not % subject to the requirements of section 6.2. % The latest version of this license is in % http://www.latex-project.org/lppl.txt % and version 1.3 or later is part of all distributions of LaTeX version % 2005/12/01 or later. % % Current version: v1.0 % Changelog: % 2022/07/08: Creation of preamble template % % This work has the LPPL maintenance status `maintained`. % % The Current Maintainer of this work is A. Grau. % % This work consists of all the files listed in the README.md, % and provides a copy of the original hosted on % https://git.tigrau.ovh/Ambroise/LaTeX-Templates/. %%% ===== Folder structure % Important packages to use in order to work with the subfiles \usepackage{xr-hyper} % cross-referencing with use of hyperref \usepackage{subfiles} % use file structure in subfolders \externaldocument{\subfix{main}} % all refs available in subfiles by \ref{labelname} as usual %% NOTE: The following code make an additional paths search %% search to simplify the calls to \subfile if you don't want %% to bother with relative paths. If you uncomment it, add %% the folders' name appropriately to the list with the {dir/} %% syntax (brackets and trailing slash). %% WARNING: This slows down compilation time A LOT!!! \makeatletter \def\input@path{ % {../Bibfiles/}{C-Begin/}{C-Middle/}{C-End/} % list of folders } \makeatother %%% ===== BEGIN OVERLEAF_EXTERNAL_DOC %% For Overleaf only, in order to allow cross referencing to work in subfiles %\makeatletter %\newcommand*{\addFileDependency}[1]{% argument=file name and extension % \typeout{(#1)} % \@addtofilelist{#1} % \IfFileExists{#1}{}{\typeout{No file #1.}} %} %\makeatother %\newcommand*{\myexternaldocument}[1]{% % \externaldocument{\subfix{#1}}% % \addFileDependency{\subfix{#1.tex}} % in general this can be left out to speed up compilation time % \addFileDependency{\subfix{#1.aux}}% %} %%% ====== END OVERLEAF_EXTERNAL_DOC %%% ===== Packages used for the purpose of this example \usepackage{verbatim} % to make the code-like elements \usepackage[math]{blindtext} % to make the auto-generated lipsum parts %%% ===== List of recommended packages you need to include \usepackage{amsmath, amsthm} \usepackage{amssymb, amsfonts} \usepackage[final]{hyperref} % links with final option to force them to appear even in draft mode \usepackage{xspace} % for automatic spaces after text commands \usepackage{xcolor} % to use colours in different parts % NOTE: Package for the todo notes. Notice that it uses multiple packages such as % ifthen, xkeyval, xcolor, tikz (w/ graphicx) and calc, and thus they need % to be called before todonotes if specific options are wanted \usepackage[obeyDraft, textsize=small, colorinlistoftodos]{todonotes} %%% ===== List the packages you want to use %% NOTE: you might need to take care of the order in which some are included, %% such as ticz/graphicx that need to go above todonotes \usepackage{mathrsfs} %for stylistic PA \usepackage{bbm} %for map identity with 1 \usepackage{url} %%% ===== Bibliography setup \usepackage[eprint, % Include information for pre-prints. doi=false, url=false, maxnames=10, % Truncate lists of more than 10 authors. giveninits=true, % Only output the initials of an author's given % names. safeinputenc % Fix for biber not playing nice with breve accents % (i.e. \u{}), see % https://tex.stackexchange.com/a/170586/27664. ]{biblatex} \addbibresource{\subfix{firstbib.bib}} %%% ===== Styling for my theorems \theoremstyle{plain} % the style for theorem, propositions and lemmas % Counter used to make it continuous numbering with subsubsection value appended \newtheorem{thm}[subsubsection]{Theorem} % name shortcut for Theorem & counter check \newtheorem{prop}[subsubsection]{Proposition} % idem for rest... \newtheorem{lem}[subsubsection]{Lemma} \newtheorem{cor}[subsubsection]{Corollary} \newtheorem{conj}[subsubsection]{Conjecture} \newtheorem{claim}{Claim} \newcounter{scount}[subsection] % counter to only go down to subsection but make it different \renewcommand{\thescount}{\arabic{subsection}.\arabic{scount}} \newtheorem{scholie}[scount]{Scholie} \theoremstyle{definition} % the style for definitions \newtheorem{defn}{Definition} % shortname \newtheorem*{defns}{Definitions} % plural shortname \theoremstyle{remark} % the style for remarks and examples \newtheorem{rem}{Remark} % shortname \newtheorem*{rem*}{Remark} % starred version \newtheorem{note}{Note} \newtheorem*{rems}{Remarks} % plural \newtheorem{ex}{Example} %%% ===== List of your own macros here \newcommand{\AG}{\ensuremath{\mathscr{A\hspace*{-3pt}{G}}}\xspace}