Skip to content

Commit a62c411

Browse files
committed
Brand new titlepage with logo from Hannah
1 parent 80f7cc1 commit a62c411

File tree

4 files changed

+49
-4
lines changed

4 files changed

+49
-4
lines changed

00-FrontMatter.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Tools For Programming
33
subtitle: How To Use A Computer Real Good
4-
author: Natasha Jarus and Michael Wisely
4+
author: Natasha Jarus \and Michael Wisely
55
institute: Missouri University of Science and Technology
66

77
documentclass: book
@@ -26,6 +26,11 @@ header-includes:
2626
- \let\tabsymbol\tab
2727
- \renewcommand{\tab}{Tab \tabsymbol}
2828
- \usepackage{afterpage}
29+
- \usepackage{lysc-titlepage}
30+
- \titleimage{\includegraphics{logo.png}}
31+
- \titlefontcolor{white}
32+
- \definecolor{titlegreen}{HTML}{008080}
33+
- \titlebgcolor{titlegreen}
2934

3035
include-before: |
3136
\pagestyle{empty}

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ book: ${TITLE}.pdf
3636
pdfbook --short-edge --letterpaper ${TITLE}.pdf
3737
@echo -e "\n\nDone! Be sure to print that bad-boy using short-edge duplexing."
3838

39-
${TITLE}.pdf: ${MD_PIECES} template.tex .commit-info.tex
39+
${TITLE}.pdf: ${MD_PIECES} template.tex .commit-info.tex lysc-titlepage.sty
4040
pandoc --pdf-engine=xelatex --template=template.tex --from markdown-latex_macros+${EXTENSIONS} --output ${TITLE}.pdf ${MD_PIECES}
4141

42-
${TITLE}.tex: ${MD_PIECES} template.tex .commit-info.tex
42+
${TITLE}.tex: ${MD_PIECES} template.tex .commit-info.tex lysc-titlepage.sty
4343
pandoc --pdf-engine=xelatex --template=template.tex --standalone --from markdown-latex_macros+${EXTENSIONS} --output ${TITLE}.tex ${MD_PIECES}
4444

45-
%.pdf: 00-FrontMatter.md %*.md .commit-info.tex
45+
%.pdf: 00-FrontMatter.md %*.md .commit-info.tex lysc-titlepage.sty
4646
pandoc --pdf-engine=xelatex --template=template.tex --from markdown-latex_macros+${EXTENSIONS} --output $@ $(filter %.md, $^)
4747

4848
# .git/index is updated every time a commit, checkout, etc. occurs.

logo.png

12.7 KB
Loading

lysc-titlepage.sty

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
\ProvidesPackage{lysc-titlepage}
2+
3+
\RequirePackage{geometry}
4+
\RequirePackage{pagecolor}
5+
\RequirePackage{afterpage}
6+
\RequirePackage{xcolor}
7+
8+
\newcommand*{\titleimage}[1]{\gdef\@titleimage{#1}}
9+
\newcommand*{\@titleimage}{}
10+
\newcommand*{\subtitle}[1]{\gdef\@subtitle{#1}}
11+
\newcommand*{\@subtitle}{}
12+
\renewcommand*{\and}{{\LARGE and }}
13+
14+
\newcommand*{\titlebgcolor}[1]{\gdef\@titlebgcolor{#1}}
15+
\newcommand*{\@titlebgcolor}{none}
16+
\newcommand*{\titlefontcolor}[1]{\gdef\@titlefontcolor{#1}}
17+
\newcommand*{\@titlefontcolor}{black}
18+
19+
\renewcommand*{\maketitle}{%
20+
\begin{titlepage}
21+
\pagestyle{empty}
22+
\newgeometry{centering}
23+
\pagecolor{\@titlebgcolor}
24+
\afterpage{\nopagecolor}
25+
\afterpage{\restoregeometry}
26+
27+
\centering
28+
\vfill
29+
\@titleimage
30+
\vfill
31+
{\color{\@titlefontcolor}\sffamily
32+
{\fontsize{32}{0}\bfseries\@title \strut\par}
33+
{\LARGE or: {\huge \@subtitle} \strut\par}
34+
\vspace{1cm}
35+
{\LARGE by: {\huge\@author} \strut\par}
36+
\vfill
37+
}
38+
\end{titlepage}
39+
}
40+
\endinput

0 commit comments

Comments
 (0)