File tree 4 files changed +49
-4
lines changed
4 files changed +49
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
title : Tools For Programming
3
3
subtitle : How To Use A Computer Real Good
4
- author : Natasha Jarus and Michael Wisely
4
+ author : Natasha Jarus \ and Michael Wisely
5
5
institute : Missouri University of Science and Technology
6
6
7
7
documentclass : book
@@ -26,6 +26,11 @@ header-includes:
26
26
- \let\tabsymbol\tab
27
27
- \renewcommand{\tab}{Tab \tabsymbol}
28
28
- \usepackage{afterpage}
29
+ - \usepackage{lysc-titlepage}
30
+ - \titleimage{\includegraphics{logo.png}}
31
+ - \titlefontcolor{white}
32
+ - \definecolor{titlegreen}{HTML}{008080}
33
+ - \titlebgcolor{titlegreen}
29
34
30
35
include-before : |
31
36
\pagestyle{empty}
Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ book: ${TITLE}.pdf
36
36
pdfbook --short-edge --letterpaper ${TITLE} .pdf
37
37
@echo -e " \n\nDone! Be sure to print that bad-boy using short-edge duplexing."
38
38
39
- ${TITLE}.pdf : ${MD_PIECES} template.tex .commit-info.tex
39
+ ${TITLE}.pdf : ${MD_PIECES} template.tex .commit-info.tex lysc-titlepage.sty
40
40
pandoc --pdf-engine=xelatex --template=template.tex --from markdown-latex_macros+${EXTENSIONS} --output ${TITLE} .pdf ${MD_PIECES}
41
41
42
- ${TITLE}.tex : ${MD_PIECES} template.tex .commit-info.tex
42
+ ${TITLE}.tex : ${MD_PIECES} template.tex .commit-info.tex lysc-titlepage.sty
43
43
pandoc --pdf-engine=xelatex --template=template.tex --standalone --from markdown-latex_macros+${EXTENSIONS} --output ${TITLE} .tex ${MD_PIECES}
44
44
45
- % .pdf : 00-FrontMatter.md %* .md .commit-info.tex
45
+ % .pdf : 00-FrontMatter.md %* .md .commit-info.tex lysc-titlepage.sty
46
46
pandoc --pdf-engine=xelatex --template=template.tex --from markdown-latex_macros+${EXTENSIONS} --output $@ $(filter % .md, $^ )
47
47
48
48
# .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