2022-07-21 12:33:53 +02:00
|
|
|
% Copyright 2022 bursa-pastoris
|
|
|
|
%
|
|
|
|
% Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
|
|
% this software and associated documentation files (the "Software"), to deal in
|
|
|
|
% the Software without restriction, including without limitation the rights to
|
|
|
|
% use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
|
|
% of the Software, and to permit persons to whom the Software is furnished to do
|
|
|
|
% so, subject to the following conditions:
|
|
|
|
%
|
|
|
|
% The above copyright notice and this permission notice shall be included in all
|
|
|
|
% copies or substantial portions of the Software.
|
|
|
|
%
|
|
|
|
% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
% SOFTWARE.
|
|
|
|
%
|
|
|
|
% ---
|
|
|
|
%
|
|
|
|
% This class' repository is available at https://git.disroot.org/bursa-pastoris/uninotes.
|
|
|
|
|
2022-07-20 20:10:16 +02:00
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
|
|
\ProvidesClass{uninotes}[2022/06/01 University notes class]
|
|
|
|
\LoadClass{scrbook}
|
|
|
|
\KOMAoptions{headinclude=true,footinclude=true}
|
|
|
|
|
|
|
|
\RequirePackage[utf8]{inputenc}
|
|
|
|
\RequirePackage[T1]{fontenc}
|
|
|
|
|
|
|
|
% Language
|
|
|
|
\RequirePackage{babel}
|
|
|
|
|
|
|
|
% Appearance
|
|
|
|
\RequirePackage{classicthesis}
|
|
|
|
\RequirePackage{arsclassica}
|
2022-07-21 11:55:28 +02:00
|
|
|
\RequirePackage[symbol,bottom]{footmisc}
|
|
|
|
\DefineFNsymbols{uninotesfn}{{*}{$\dagger$}{$\ddagger$}{$\S$}%
|
|
|
|
{**}{$\dagger\dagger$}{$\ddagger\ddagger$}{$\S\S$}%
|
|
|
|
{***}{$\dagger\dagger\dagger$}{$\ddagger\ddagger\ddagger$}{$\S\S\S$}}
|
|
|
|
\setfnsymbol{uninotesfn}
|
2022-07-20 20:10:16 +02:00
|
|
|
|
2023-03-01 18:24:51 +01:00
|
|
|
% Tables, numbers, units of measurement
|
2022-07-20 20:10:16 +02:00
|
|
|
\RequirePackage{booktabs}
|
|
|
|
\RequirePackage{tabularx}
|
2023-03-01 18:24:51 +01:00
|
|
|
|
|
|
|
\RequirePackage{eurosym}
|
|
|
|
|
2022-07-20 20:10:16 +02:00
|
|
|
\RequirePackage{siunitx}
|
2022-09-02 21:17:34 +02:00
|
|
|
\sisetup{output-decimal-marker={,},
|
|
|
|
range-phrase={-},
|
|
|
|
range-units=single}
|
2023-03-01 18:24:51 +01:00
|
|
|
\DeclareSIUnit{\cal}{cal}
|
|
|
|
\DeclareSIUnit{\eur}{\geneuro{}}
|
|
|
|
\DeclareSIUnit{\litre}{l}
|
|
|
|
\DeclareSIUnit{\quintal}{q}
|
2022-07-20 20:10:16 +02:00
|
|
|
|
|
|
|
% Figures
|
|
|
|
\RequirePackage{graphicx}
|
|
|
|
\RequirePackage{subfig}
|
2022-09-02 22:07:47 +02:00
|
|
|
\RequirePackage[inkscapelatex=no,
|
|
|
|
inkscapepath={.svg_export}]{svg}
|
2022-07-20 20:10:16 +02:00
|
|
|
|
|
|
|
% Floats
|
|
|
|
\RequirePackage{caption}
|
|
|
|
\captionsetup{tableposition=top,%
|
|
|
|
figureposition=bottom,%
|
|
|
|
labelfont={sf,bf}}
|
|
|
|
|
2022-07-22 16:36:56 +02:00
|
|
|
% Index
|
|
|
|
\usepackage{imakeidx}
|
|
|
|
\makeindex[intoc,columns=2]
|
|
|
|
|
2022-07-21 11:55:28 +02:00
|
|
|
% Table of contents
|
2022-09-06 15:54:42 +02:00
|
|
|
\setcounter{tocdepth}{2}
|
2022-07-21 11:55:28 +02:00
|
|
|
|
2022-07-20 20:10:16 +02:00
|
|
|
% Math
|
|
|
|
\renewcommand{\epsilon}{\varepsilon}
|
|
|
|
\renewcommand{\theta}{\vartheta}
|
|
|
|
\renewcommand{\varpi}{\pi}
|
|
|
|
\renewcommand{\varrho}{\rho}
|
|
|
|
\renewcommand{\varsigma}{\sigma}
|
|
|
|
\renewcommand{\phi}{\varphi}
|
|
|
|
|
|
|
|
% Chemistry
|
|
|
|
\RequirePackage{chemformula}
|
|
|
|
|
2022-07-21 11:42:01 +02:00
|
|
|
% Bibliography
|
|
|
|
\usepackage[autostyle,italian=guillemets]{csquotes}
|
|
|
|
\usepackage[bibstyle=numeric,%
|
|
|
|
citestyle=numeric-comp,%
|
|
|
|
babel=hyphen,%
|
|
|
|
backend=biber]%
|
|
|
|
{biblatex}
|
|
|
|
|
2022-07-20 20:10:16 +02:00
|
|
|
% (Hyper)References
|
|
|
|
\RequirePackage{hyperref}
|
|
|
|
\RequirePackage{varioref}
|
|
|
|
\RequirePackage[noabbrev]{cleveref}
|
2022-07-20 20:11:19 +02:00
|
|
|
\creflabelformat{equation}{#2#1#3}
|
2022-07-20 20:12:21 +02:00
|
|
|
\AddBabelHook[italian]{translate}{patterns}%
|
|
|
|
{\crefname{section}{paragrafo}{paragrafi}%
|
|
|
|
\Crefname{section}{Paragrafo}{Paragrafi}}
|
2022-07-20 20:13:34 +02:00
|
|
|
\RequirePackage[nodocdata=false,
|
|
|
|
noeditdata=true,
|
|
|
|
noproducerdata=true,
|
|
|
|
noptexdata=true,
|
|
|
|
nopdftrailerid=true]%
|
|
|
|
{pdfprivacy}
|
2022-07-21 11:43:04 +02:00
|
|
|
|
2022-07-21 11:55:28 +02:00
|
|
|
% Other features
|
|
|
|
\DeclareRobustCommand{\mail}[1]{\href{mailto:#1}{\texttt{#1}}}
|
2022-09-02 21:14:12 +02:00
|
|
|
\providecommand{\sn}[1]{\emph{#1}} % Scientific names
|
2022-07-21 11:51:57 +02:00
|
|
|
\providecommand{\en}[1]{\emph{\foreignlanguage{english}{#1}}}
|