Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cover splotch #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added dnd-5e/assets/cover-splotch.pdf
Binary file not shown.
Binary file added dnd-5e/assets/cover-splotch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
153 changes: 153 additions & 0 deletions dnd-5e/assets/cover-splotch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dnd-5e/assets/fonts/Almendra Bold Italic.ttf
Binary file not shown.
Binary file added dnd-5e/assets/fonts/Almendra Bold.ttf
Binary file not shown.
Binary file added dnd-5e/assets/fonts/Almendra Italic.ttf
Binary file not shown.
Binary file added dnd-5e/assets/fonts/Almendra SmallCaps.ttf
Binary file not shown.
Binary file added dnd-5e/assets/fonts/Almendra.ttf
Binary file not shown.
9 changes: 9 additions & 0 deletions dnd-5e/inc/fonts.tex
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@
BoldItalicFeatures = {SmallCapsFont = * Caps Bold Italic},
]{Scaly Sans}

\newfontfamily\almendra[
Path = ./assets/fonts/,
Extension = .ttf,
UprightFont = * Bold,
BoldFont = * Bold,
ItalicFont = * Italic,
BoldItalicFont = * Bold Italic,
]{Almendra}

% The main font doesn't have whatever itemize uses by default.
% How many levels are there?
\renewcommand*{\labelitemi}{$—$}
Expand Down
1 change: 1 addition & 0 deletions dnd-5e/inc/root.tex
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
\usepackage{multirow,makecell}
\usepackage{dblfloatfix}
\usepackage{multicol}
\usepackage{overpic}

\definecolor{chapter}{RGB}{88, 23, 13}
\definecolor{subsecrule}{RGB}{211, 169, 98}
Expand Down
19 changes: 16 additions & 3 deletions dnd-5e/inc/sectioning.tex
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@
% Cover page
\newcommand{\hbCover}{assets/cover}
\newcommand{\hbSubcover}{assets/cover2}
\newcommand{\hbCoverSplotch}{assets/cover-splotch}
\newcommand{\hbCoverSplotchText}{\almendra\bfseries{HOMEBREW}}
\newcommand{\hbTitle}{Title. Renew me!}
\newcommand{\hbSubtitle}{Subtitle. Renew me!}

Expand All @@ -169,10 +171,21 @@
\fontsize{48pt}{48pt}\selectfont%
\fillstroke{[1]}{[0]}{1.5}{\MakeUppercase\hbTitle}\\*%
\normalfont\normalsize\includegraphics[width=.5\paperwidth]{assets/separator}%
\LARGE\vfill%
% XXX: font doesn't look right
\fillstroke{[1]}{[0]}{.5}{\textbf{\hbSubtitle}}%
\end{center}%
\begin{figure*}[!b]
\begin{adjustwidth}{-20mm}{0mm}
\color{white}
%\vspace*{17.0cm}
\begin{overpic}[percent,unit=1mm,scale=.31]{\hbCoverSplotch}
\put(12,5){\huge\hbCoverSplotchText}
\end{overpic}
\end{adjustwidth}
\begin{center}%
\LARGE\vfill%
% XXX: font doesn't look right
\fillstroke{[1]}{[0]}{.5}{\textbf{\hbSubtitle}}%
\end{center}%
\end{figure*}
\clearpage%
\twocolumn%
}
Expand Down
1 change: 1 addition & 0 deletions dnd-5e/skel.tex
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
\renewcommand{\hbTitle}{Placeholder Title \protect\\ That is kind of long}
\renewcommand{\hbSubtitle}{Created by Artefact2, typeset with \XeTeX \protect\\ \url{https://github.com/Artefact2/texbrew/}}
\renewcommand*{\hbCover}{assets/samples/cover}
\renewcommand{\hbCoverSplotchText}{\almendra\bfseries\LARGE{HOMEBREW WITH TEXBREW}}
\hbMakecover

% Use assets/background if you don't want a cover. You can put your
Expand Down