)
set (latex
- texmf/tex/latex/mmd6/mmd6-article-begin.tex
- texmf/tex/latex/mmd6/mmd6-article-footer.tex
- texmf/tex/latex/mmd6/mmd6-article-leader.tex
- texmf/tex/latex/mmd6/mmd6-criticmarkup.tex
- texmf/tex/latex/mmd6/mmd6-default-metadata.tex
- texmf/tex/latex/mmd6/mmd6-memoir-footer.tex
- texmf/tex/latex/mmd6/mmd6-memoir-layout-8.5x11.tex
- texmf/tex/latex/mmd6/mmd6-memoir-packages.tex
- texmf/tex/latex/mmd6/mmd6-memoir-setup.tex
- texmf/tex/latex/mmd6/mmd6-tufte-book-begin.tex
- texmf/tex/latex/mmd6/mmd6-tufte-book-footer.tex
- texmf/tex/latex/mmd6/mmd6-tufte-book-leader.tex
- texmf/tex/latex/mmd6/mmd6-tufte-footer.tex
- texmf/tex/latex/mmd6/mmd6-tufte-handout-begin.tex
- texmf/tex/latex/mmd6/mmd6-tufte-handout-footer.tex
- texmf/tex/latex/mmd6/mmd6-tufte-handout-leader.tex
+ texmf/tex/latex/mmd6/README.md
+
+ texmf/tex/latex/mmd6/article/mmd6-article-begin.tex
+ texmf/tex/latex/mmd6/article/mmd6-article-footer.tex
+ texmf/tex/latex/mmd6/article/mmd6-article-leader.tex
+
+ texmf/tex/latex/mmd6/letterhead/mmd-envelope.sty
+ texmf/tex/latex/mmd6/letterhead/mmd-letterhead.sty
+ texmf/tex/latex/mmd6/letterhead/mmd6-letterhead-begin.tex
+ texmf/tex/latex/mmd6/letterhead/mmd6-letterhead-footer.tex
+ texmf/tex/latex/mmd6/letterhead/mmd6-letterhead-leader.tex
+
+ texmf/tex/latex/mmd6/shared/mmd6-criticmarkup.tex
+ texmf/tex/latex/mmd6/shared/mmd6-default-metadata.tex
+ texmf/tex/latex/mmd6/shared/mmd6-memoir-footer.tex
+ texmf/tex/latex/mmd6/shared/mmd6-memoir-layout-8.5x11.tex
+ texmf/tex/latex/mmd6/shared/mmd6-memoir-packages.tex
+ texmf/tex/latex/mmd6/shared/mmd6-memoir-setup.tex
+ texmf/tex/latex/mmd6/shared/mmd6-title.tex
+ texmf/tex/latex/mmd6/shared/mmd6-tufte-footer.tex
+
+ texmf/tex/latex/mmd6/tufte-book/mmd6-tufte-book-begin.tex
+ texmf/tex/latex/mmd6/tufte-book/mmd6-tufte-book-footer.tex
+ texmf/tex/latex/mmd6/tufte-book/mmd6-tufte-book-leader.tex
+ texmf/tex/latex/mmd6/tufte-handout/mmd6-tufte-handout-begin.tex
+ texmf/tex/latex/mmd6/tufte-handout/mmd6-tufte-handout-footer.tex
+ texmf/tex/latex/mmd6/tufte-handout/mmd6-tufte-handout-leader.tex
)
# Public headers, will be installed in 'include'
--- /dev/null
+Title: LaTeX Support Files
+Author: Fletcher T. Penney
+Date: 2017-03-27
+
+
+## Introduction ##
+
+This folder includes the LaTeX support files for MMD. They have been renamed
+for MMD v6.
+
+The files are organized into directories using a naming convention compatible
+with the MMD 6 `LaTeX Config` metadata key:
+
+ TItle: Some Title
+ LaTeX Config: article
+
+Each configuration would have three files, named:
+
+1. mmd6-foo-leader.tex
+2. mmd6-foo-begin.tex
+3. mmd6-foo-footer.tex
+
+(where `foo` is the name of the configuration)
+
+Each of these files can reference other files, and the common configuration
+files used in the default setups are stored in the `shared` directory.
+
+
+## Installation ##
+
+These files need to go in your `texmf` folder, wherever that may be.
+
+With MacTeX on Mac OS X:
+
+ ~/Library/texmf/tex/latex/mmd
+
+On most *nix accounts, you can use:
+
+ ~/texmf/tex/latex/mmd
+
+I don't remember off the top of my head where your texmf folder belongs in
+Windows.
--- /dev/null
+%
+% LaTeX MMD-Envelope style
+%
+% Designed for use with the memoir class
+% and letterhead XSLT for MultiMarkdown
+%
+% by Fletcher T. Penney
+% http://fletcherpenney.net/
+%
+
+% Copyright (C) 2008 Fletcher T. Penney <fletcher@fletcherpenney.net>
+%
+% This program is free software; you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation; either version 2 of the License, or
+% (at your option) any later version.
+%
+% This program is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with this program; if not, write to the
+% Free Software Foundation, Inc.
+% 59 Temple Place, Suite 330
+% Boston, MA 02111-1307 USA
+
+
+\ProvidesPackage{mmd-envelope}
+
+% Define an accent color and return address color
+\definecolor{accent}{HTML}{888888}
+\definecolor{returnaddress}{HTML}{000000}
+
+
+%%% set up the page layout for #10 Business envelope
+\setstocksize{4.125in}{9.5in}
+\settrimmedsize{4.125in}{9.5in}{*} % Use entire page
+\settrims{0pt}{0pt}
+
+\setlrmarginsandblock{0.5in}{1in}{*}
+\setulmarginsandblock{0.5in}{1in}{*}
+
+\setmarginnotes{0.1pt}{0.5in}{\onelineskip}
+\setheadfoot{0.5\onelineskip}{2\onelineskip}
+\setheaderspaces{*}{2\onelineskip}{*}
+
+\setlength{\headwidth}{\textwidth}
+\addtolength{\headwidth}{\marginparsep}
+\addtolength{\headwidth}{\marginparwidth}
+
+\checkandfixthelayout
+
+\makepagestyle{envelope}
+\makeheadrule{envelope}{0pt}{0pt}
+\makeevenhead{envelope}{}{}{}
+\makeoddhead{envelope}{}{}{}
+\makeevenfoot{envelope}{}{}{}
+\makeoddfoot{envelope}{}{}{}
--- /dev/null
+%
+% LaTeX MMD-Letterhead style
+%
+% Designed for use with the memoir class
+% and letterhead XSLT for MultiMarkdown
+%%
+% by Fletcher T. Penney
+% http://fletcherpenney.net/
+%
+
+% Copyright (C) 2007-2008 Fletcher T. Penney <fletcher@fletcherpenney.net>
+%
+% This program is free software; you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation; either version 2 of the License, or
+% (at your option) any later version.
+%
+% This program is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with this program; if not, write to the
+% Free Software Foundation, Inc.
+% 59 Temple Place, Suite 330
+% Boston, MA 02111-1307 USA
+
+
+\ProvidesPackage{mmd-letterhead}
+
+% Define an accent color and return address color
+\definecolor{accent}{HTML}{888888}
+\definecolor{returnaddress}{HTML}{000000}
+
+
+%%% set up the page layout for 8.5 x 11 paper
+\setstocksize{11in}{8.5in}
+\settrimmedsize{11in}{8.5in}{*} % Use entire page
+\settrims{0pt}{0pt}
+
+\setlrmarginsandblock{1in}{1in}{*}
+\setulmarginsandblock{1in}{1in}{*}
+
+\setmarginnotes{0.1pt}{0.5in}{\onelineskip}
+\setheadfoot{0.5\onelineskip}{2\onelineskip}
+\setheaderspaces{*}{2\onelineskip}{*}
+
+\setlength{\headwidth}{\textwidth}
+\addtolength{\headwidth}{\marginparsep}
+\addtolength{\headwidth}{\marginparwidth}
+
+\checkandfixthelayout
+
+
+% Separate style for cover page
+\makepagestyle{letterhead-cover}
+\makeheadrule{letterhead-cover}{0pt}{0pt}
+\makeevenhead{letterhead-cover}{}{}{}
+\makeoddhead{letterhead-cover}{}{}{}
+\makeevenfoot{letterhead-cover}{}{}{}
+\makeoddfoot{letterhead-cover}{}{}{}
+
+% And just page number on other pages
+\makepagestyle{letterhead}
+\makeheadrule{letterhead}{0pt}{0pt}
+\makeevenhead{letterhead}{}{}{\thepage}
+\makeoddhead{letterhead}{}{}{\thepage}
+\makeevenfoot{letterhead}{}{}{}
+\makeoddfoot{letterhead}{}{}{}
--- /dev/null
+%
+% Get ready for the actual document
+%
+
+% Black and White Option
+\ifx\blackandwhite\undefined
+ \def\musclogo{Logo-Color.pdf}
+\else
+ \definecolor{accent}{HTML}{000000}
+ \definecolor{returnaddress}{HTML}{000000}
+ \def\musclogo{Logo-BW.pdf}
+\fi
+
+
+\ifx\mydate\undefined
+ \def\mydate{\today}
+\fi
+
+\usepackage[
+ plainpages=false,
+ pdfpagelabels,
+ pdftitle={\mytitle},
+ pagebackref,
+ pdfauthor={\myauthor},
+ pdfkeywords={\mykeywords}
+ ]{hyperref}
+\usepackage{memhfixc}
+
+\def\justauthor{\myauthor}
+
+% Define signature graphic?
+\ifx\signature\undefined
+ \def\signature{~ \\ Sincerely,\\
+ \ifx\graphicsignature\undefined
+
+ \else
+ \resizebox{2in}{!}{\includegraphics{signature}}\\
+ \fi
+\justauthor}
+\else
+\fi
+
+% Create return address
+\def\returnaddress{\raggedleft
+\footnotesize
+\renewcommand{\baselinestretch}{1.1}
+
+\textbf{\myauthor} \\}
+
+\ifx\position\undefined
+\addtodef{\returnaddress}{}{\emph{\defaultposition}}
+\else
+ \addtodef{\returnaddress}{}{\emph{\position} \\}
+\fi
+
+\ifx\email\undefined
+\addtodef{\returnaddress}{}{\emph{\defaultemail}
+
+~
+
+}
+\else
+ \addtodef{\returnaddress}{}{\emph{\email}
+
+~
+
+}
+\fi
+
+\ifx\department\undefined
+\addtodef{\returnaddress}{}{\textbf{\defaultdepartment}}
+\else
+ \addtodef{\returnaddress}{}{\textbf{\department} \\}
+\fi
+
+\ifx\afffiliation\undefined
+\addtodef{\returnaddress}{}{\textbf{\defaultaffiliation}}
+\else
+ \addtodef{\returnaddress}{}{\textbf{\affiliation} \\}
+\fi
+
+\ifx\address\undefined
+\addtodef{\returnaddress}{}{\defaultaddress}
+\else
+ \addtodef{\returnaddress}{}{\address \\}
+\fi
+
+\ifx\phone\undefined
+\addtodef{\returnaddress}{}{\defaultphone}
+\else
+ \addtodef{\returnaddress}{}{Tel \phone \\}
+\fi
+
+
+\ifx\fax\undefined
+\addtodef{\returnaddress}{}{\defaultfax}
+\else
+ \addtodef{\returnaddress}{}{Fax \fax \\}
+\fi
+
+\ifx\web\undefined
+\addtodef{\returnaddress}{}{\defaultweb
+}
+\else
+ \addtodef{\returnaddress}{}{ \web \\
+}
+\fi
+
+\usepackage{mmd-letterhead}
+
+\begin{document}
+
+\VerbatimFootnotes
+
+\setlength{\parindent}{0pt}
+
+% Configure Recipient
+
+\ifx\recipient\undefined
+\else
+ \addtodef{\myrecipient}{}{\recipient}
+\fi
+
+\ifx\recipientaddress\undefined
+\else
+ \addtodef{\myrecipient}{}{\\ \recipientaddress}
+\fi
+
+
+\mainmatter
+
+% User coverpage style
+\thispagestyle{letterhead-cover}
+
+% Insert return address
+
+\begin{figure}[t]
+\begin{adjustwidth}{-0.5in}{-0.5in}
+\begin{minipage}[l][\logoheight]{4in}
+ \coverlogo
+ \vspace*{\fill}
+\end{minipage}
+\hfill
+\begin{minipage}[r][\logoheight]{2in}
+ {\renewcommand{\baselinestretch}{1.1}
+ \color{returnaddress}\returnaddress}
+ \vspace*{\fill}
+\end{minipage}
+\end{adjustwidth}
+\end{figure}
+
+
+\pagestyle{letterhead}
+\large
+% Return to main settings
+
+
+\renewcommand{\baselinestretch}{1.2}
+\setlength{\parskip}{12pt}
+
+%\input{mmd-title}
+
+% Insert Recipient
+\myrecipient
+
+% Insert date
+\mydate
+
--- /dev/null
+%
+% MultiMarkdown memoir class footer file
+%
+
+\signature
+
+\input{mmd-memoir-footer}
\ No newline at end of file
--- /dev/null
+%
+% Configure LaTeX to produce a PDF letter using the memoir class
+%
+\documentclass[oneside,article]{memoir}
+
+% Default logo settings to avoid errors
+\def\logoheight{1.7in}
+\def\coverlogo{}
+
+
+\usepackage{xcolor} % Allow for color (annotations)
+
+\definecolor{accent}{HTML}{000000}
+\definecolor{returnaddress}{HTML}{000000}
+\def\usexelatex{true}
+
+\input{mmd-memoir-setup}