File tree Expand file tree Collapse file tree 4 files changed +49
-4
lines changed Expand file tree Collapse file tree 4 files changed +49
-4
lines changed Original file line number Diff line number Diff line change 11---
22title : Tools For Programming
33subtitle : How To Use A Computer Real Good
4- author : Natasha Jarus and Michael Wisely
4+ author : Natasha Jarus \ and Michael Wisely
55institute : Missouri University of Science and Technology
66
77documentclass : 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
3035include-before : |
3136 \pagestyle{empty}
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments