mirror of
https://codeberg.org/Yael-II/LaTeX-Package.git
synced 2026-03-15 04:16:27 +01:00
2025-12-19: Pass options to class for manchot-article
This commit is contained in:
@@ -31,20 +31,12 @@
|
||||
|
||||
\ProvidesClass{manchot-article}[2025-05-03]
|
||||
|
||||
\LoadClass[10pt, a4paper]{article}
|
||||
|
||||
% Required Packages
|
||||
% Initial packages
|
||||
|
||||
\RequirePackage[utf8]{inputenc} % input encoding
|
||||
\RequirePackage[T1]{fontenc} % font encoding
|
||||
\RequirePackage{geometry} % page geometry
|
||||
\RequirePackage{paracol} % multiple columns
|
||||
\RequirePackage{fancyhdr} % header and footer
|
||||
\RequirePackage{xcolor} % colours
|
||||
\RequirePackage{pagecolor} % page colours
|
||||
\RequirePackage{setspace} % spacing between lines
|
||||
\RequirePackage{cuted} % full width strip environment
|
||||
\RequirePackage{hyperref} % links, references, etc. - must be the last package
|
||||
|
||||
% Definitions
|
||||
|
||||
@@ -68,13 +60,27 @@
|
||||
\newlength\varparindent
|
||||
\newlength\varparskip
|
||||
|
||||
|
||||
\input{src/common_palette.tex}
|
||||
|
||||
% Options
|
||||
|
||||
\PassOptionsToClass{10pt}{article}
|
||||
\PassOptionsToClass{a4paper}{article}
|
||||
|
||||
\input{src/article_options.tex}
|
||||
|
||||
\LoadClass{article}
|
||||
|
||||
% Additional packages
|
||||
|
||||
\RequirePackage{geometry} % page geometry
|
||||
\RequirePackage{paracol} % multiple columns
|
||||
\RequirePackage{fancyhdr} % header and footer
|
||||
\RequirePackage{pagecolor} % page colours
|
||||
\RequirePackage{setspace} % spacing between lines
|
||||
\RequirePackage{cuted} % full width strip environment
|
||||
\RequirePackage{hyperref} % links, references, etc. - must be the last package
|
||||
|
||||
% Settings
|
||||
|
||||
\input{src/article_settings.tex}
|
||||
|
||||
@@ -94,8 +94,6 @@
|
||||
\RequirePackage{cuted} % full width strip environment
|
||||
\RequirePackage{hyperref} % links, references, etc. - must be the last package
|
||||
|
||||
|
||||
|
||||
% Settings
|
||||
|
||||
\input{src/beamer_settings.tex}
|
||||
|
||||
@@ -76,21 +76,18 @@
|
||||
}
|
||||
|
||||
\DeclareOption{onecolumn}{
|
||||
\geometry{top=3cm, bottom=3cm, left=3cm, right=3cm, headheight=1cm, headsep=0.5cm}
|
||||
\setlength\parindent{0cm} % No paragraph indent
|
||||
\setlength\parskip{\bigskipamount} % Make bigskip at each new paragraph
|
||||
\twocolumnfalse
|
||||
}
|
||||
|
||||
\DeclareOption{twocolumn}{
|
||||
\geometry{top=3cm, bottom=3cm, left=2cm, right=2cm, headheight=1cm, headsep=0.5cm}
|
||||
\setlength\parindent{1em}
|
||||
\setlength\parskip{0cm}
|
||||
\twocolumntrue
|
||||
}
|
||||
|
||||
\DeclareOption*{
|
||||
\PassOptionsToClass{\CurrentOption}{article}
|
||||
}
|
||||
|
||||
\ExecuteOptions{onecolumn, white, colour}
|
||||
|
||||
\ProcessOptions\relax
|
||||
|
||||
|
||||
|
||||
@@ -45,6 +45,16 @@
|
||||
\author{\yii@author\\\yii@institution\\\yii@division}
|
||||
\date{\yii@date}
|
||||
|
||||
\iftwocolumn
|
||||
\geometry{top=3cm, bottom=3cm, left=2cm, right=2cm, headheight=1cm, headsep=0.5cm}
|
||||
\setlength\parindent{1em}
|
||||
\setlength\parskip{0cm}
|
||||
\else
|
||||
\geometry{top=3cm, bottom=3cm, left=3cm, right=3cm, headheight=1cm, headsep=0.5cm}
|
||||
\setlength\parindent{0cm} % No paragraph indent
|
||||
\setlength\parskip{\bigskipamount} % Make bigskip at each new paragraph
|
||||
\fi
|
||||
|
||||
|
||||
\ifbright
|
||||
\ifdark
|
||||
|
||||
Reference in New Issue
Block a user