From e4cad1f3641c92f3bc09ab4d9fc47d4a56f310d0 Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Mon, 20 May 2024 09:07:36 +0200 Subject: Style. Add a report style for other title look --- tex/fripost.sty | 40 +++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/tex/fripost.sty b/tex/fripost.sty index fe47ebe..4c25e4e 100644 --- a/tex/fripost.sty +++ b/tex/fripost.sty @@ -32,29 +32,39 @@ % \end{macrocode} %% Options % \begin{macrocode} -%% \DeclareOption{standalone}{ - -%% } - \newif\if@minutes\@minutesfalse -\DeclareOption{minutes}{\@minutestrue} \newif\if@bylaws\@bylawsfalse -\DeclareOption{by-laws}{\@bylawstrue} +\newif\if@report\@reportfalse +\newcommand\resetopts{\@minutesfalse\@bylawsfalse\@reportfalse} +\DeclareOption{standalone}{\resetopts} +\DeclareOption{minutes}{\resetopts\@minutestrue} +\DeclareOption{by-laws}{\resetopts\@bylawstrue} +\DeclareOption{report}{\resetopts\@reporttrue} +\ExecuteOptions{report} \ProcessOptions\relax % \end{macrocode} %% Titling % \begin{macrocode} \RequirePackage{titling} \pretitle{\titlefont\centering} -\posttitle{} -\preauthor{\titlefont\centering--~} -\postauthor{\\} -\predate{ - \titlefont\centering - \if@bylaws\color{white}\fi} -\postdate{ - \par - \if@bylaws\vspace{-1.5\baselineskip}\fi} +\posttitle{% + \if@minutes~--~\fi% + \if@bylaws~--~\fi% + \if@report\\[.2\baselineskip]\fi} +\preauthor{% + \titlefont\centering% + \if@report\normalsize\fi} +\postauthor{ + \if@minutes\\\fi% + \if@bylaws\\\fi% + \if@report~--~\fi} +\predate{% + \titlefont\centering% + \if@bylaws\color{white}\fi% + \if@report\normalsize\fi} +\postdate{% + \par% + \if@bylaws\vspace{-1.4\baselineskip}\fi} \setlength{\droptitle}{-4\baselineskip} % \end{macrocode} %% Sections -- cgit v1.2.3