Add more templates: romance, thriller, koma, cookbook
This commit is contained in:
@@ -73,6 +73,10 @@ class LaTeXExporter:
|
||||
"sci-fi": "sci-fi.tex", # Orbit/DAW style
|
||||
"business": "business.tex", # Professional
|
||||
"minimal": "minimal.tex", # Bare-bones
|
||||
"romance": "romance.tex", # Romance novels
|
||||
"thriller": "thriller.tex", # Mystery/Thriller
|
||||
"koma": "koma.tex", # KOMA-Script
|
||||
"cookbook": "cookbook.tex", # Recipes
|
||||
|
||||
# RPG/Game Books
|
||||
"rpg-rulebook": "rpg-rulebook.tex", # Game system
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
% Cookbook/Food Book Template
|
||||
% Recipe books, culinary
|
||||
|
||||
\documentclass[12pt]{memoir}
|
||||
|
||||
% Packages
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{hyperref}
|
||||
\usepackage{geometry}
|
||||
\usepackage{microtype}
|
||||
\usepackage{xcolor}
|
||||
\usepackage{booktabs}
|
||||
\usepackage{multicol}
|
||||
\usepackage{wrapfig}
|
||||
\usepackage{ifthen}
|
||||
|
||||
% Cookbook trim
|
||||
\geometry{
|
||||
paperwidth=8in,
|
||||
paperheight=10in,
|
||||
textwidth=6in,
|
||||
textheight=8in,
|
||||
inner=0.75in,
|
||||
outer=0.75in,
|
||||
}
|
||||
|
||||
% Food colors
|
||||
\definecolor{basil}{RGB}{34,139,34}
|
||||
\definecolor{saffron}{RGB}{244,196,48}
|
||||
\definecolor{tomato}{RGB}{255,99,71}
|
||||
|
||||
% Hyperref
|
||||
\hypersetup{
|
||||
colorlinks=true,
|
||||
linkcolor=basil,
|
||||
}
|
||||
|
||||
% Fonts
|
||||
\usepackage{mathptmx}
|
||||
|
||||
% Chapter style
|
||||
\chapterstyle{dowding}
|
||||
|
||||
% Recipe environment
|
||||
\newenvironment{recipe}[1]
|
||||
{\begin{tcolorbox}[title=#1,colback=green!5,colframe=basil]}
|
||||
{\end{tcolorbox}}
|
||||
|
||||
% Ingredient list
|
||||
\newenvironment{ingredients}
|
||||
{\begin{multicols}{2}\small\textbf{Ingredients:}\begin{itemize}}
|
||||
{\end{itemize}\end{multicols}}
|
||||
|
||||
% Instructions
|
||||
\newenvironment{instructions}
|
||||
{\small\textbf{Method:}\begin{enumerate}}{\end{enumerate}}
|
||||
|
||||
% Metadata
|
||||
\def\booktitle{$book_title$}
|
||||
\def\bookauthor{$author$}
|
||||
\def\bookdate{$date$}
|
||||
|
||||
\begin{document}
|
||||
|
||||
% Title page
|
||||
\thispagestyle{empty}
|
||||
\begin{center}
|
||||
\vspace*{1in}
|
||||
{\Huge\bfseries\booktitle\par}
|
||||
\vfill
|
||||
{\Large by \bookauthor}\\
|
||||
\vfill
|
||||
{\large\bookdate}
|
||||
\end{center}
|
||||
|
||||
% Copyright
|
||||
\clearpage
|
||||
\thispagestyle{empty}
|
||||
\vspace*{\fill}
|
||||
\begin{center}
|
||||
Copyright \textcopyright\ \bookdate\ \bookauthor\\
|
||||
All rights reserved.
|
||||
\end{center}
|
||||
\vspace*{\fill}
|
||||
|
||||
% Contents
|
||||
\clearpage
|
||||
\tableofcontents
|
||||
|
||||
% Introduction
|
||||
\chapter{Introduction}
|
||||
|
||||
$body$
|
||||
|
||||
\end{document}
|
||||
@@ -0,0 +1,81 @@
|
||||
% KOMA-Script Book - Modern LaTeX
|
||||
% Alternative to memoir, built into TeX Live
|
||||
|
||||
\documentclass[12pt]{scrbook}
|
||||
|
||||
% Packages
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{amsmath,amssymb}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{hyperref}
|
||||
\usepackage{geometry}
|
||||
\usepackage{microtype}
|
||||
\usepackage{xcolor}
|
||||
|
||||
% KOMA settings
|
||||
\KOMAoptions{
|
||||
fontsize=12pt,
|
||||
paper=6in:9in,
|
||||
pagesize=pdftex,
|
||||
}
|
||||
|
||||
% Geometry
|
||||
\geometry{
|
||||
inner=0.75in,
|
||||
outer=0.5in,
|
||||
top=0.75in,
|
||||
bottom=0.75in,
|
||||
}
|
||||
|
||||
% Hyperref
|
||||
\hypersetup{
|
||||
colorlinks=true,
|
||||
linkcolor=blue,
|
||||
}
|
||||
|
||||
% Fonts
|
||||
\usepackage{mathptmx}
|
||||
|
||||
% Chapter styling via KOMA
|
||||
\setchapterpreamble{%
|
||||
\itshape\rule{\linewidth}{0.5pt}
|
||||
}
|
||||
|
||||
% Headers
|
||||
\usepackage{scrlayer-scrpage}
|
||||
\pagestyle{scrheadings}
|
||||
|
||||
% Metadata
|
||||
\def\booktitle{$book_title$}
|
||||
\def\bookauthor{$author$}
|
||||
\def\bookdate{$date$}
|
||||
|
||||
\begin{document}
|
||||
|
||||
% Title
|
||||
\thispagestyle{empty}
|
||||
\begin{center}
|
||||
\vspace*{2in}
|
||||
{\Huge\bfseries\booktitle\par}
|
||||
\bigskip
|
||||
by \bookauthor
|
||||
\vfill
|
||||
\bookdate
|
||||
\end{center}
|
||||
|
||||
% Copyright
|
||||
\clearpage
|
||||
\thispagestyle{empty}
|
||||
\vspace*{\fill}
|
||||
Copyright \textcopyright\ \bookdate\ \bookauthor
|
||||
\vspace*{\fill}
|
||||
|
||||
% Contents
|
||||
\tableofcontents
|
||||
|
||||
\mainmatter
|
||||
|
||||
$body$
|
||||
|
||||
\end{document}
|
||||
@@ -0,0 +1,101 @@
|
||||
% Romance Novel Template
|
||||
% Harlequin/Mills & Boon style
|
||||
|
||||
\documentclass[12pt]{memoir}
|
||||
|
||||
% Packages
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{amsmath,amssymb}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{hyperref}
|
||||
\usepackage{geometry}
|
||||
\usepackage{microtype}
|
||||
\usepackage{xcolor}
|
||||
\usepackage{textcomp}
|
||||
|
||||
% Romance trim - compact
|
||||
\geometry{
|
||||
paperwidth=5.25in,
|
||||
paperheight=8in,
|
||||
textwidth=4in,
|
||||
textheight=6.5in,
|
||||
inner=0.5in,
|
||||
outer=0.375in,
|
||||
bindingoffset=0.125in,
|
||||
}
|
||||
|
||||
% Romantic colors
|
||||
\definecolor{rose}{RGB}{192,57,43}
|
||||
\definecolor{cream}{RGB}{255,251,240}
|
||||
\definecolor{gold}{RGB}{218,165,32}
|
||||
|
||||
% Hyperref
|
||||
\hypersetup{
|
||||
colorlinks=false,
|
||||
}
|
||||
|
||||
% Fonts - romantic
|
||||
\usepackage{mathptmx}
|
||||
|
||||
% Chapter style - fancy
|
||||
\chapterstyle{dowding}
|
||||
|
||||
% Drop caps
|
||||
\lettrineHeightLines=3
|
||||
\lettrinecolor{rose}
|
||||
|
||||
% Headers
|
||||
\pagestyle{simple}
|
||||
|
||||
% Metadata
|
||||
\def\booktitle{$book_title$}
|
||||
\def\bookauthor{$author$}
|
||||
\def\bookdate{$date$}
|
||||
\def\booksynopsis{$synopsis$}
|
||||
|
||||
\begin{document}
|
||||
|
||||
% Title page - dramatic
|
||||
\thispagestyle{empty}
|
||||
\begin{center}
|
||||
\vspace*{1in}
|
||||
{\HUGE\scshape\booktitle\par}
|
||||
\vfill
|
||||
{\large by \bookauthor}
|
||||
\end{center}
|
||||
|
||||
% Copyright
|
||||
\clearpage
|
||||
\thispagestyle{empty}
|
||||
\vspace*{\fill}
|
||||
\begin{center}
|
||||
Copyright \textcopyright\ \bookdate\ \bookauthor\\
|
||||
All rights reserved.
|
||||
\end{center}
|
||||
\vspace*{\fill}
|
||||
|
||||
% Dedication
|
||||
$if(dedication)$
|
||||
\clearpage
|
||||
\thispagestyle{empty}
|
||||
\vspace*{3in}
|
||||
\begin{center}
|
||||
\textit{$dedication$}
|
||||
\end{center}
|
||||
$endif$
|
||||
|
||||
% Contents
|
||||
\clearpage
|
||||
\tableofcontents
|
||||
|
||||
$body$
|
||||
|
||||
% About the author
|
||||
\clearpage
|
||||
\chapter*{About the Author}
|
||||
|
||||
\bigskip
|
||||
\textit{\bookauthor} writes heartwarming romance stories.
|
||||
|
||||
\end{document}
|
||||
@@ -0,0 +1,98 @@
|
||||
% Thriller/Mystery Template
|
||||
% Hitchcock, Grisham style
|
||||
|
||||
\documentclass[12pt]{memoir}
|
||||
|
||||
% Packages
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{amsmath,amssymb}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{hyperref}
|
||||
\usepackage{geometry}
|
||||
\usepackage{microtype}
|
||||
\usepackage{xcolor}
|
||||
\usepackage{textcomp}
|
||||
\usepackage{epigraph}
|
||||
|
||||
% Thriller trim
|
||||
\geometry{
|
||||
paperwidth=5.5in,
|
||||
paperheight=8.5in,
|
||||
textwidth=4.125in,
|
||||
textheight=7in,
|
||||
inner=0.5in,
|
||||
outer=0.5in,
|
||||
}
|
||||
|
||||
% Thriller colors
|
||||
\definecolor{thrillerred}{RGB}{139,0,0}
|
||||
\definecolor{thrillerblack}{RGB}{20,20,20}
|
||||
|
||||
% Hyperref
|
||||
\hypersetup{
|
||||
colorlinks=false,
|
||||
}
|
||||
|
||||
% Fonts - sharp
|
||||
\usepackage{mathptmx}
|
||||
|
||||
% Chapter style - stark
|
||||
\chapterstyle{dowding}
|
||||
|
||||
% Epigraphs
|
||||
\epigraphwidth=3.5in
|
||||
|
||||
% Headers
|
||||
\pagestyle{simple}
|
||||
|
||||
% Part style
|
||||
\def\partnamefont{\normalfont\Large\MakeUppercase}
|
||||
\def\partnumfont{\normalfont\HUGE\bfseries\color{thrillerred}}
|
||||
|
||||
% Metadata
|
||||
\def\booktitle{$book_title$}
|
||||
\def\bookauthor{$author$}
|
||||
\def\bookdate{$date$}
|
||||
|
||||
\begin{document}
|
||||
|
||||
% Half title
|
||||
\thispagestyle{empty}
|
||||
{\Huge\scshape\booktitle}
|
||||
|
||||
% Title page - stark
|
||||
\clearpage
|
||||
\thispagestyle{empty}
|
||||
\begin{center}
|
||||
\vspace*{1in}
|
||||
{\HUGE\bfseries\booktitle\par}
|
||||
\vfill
|
||||
{\Large by \bookauthor}
|
||||
\end{center}
|
||||
|
||||
% Copyright
|
||||
\clearpage
|
||||
\thispagestyle{empty}
|
||||
\vspace*{\fill}
|
||||
\begin{center}
|
||||
Copyright \textcopyright\ \bookdate\ \bookauthor\\
|
||||
All rights reserved.
|
||||
\end{center}
|
||||
\vspace*{\fill}
|
||||
|
||||
% Epigraph
|
||||
$if(epigraph)$
|
||||
\clearpage
|
||||
\begin{center}
|
||||
\textit{$epigraph$}
|
||||
\end{center}
|
||||
$endif$
|
||||
|
||||
% Contents
|
||||
\clearpage
|
||||
\tableofcontents
|
||||
|
||||
$body$
|
||||
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user