Permalink
Browse files

Initialize support files

  • Loading branch information...
0 parents commit 66ecf4728fb6ce47f15a6f7a06ee7e7618babfae @fletcher committed Dec 9, 2010
@@ -0,0 +1,37 @@
+%
+% For setup that must follow metadata included in the document
+%
+
+\usepackage[
+ plainpages=false,
+ pdfpagelabels,
+ pdftitle={\mytitle},
+ pagebackref,
+ pdfauthor={\myauthor},
+ pdfkeywords={\mykeywords}
+ ]{hyperref}
+\usepackage{memhfixc}
+
+
+\input{mmd-title}
+
+
+\begin{document}
+
+\title{\mytitle}
+\author{\myauthor}
+
+\mainmatter
+\maketitle
+
+
+% Copyright
+\setlength{\parindent}{0pt}
+
+\ifx\copyright\undefined
+\else
+ \textcopyright{} \copyright
+\fi
+
+\setlength{\parindent}{1em}
+
@@ -0,0 +1,7 @@
+%
+% Configure LaTeX to produce an article using the memoir class
+%
+
+\documentclass[oneside,article]{memoir}
+
+\input{mmd-memoir-setup}
@@ -0,0 +1,41 @@
+%
+% Get ready for the actual document
+%
+
+%
+% Use default MMD metadata for beamer equivalents
+%
+
+\ifx\subtitle\undefined
+\else
+ \oldSubtitle{\subtitle}
+\fi
+
+\ifx\affiliation\undefined
+\else
+ \institute{\affiliation}
+\fi
+
+\ifx\event\undefined
+\else
+ \date[\mydate]{\mydate~ / \event }
+\fi
+
+
+%\input{mmd-title}
+
+% Show "current/total" slide counter in footer
+\title[\mytitle\hspace{2em}\insertframenumber/
+\inserttotalframenumber]{\mytitle}
+
+
+\author{\myauthor}
+\addtolength{\parskip}{\baselineskip}
+
+\ifx\theme\undefined
+\else
+ \usetheme{\theme}
+\fi
+
+\begin{document}
+\frame{\setlength\parskip{0pt}\titlepage}
@@ -0,0 +1,14 @@
+%
+% MultiMarkdown beamer class footer file
+%
+
+\ifx\bibliocommand\undefined
+\else
+ \part{Bibliography}
+ \begin{frame}[allowframebreaks]
+ \frametitle{Bibliography}
+ \bibliographystyle{\bibliostyle}
+ \def\newblock{}
+ \bibliocommand
+ \end{frame}
+\fi
@@ -0,0 +1,39 @@
+%
+% Configure LaTeX to produce a PDF presentation using the beamer class
+%
+
+\documentclass[ignorenonframetext,11pt]{beamer}
+%\documentclass[onesided]{article}
+%\usepackage{graphicx}
+%\usepackage{beamerarticle}
+
+\usepackage{beamerthemesplit}
+\usepackage{patchcmd}
+\usepackage{tabulary} % Support longer table cells
+\usepackage{booktabs} % Support better tables
+\usepackage[sort&compress]{natbib}
+
+\usepackage{framed} % Allow background color for images
+\definecolor{shadecolor}{named}{white}
+
+
+\usepackage{subfigure}
+
+\let\oldSubtitle\subtitle
+
+
+% Configure default metadata
+\input{mmd-default-metadata}
+
+
+\AtBeginSection[]
+{
+ \begin{frame}
+ \frametitle{Outline}
+ \tableofcontents[currentsection,currentsubsection]
+ \end{frame}
+}
+
+
+\long\def\citefoot#1{\let\thefootnote\relax\footnotetext{\citet{#1}} }
+
@@ -0,0 +1,23 @@
+%
+% Configure default metadata in case it's missing to avoid errors
+%
+
+\def\myauthor{Author}
+\def\defaultposition{}
+\def\defaultemail{}
+\def\defaultdepartment{}
+\def\defaultaddress{}
+\def\returnaddress{}
+
+\def\mytitle{Title}
+\def\subtitle{}
+\def\mykeywords{}
+
+\def\bibliostyle{plain}
+% \def\bibliocommand{}
+
+\def\myrecipient{}
+
+% Overwrite with your own if desired
+\input{ftp-metadata}
+
@@ -0,0 +1,46 @@
+%
+% Get ready for the actual document
+%
+
+\usepackage[
+ plainpages=false,
+ pdfpagelabels,
+ pdftitle={\mytitle},
+ pagebackref,
+ pdfauthor={\myauthor},
+ pdfkeywords={\mykeywords}
+ ]{hyperref}
+\usepackage{memhfixc}
+
+
+\input{mmd-title}
+\title{\mytitle}
+\author{\myauthor}
+
+\ifx\theme\undefined
+\else
+ \usetheme{\theme}
+\fi
+
+\begin{document}
+
+
+\chapterstyle{\mychapterstyle}
+\pagestyle{\mypagestyle}
+
+% Frontmatter
+\frontmatter
+
+% Title Page
+\maketitle
+\clearpage
+
+\input{mmd-memoir-copyright}
+
+\tableofcontents
+%\listoffigures
+%\listoftables
+
+
+\mainmatter
+
@@ -0,0 +1,19 @@
+%
+% Copyright Page
+%
+
+\vspace*{\fill}
+\setlength{\parindent}{0pt}
+
+\ifx\copyright\undefined
+\else
+ \textcopyright{} \copyright
+\fi
+
+\begin{center}
+ \framebox{ \parbox[t]{1.5in}{\centering Formatted for \LaTeX \\
+ by MultiMarkdown}}
+\end{center}
+
+\setlength{\parindent}{1em}
+\clearpage
@@ -0,0 +1,27 @@
+%
+% MultiMarkdown default footer file
+%
+
+
+% Back Matter
+\backmatter
+
+
+% Bibliography
+
+\ifx\bibliocommand\undefined
+\else
+ \bibliographystyle{\bibliostyle}
+ \bibliocommand
+\fi
+
+
+
+% Glossary
+\printglossaries
+
+
+% Index
+\printindex
+
+\end{document}
@@ -0,0 +1,7 @@
+%
+% Configure LaTeX to produce a PDF "book" using the memoir class
+%
+
+\documentclass[10pt,oneside]{memoir}
+
+\input{mmd-memoir-setup}
@@ -0,0 +1,35 @@
+%
+% 8.5 x 11 layout for memoir-based documents
+%
+
+
+%%% need more space for ToC page numbers
+\setpnumwidth{2.55em}
+\setrmarg{3.55em}
+
+%%% need more space for ToC section numbers
+\cftsetindents{part}{0em}{3em}
+\cftsetindents{chapter}{0em}{3em}
+\cftsetindents{section}{3em}{3em}
+\cftsetindents{subsection}{4.5em}{3.9em}
+\cftsetindents{subsubsection}{8.4em}{4.8em}
+\cftsetindents{paragraph}{10.7em}{5.7em}
+\cftsetindents{subparagraph}{12.7em}{6.7em}
+
+%%% need more space for LoF numbers
+\cftsetindents{figure}{0em}{3.0em}
+
+%%% and do the same for the LoT
+\cftsetindents{table}{0em}{3.0em}
+
+%%% set up the page layout
+\settrimmedsize{\stockheight}{\stockwidth}{*} % Use entire page
+\settrims{0pt}{0pt}
+
+\setlrmarginsandblock{1.5in}{1.5in}{*}
+\setulmarginsandblock{1.5in}{1.5in}{*}
+
+\setmarginnotes{17pt}{51pt}{\onelineskip}
+\setheadfoot{\onelineskip}{2\onelineskip}
+\setheaderspaces{*}{2\onelineskip}{*}
+\checkandfixthelayout
@@ -0,0 +1,13 @@
+%
+% Default packages for memoir documents created by MultiMarkdown
+%
+
+\usepackage{fancyvrb} % Allow \verbatim et al. in footnotes
+\usepackage{graphicx} % To enable including graphics in pdf's
+\usepackage{booktabs} % Better tables
+\usepackage{tabulary} % Support longer table cells
+\usepackage[utf8]{inputenc} % For UTF-8 support
+\usepackage[T1]{fontenc} % Use T1 font encoding for accented characters
+\usepackage{xcolor} % Allow for color (annotations)
+
+\VerbatimFootnotes
@@ -0,0 +1,31 @@
+%
+% Generic Configuration for memoir-based documents
+%
+
+\usepackage{layouts}[2001/04/29]
+
+
+% In case we need a glossary, or index
+\usepackage{glossaries}
+\glstoctrue
+\makeglossaries
+\makeindex
+
+
+% Basic page layout configuration
+\def\mychapterstyle{default}
+\def\mypagestyle{headings}
+
+
+% Use 8.5 x 11 inch page layout
+\input{mmd-memoir-layout-8.5x11}
+
+
+% Use default packages for memoir setup
+\input{mmd-memoir-packages}
+
+
+% Configure default metadata to avoid errors
+\input{mmd-default-metadata}
+
+
Oops, something went wrong.

0 comments on commit 66ecf47

Please sign in to comment.