summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/modernposter/modernposter.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/modernposter/modernposter.cls')
-rw-r--r--Master/texmf-dist/tex/latex/modernposter/modernposter.cls56
1 files changed, 21 insertions, 35 deletions
diff --git a/Master/texmf-dist/tex/latex/modernposter/modernposter.cls b/Master/texmf-dist/tex/latex/modernposter/modernposter.cls
index 3db991199b7..04e43f329d4 100644
--- a/Master/texmf-dist/tex/latex/modernposter/modernposter.cls
+++ b/Master/texmf-dist/tex/latex/modernposter/modernposter.cls
@@ -2,14 +2,14 @@
%
% This file is part of the modernposter LaTeX template
%
-% Version 1.01.2 2018/01/02
+% Version 1.02.1 2018/01/04
%
% Copyright 2018 David Derler
%
% This work is licensed under the Creative Commons Attribution-ShareAlike 4.0
% International license (cf. https://creativecommons.org/licenses/by-sa/4.0/)
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{modernposter}[2018/01/02 v1.01.2 Modern poster template. Inspired by metropolis beamer template.]
+\ProvidesClass{modernposter}[2018/01/04 v1.02.1 A modern LaTeX poster template. Color scheme inspired by metropolis beamer theme.]
\LoadClass[portrait]{a0poster}
@@ -18,32 +18,9 @@
%------------------------------------------------------------------------------
\RequirePackage{xcolor}
-\definecolor{c1}{HTML}{CB4B16}
-\definecolor{c2}{HTML}{586E75}
-\definecolor{c3}{HTML}{6C71C4}
-\definecolor{c4}{HTML}{D33682}
-\definecolor{c5}{HTML}{268BD2}
-\definecolor{c6}{HTML}{B58900}
-\definecolor{c7}{HTML}{859900}
-\definecolor{c8}{HTML}{DC322F}
-\definecolor{c9}{HTML}{002B36}
-\definecolor{c10}{HTML}{FF8000}
-
\definecolor{mDarkTeal}{HTML}{23373b}
\definecolor{mDarkBrown}{HTML}{604c38}
-\newcommand{\orange}[1]{\textcolor{c10}{#1}}
-\newcommand{\gray}[1]{\textcolor{c2}{#1}}
-\newcommand{\purple}[1]{\textcolor{c3}{#1}}
-\newcommand{\pink}[1]{\textcolor{c4}{#1}}
-\newcommand{\blue}[1]{\textcolor{c5}{#1}}
-\newcommand{\yellow}[1]{\textcolor{c6}{#1}}
-\newcommand{\green}[1]{\textcolor{c7}{#1}}
-\newcommand{\red}[1]{\textcolor{c8}{#1}}
-\newcommand{\black}[1]{\textcolor{c9}{#1}
-
-}
-
%------------------------------------------------------------------------------
% Options
%------------------------------------------------------------------------------
@@ -54,8 +31,14 @@
\pgfkeys{/modernposter/.cd,
hlcolor/.store in=\modernposter@hlcolor,
logo/.store in=\modernposter@logo,
- hlcolor=FF8000,
- logo=none}
+ hlcolor=FF8000}
+
+\ProcessPgfOptions{/modernposter}
+
+\pgfkeys{/modernposter/.cd,
+ logo/.code={\def\@logotrue{}},
+ helvet/.code={\def\@helvettrue{}},
+}
\ProcessPgfOptions{/modernposter}
@@ -94,9 +77,7 @@
\let\oldparboxrestore\@arrayparboxrestore
\renewcommand{\@arrayparboxrestore}{
\oldparboxrestore
- \makeatletter
\parskip0.4em
- \makeatother
}
\let\faiconold\faicon
@@ -105,7 +86,13 @@
\renewcommand{\labelitemi}{$\bullet$~~}
\renewcommand{\labelitemii}{\faicon{angle-right}~~}
-\RequirePackage[light,sfdefault]{FiraSans}
+\ifdefined\@helvettrue
+ \RequirePackage{helvet}
+ \renewcommand\familydefault{\sfdefault}
+\else
+ \RequirePackage[light,sfdefault]{FiraSans}
+\fi
+
%------------------------------------------------------------------------------
% Begin/End Document commands
@@ -124,14 +111,14 @@
}
\AtBeginDocument{
- \makeatletter
+ \ifdefined\@helvettrue\else
\def\bfseries@sf{m}
\SetSymbolFont{operators}{normal}{\math@encoding}{\math@sfdefault}{l}{n}
\SetSymbolFont{operators}{bold}{\math@encoding}{\math@sfdefault}{m}{n}
\DeclareSymbolFont{SFMath}{\math@encoding}{\math@sfdefault}{l}{sl}
\SetSymbolFont{SFMath}{normal}{\math@encoding}{\math@sfdefault}{l}{sl}
\SetSymbolFont{SFMath}{bold}{\math@encoding}{\math@sfdefault}{m}{\mathnormal@bold@shape}
- \makeatother
+ \fi
}
\AtEndDocument{
@@ -142,7 +129,6 @@
% Title commands
%------------------------------------------------------------------------------
\RequirePackage[hidelinks]{hyperref}
-\RequirePackage{xifthen,xstring}
\def\@email{}
\newcommand{\email}[1]{\def\@email{#1}}
@@ -163,11 +149,11 @@
fill=hlcol,
yshift=-15em] (sep) at (current page.north)
{};
- \expandafter\ifstrequal\expandafter{\modernposter@logo}{none}{}{
+ \ifdefined\@logotrue
\node[anchor=west,
xshift=1em] (logo) at (header.east)
{\includegraphics[width=13em]{\modernposter@logo}};
- }
+ \fi
\node[anchor=east,
yshift=3.4em,
xshift=-2.5em] (title) at (header.east)