From f8ecc5f2e8d86c46c56d6db3dae12efafe61a0d1 Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Wed, 15 May 2024 13:51:38 +0200 Subject: Style. Adopt titling for policy documents --- tex/fripost.sty | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'tex') diff --git a/tex/fripost.sty b/tex/fripost.sty index b238641..fe47ebe 100644 --- a/tex/fripost.sty +++ b/tex/fripost.sty @@ -30,17 +30,6 @@ \newcommand \descriptionfont {\bfseries\color{grayFri}} \newcommand \textestemate [1] {{\small\sffamily\mdseries\color{grayFri} #1}} % \end{macrocode} -%% Titling -% \begin{macrocode} -\RequirePackage{titling} -\pretitle{\titlefont\centering} -\posttitle{} -\preauthor{\titlefont\centering--~} -\postauthor{\\} -\predate{\titlefont\centering} -\postdate{\par} -\setlength{\droptitle}{-4\baselineskip} -% \end{macrocode} %% Options % \begin{macrocode} %% \DeclareOption{standalone}{ @@ -49,12 +38,25 @@ \newif\if@minutes\@minutesfalse \DeclareOption{minutes}{\@minutestrue} - -\DeclareOption{by-laws}{ - -} +\newif\if@bylaws\@bylawsfalse +\DeclareOption{by-laws}{\@bylawstrue} \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} +\setlength{\droptitle}{-4\baselineskip} +% \end{macrocode} %% Sections % \begin{macrocode} \@ifclassloaded{article}{ -- cgit v1.2.3