commit a7b542e7b619f14b64a6e9feace042c02fd68c3e Author: Laurens Kils-Hütten Date: Sat Oct 3 23:57:59 2020 +0200 initial commit diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8b9f6c1 --- /dev/null +++ b/Makefile @@ -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 diff --git a/coverart.cfdg b/coverart.cfdg new file mode 100644 index 0000000..1a08af0 --- /dev/null +++ b/coverart.cfdg @@ -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]} + diff --git a/demo.tex b/demo.tex new file mode 100644 index 0000000..d0c68e1 --- /dev/null +++ b/demo.tex @@ -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} diff --git a/dungeonmap.png b/dungeonmap.png new file mode 100644 index 0000000..87012db Binary files /dev/null and b/dungeonmap.png differ diff --git a/townmap.png b/townmap.png new file mode 100644 index 0000000..21c9d41 Binary files /dev/null and b/townmap.png differ diff --git a/wbzine.cls b/wbzine.cls new file mode 100644 index 0000000..006f016 --- /dev/null +++ b/wbzine.cls @@ -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} +