Template_These_MathSTIC/figures/stdl_preamble.tex
2022-12-02 19:18:41 +01:00

50 lines
1.1 KiB
TeX

%%%%%%%%%%%%
%
% @file: osi_layers_stdl.tex
% @author: Camille Monière
% @year: 2022
% @license: CC-BY 4.0
%
% This file is licensed under the Creative Commons Attribution 4.0 International License.
% To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/ or send a letter to Creative Commons,
% PO Box 1866, Mountain View, CA 94042, USA.
%
%%%%%%%%%%%%
\usepackage{amsmath,amssymb,amsfonts}
\usetikzlibrary{calc,
fit,
shapes.misc,
shapes.geometric,
arrows.meta,
fadings,
matrix,
chains,
scopes,
positioning}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\pgfplotsset{compat=1.18}
\usepackage[]{fontspec}
\setmainfont{Latin Modern Roman}
\setmonofont{Latin Modern Math}
%% To ensure math are printed correctly
\renewcommand{\textsc}[1]{{\fontfamily{lmr}\selectfont \scshape #1}}
%% To allow bold math symbols
\usepackage[]{bm}
%% To fix inputs of file within sub-files
\makeatletter
\@ifundefined{fromRoot}{\newcommand{\fromRoot}[1]{../../#1}}{}
\def\input@path{{../..}{..}{.}{./svg}{./pgfplots}{./tikzpicture}}
%or: \def\input@path{{/path/to/folder/}{/path/to/other/folder/}}
\makeatother
\input{commands.tex}