initial commit

This commit is contained in:
Laurens Kils-Hütten
2020-10-03 23:57:59 +02:00
commit a7b542e7b6
6 changed files with 223 additions and 0 deletions

16
Makefile Normal file
View File

@@ -0,0 +1,16 @@
all: demo.pdf
%.pdf: %.tex coverart.png Makefile
pdflatex $<
%.png: %.cfdg Makefile
cfdg $< > $@
view: all
zathura *.pdf &
clean:
rm -f *~ *.log *.aux *.toc
realclean: clean
rm -f *.pdf coverart.png

29
coverart.cfdg Normal file
View File

@@ -0,0 +1,29 @@
startshape PLANT
shape PLANT
{
EITHER [x -2]
EITHER [x 2]
}
shape BOTH
{
BL [rotate 30]
BL [rotate -30 flip 90]
}
shape EITHER
rule {BL[]}
rule {BL[flip 90]}
shape BL
{
CIRCLE []
WL [size 0.95 y 1.6]
}
shape WL
rule 10 {BL [rotate randint(3, 8)]}
rule {BOTH []}
rule {BL [rotate -10 flip 90]}

91
demo.tex Normal file
View File

@@ -0,0 +1,91 @@
\documentclass[11pt]{wbzine}
%packages
\usepackage{lipsum}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{coelacanth}
%\usepackage{imfellEnglish}
%\renewcommand*\sfdefault{ugq}
\title{Der Krähenfuß}
\date{Jahrgang 1, Ausgabe 1, \today}
\begin{document}
\maketitle
\tableofcontents
\begin{titlepage}
\centering
{\bfseries\fontsize{70}{55}\selectfont Würfel}
\hrulefill
Vol. 1, Issue 1, Oktober 2020
\includegraphics[width=\textwidth]{coverart.png}
{\Huge The Zine Class \par}%
\end{titlepage}
\tableofcontents
\begin{multicols}{2}
\section{Ein Abschnitt}
\by{Wanderer Bill}
\lipsum
\subsection{Ein Unterabschnitt}
\smallmap{townmap.png}
\lipsum
\begin{tcolorbox}
Facilisi nonummy euismod, magna ea ut iusto. Laoreet ex in iusto nibh nulla nostrud iusto wisi nonummy suscipit tation quis nonummy dignissim?
\end{tcolorbox}
\lipsum
\begin{tabularx}{\columnwidth}{cZ}
1 & 3 Goblins \\
2 & 1 Troll \\
3 & eine andere Abenteurergruppe \\
4 & seltsame Geräusche \\
5 & 3W10 Ratten \\
6 & nur das Geräusch von Wassertropfen \\
\end{tabularx}
\lipsum
\begin{tcolorbox}
Facilisi nonummy euismod, magna ea ut iusto. Laoreet ex in iusto nibh nulla nostrud iusto wisi nonummy suscipit tation quis nonummy dignissim?
\end{tcolorbox}
\section{Ein Abschnitt in dem eine große Tabelle vorkommt}
\by{John Doe}
\lipsum
\end{multicols}
\begin{tabularx}{\textwidth}{cZ}
A & Here is an mysterious altar. In the corners of the room are
plenty of spiderwebs \\
B & A few puddles with dark murky water \\
\end{tabularx}
\begin{multicols}{2}
\lipsum
\bigmap{dungeonmap.png}
\lipsum
\end{multicols}
\end{document}

BIN
dungeonmap.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 977 KiB

BIN
townmap.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

87
wbzine.cls Normal file
View File

@@ -0,0 +1,87 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{wbzine}[2020/07/03 simple class for old school gaming zines]
\DeclareOption{onecolumn}{\OptionNotUsed}
\DeclareOption{twocolumn}{\OptionNotUsed}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
\LoadClass{article}
\RequirePackage[a5paper]{geometry}
\geometry{inner=9mm, outer=9mm, top=9mm, bottom=15mm}
\setlength{\parindent}{0mm}
\setlength{\parskip}{3mm}
\RequirePackage{multicol}
\RequirePackage{graphicx}
\RequirePackage{tabularx}
\newcolumntype{Z}{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}X}
\RequirePackage[table]{xcolor} % loads also »colortbl«
\rowcolors{2}{gray!25}{white}
\RequirePackage{tcolorbox}
\setcounter{secnumdepth}{1}
\setcounter{tocdepth}{1}
\newcommand{\volume}[1]{
}
\newcommand{\issue}[1]{
}
\newcommand{\by}[1]{
\hfill\textit{#1}}
% Do I really need this?
%\setlength{\textwidth}{17.5cm}
%\setlength{\textheight}{25cm}
\def\@maketitle{%
\null
{\bfseries\fontsize{60}{55}
\selectfont \@title \par}%
\hrulefill
{\large \@date}
\includegraphics[width=\textwidth]{coverart.png}
}
\def\@contentstitle{%
\null
{\bfseries\fontsize{70}{55}
\selectfont \@title \par}%
\hrulefill
{\large
\@author}
\tableofcontents
}
\newcommand{\smallmap}[1]{
%\begin{figure*}[htb]
\includegraphics[width=\columnwidth]{#1}
%\end{figure*}
}
\newcommand{\bigmap}[1]{
\end{multicols}
%\begin{figure*}
\noindent
\includegraphics[width=\textwidth]{#1}
%\end{figure*}
\begin{multicols}{2}}
%\renewcommand*\sfdefault{ugq}
\RequirePackage{titlesec}
\titlespacing{\section}{0pt}{*4}{*0.2}
\titleformat{\section}[frame]
{\normalfont}
{\filright\enspace\thesection\enspace}
{2pt}
{\Large\bfseries\filcenter}