aboutsummaryrefslogtreecommitdiffstats
path: root/tex
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2024-05-20 09:07:36 +0200
committerGustav Eek <gustav.eek@fripost.org>2024-05-20 09:07:36 +0200
commite4cad1f3641c92f3bc09ab4d9fc47d4a56f310d0 (patch)
treefc5a84b37b7f063b0281eb441baa1509fdf0a710 /tex
parent17acec2599521e984ca7e69b4232c3310202d691 (diff)
Style. Add a report style for other title look
Diffstat (limited to 'tex')
-rw-r--r--tex/fripost.sty40
1 files 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