summaryrefslogtreecommitdiffstats
path: root/leaflets
diff options
context:
space:
mode:
authorGustav Eek <gustav@fripost.org>2016-10-27 20:10:38 +0200
committerGustav Eek <gustav@fripost.org>2016-10-27 20:10:38 +0200
commite4a6882f779ca5a92e2c9886a26a46b8ec197d4d (patch)
treea1d213fd279a3bd70eb9ef4d529704eec3221034 /leaflets
parent188f05257c603a18ddbd298b19019cd06f192f88 (diff)
Front page added to organisation leaflet
A dedicated pandoc template *template.tex* is provided instead of the Pandoc variables
Diffstat (limited to 'leaflets')
-rw-r--r--leaflets/organisations/Makefile16
-rw-r--r--leaflets/organisations/colors.tex14
-rw-r--r--leaflets/organisations/template.tex103
3 files changed, 124 insertions, 9 deletions
diff --git a/leaflets/organisations/Makefile b/leaflets/organisations/Makefile
index 487fc87..56d0288 100644
--- a/leaflets/organisations/Makefile
+++ b/leaflets/organisations/Makefile
@@ -1,22 +1,20 @@
all = \
fripost-organisations-leaflet.pdf \
+ fripost-organisations-standard.pdf \
organisations.tex \
organisations.mdwn
-pandoc-opts = \
- --template=template.tex \
- -V documentclass=leaflet \
- -V classoption=tumble \
- -V papersize=a4paper
-
all: $(all)
-fripost-organisations-leaflet.pdf: organisations.mdwn
- pandoc -s -f markdown -t latex $(pandoc-opts) -o $@ $<
+fripost-organisations-leaflet.pdf: organisations.mdwn template.tex
+ pandoc -s -f markdown -t latex --template=template.tex -o $@ $<
+
+fripost-organisations-standard.pdf: organisations.mdwn
+ pandoc -s -f markdown -t latex -o $@ $<
organisations.tex: organisations.mdwn template.tex
- pandoc -s -f markdown -t latex $(pandoc-opts) < $< > $@
+ pandoc -s -f markdown -t latex --template=template.tex < $< > $@
organisations.mdwn:
git archive --remote=gitolite@git.fripost.org:fripost-wiki.git --format=tar HEAD organisations.mdwn | tar --extract > $@
diff --git a/leaflets/organisations/colors.tex b/leaflets/organisations/colors.tex
new file mode 100644
index 0000000..e1f90fa
--- /dev/null
+++ b/leaflets/organisations/colors.tex
@@ -0,0 +1,14 @@
+\usepackage{color}
+
+% Colours
+\definecolor{gray70}{gray}{.3}
+\definecolor{gray50}{gray}{.5}
+\definecolor{gray20}{gray}{.8}
+\definecolor{gray05}{gray}{.95}
+\definecolor{gray00}{gray}{1.0}
+
+\definecolor{blueG}{RGB}{0,76,103}
+\definecolor{greyG}{RGB}{172,160,149}
+\definecolor{orangeG}{RGB}{255,160,35}
+
+\definecolor{grayFri}{gray}{.3}
diff --git a/leaflets/organisations/template.tex b/leaflets/organisations/template.tex
new file mode 100644
index 0000000..c9ba655
--- /dev/null
+++ b/leaflets/organisations/template.tex
@@ -0,0 +1,103 @@
+\documentclass[12pt, a4paper, tumble]{leaflet}
+\usepackage{lmodern}
+\usepackage{amssymb,amsmath}
+\usepackage{ifxetex,ifluatex}
+\usepackage{fixltx2e}
+\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
+\usepackage[swedish]{babel}
+
+\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
+\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
+
+\usepackage{listings}
+
+%% \usepackage{graphicx}
+%% \makeatletter
+%% \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
+%% \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
+%% \makeatother
+%% \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
+
+\usepackage[unicode=true]{hyperref}
+\hypersetup{breaklinks=true,
+ bookmarks=true,
+ pdfauthor={$author-meta$},
+ pdftitle={$title-meta$},
+ colorlinks=true,
+ citecolor=$if(citecolor)$$citecolor$$else$blue$endif$,
+ urlcolor=$if(urlcolor)$$urlcolor$$else$blue$endif$,
+ linkcolor=$if(linkcolor)$$linkcolor$$else$magenta$endif$,
+ pdfborder={0 0 0}}
+\urlstyle{same} % don't use monospace font for urls
+
+\setlength{\parindent}{0pt}
+\setlength{\parskip}{6pt plus 2pt minus 1pt}
+\setlength{\emergencystretch}{3em} % prevent overfull lines
+
+\setcounter{secnumdepth}{0}
+
+$if(title)$
+\title{$title$}
+$endif$
+$if(subtitle)$
+\subtitle{$subtitle$}
+$endif$
+$if(author)$
+\author{$for(author)$$author$$sep$ \and $endfor$}
+$endif$
+$if(date)$
+\date{$date$}
+$endif$
+
+$for(header-includes)$
+$header-includes$
+$endfor$
+
+\input{colors}
+
+\makeatletter
+\let\thetitle\@title
+\let\theauthor\@author
+\let\thedate\@date
+\makeatother
+
+\begin{document}
+
+\mbox{}\\
+\vfill
+\resizebox{\linewidth}{!}{
+ \rotatebox{40}{
+ \setlength{\fboxsep}{9pt}
+ \setlength{\fboxrule}{0.8pt}
+ \fbox{\includegraphics[width=\linewidth, clip=true, trim=0 1.5pt 0 0]
+ {../../2011/mayday-flier/logosvart.png}}
+}}\\
+\vfill
+\parbox{\linewidth}{\sffamily\centering\color{gray50}
+ \fontsize{18pt}{26pt}\selectfont
+ \thetitle}%
+
+\newpage
+
+$if(title)$
+\maketitle
+$endif$
+$if(abstract)$
+\begin{abstract}
+$abstract$
+\end{abstract}
+$endif$
+
+$for(include-before)$
+$include-before$
+
+$endfor$
+
+$body$
+
+$for(include-after)$
+$include-after$
+
+$endfor$
+\end{document}