From 91f2b88c5543bf96507c747784b5b5b0560f07cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moussouni=2C=20Ya=C3=ABl?= Date: Mon, 19 May 2025 12:41:39 +0200 Subject: [PATCH] 2025-05-19: Small updates --- manchot-article.cls | 4 ++++ src/article_commands.tex | 17 +++++++++++++---- src/article_options.tex | 4 +++- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/manchot-article.cls b/manchot-article.cls index 11b52d0..f62723f 100644 --- a/manchot-article.cls +++ b/manchot-article.cls @@ -65,6 +65,10 @@ \newif\ifdark \newif\ifbright +\newlength\varparindent +\newlength\varparskip + + \input{src/common_palette.tex} % Options diff --git a/src/article_commands.tex b/src/article_commands.tex index c45020c..42b1453 100644 --- a/src/article_commands.tex +++ b/src/article_commands.tex @@ -51,17 +51,26 @@ \newcommand{\setHeadBottomRight}[1]{\def\yii@headbottomright{{#1}}} % Title page + \DeclareDocumentCommand\shorttitle{}{ + \setlength\varparindent{\parindent} + \setlength\parindent{0em} \iftwocolumn \begin{strip} + \vspace*{-2\baselineskip} \maketitle \end{strip} \else \maketitle \fi + \setlength\parindent{\varparindent} } \DeclareDocumentCommand\longtitle{s o m}{ + \setlength\varparindent{\parindent} + \setlength\varparskip{\parskip} + \setlength\parindent{0em} + \setlength\parskip{0em} \iftwocolumn \onecolumn \fi @@ -81,10 +90,8 @@ {\LARGE\noindent\yii@subtitle} \vspace*{1cm} - {\large\noindent\yii@author} - - {\large\noindent\yii@institution} - + {\large\noindent\yii@author}\\ + {\large\noindent\yii@institution}\\ {\large\noindent\yii@division} \vspace*{1cm} @@ -104,5 +111,7 @@ \iftwocolumn \twocolumn \fi + \setlength\parindent{\varparindent} + \setlength\parskip{\varparskip} } diff --git a/src/article_options.tex b/src/article_options.tex index ec9aa99..18f4fb1 100644 --- a/src/article_options.tex +++ b/src/article_options.tex @@ -78,12 +78,14 @@ \DeclareOption{onecolumn}{ \geometry{top=3cm, bottom=3cm, left=3cm, right=3cm, headheight=1cm, headsep=0.5cm} \setlength\parindent{0cm} % No paragraph indent - \addtolength\parskip{\bigskipamount} % Make bigskip at each new paragraph + \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 }