Files
LaTeX-Package/src/article_settings.tex
2025-05-03 17:50:32 +02:00

79 lines
2.6 KiB
TeX

%[TLP:CLEAR]
% MANCHOT
%
% Manchot is an Astrophysics package aNd Class to Help writing dOcuments in Tex
% (MANCHOT)
%
%@ Author: Moussouni, Yaël (MSc student; yael.moussouni@etu.unistra.fr)
%@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique
% de Strasbourg, UMR 7550, F-67000 Strasbourg, France
%@ Date: 2025-05-03
%
% Licence:
% MSc2 Internship: SMACS Cluster
% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
%
% article_settings.tex
% Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program. If not, see www.gnu.org/licenses/.
\pagecolor{bg}
\color{fg}
\AddToHook{shipout/lastpage}{\label{LastPage}}
\pagestyle{fancy}
\fancyhead[L]{{\footnotesize\yii@headtopleft\\\yii@headbottomleft}}
\fancyhead[R]{{\footnotesize\yii@headtopright\\\yii@headbottomright}}
\fancyfoot[C]{\thepage\ / \pageref*{LastPage}}
\AddToHook{shipout/background}{\put(1.3cm, -0.3\paperheight){\rotatebox[origin=c]{90}{{\large \normalfont \textbf{\textcolor{bright-red}{\yii@warning}}}}}}
\fancypagestyle{plain}{\fancyhead{}\renewcommand{\headrule}{}} % Correct foot in plain style
\title{\yii@title\\\yii@subtitle}
\author{\yii@author\\\yii@institution\\\yii@division}
\date{\yii@date}
\ifbright
\ifdark
\colorlet{cold-fg}{bright-light-blue}
\colorlet{cold-bg}{bright-blue}
\colorlet{warm-fg}{bright-yellow}
\colorlet{warm-bg}{bright-red}
\else
\colorlet{cold-fg}{bright-blue}
\colorlet{cold-bg}{bright-light-blue}
\colorlet{warm-fg}{bright-red}
\colorlet{warm-bg}{bright-yellow}
\fi
\else
\ifdark
\colorlet{cold-fg}{colour-light-blue}
\colorlet{cold-bg}{colour-blue}
\colorlet{warm-fg}{colour-yellow}
\colorlet{warm-bg}{colour-red}
\else
\colorlet{cold-fg}{colour-blue}
\colorlet{cold-bg}{colour-light-blue}
\colorlet{warm-fg}{colour-red}
\colorlet{warm-bg}{colour-yellow}
\fi
\fi
\hypersetup{unicode, colorlinks=true,linkcolor=cold-fg, citecolor=cold-fg, filecolor=cold-fg, urlcolor=cold-fg}
\setlength{\columnsep}{1cm}