]> granicus.if.org Git - multimarkdown/commitdiff
CHANGED: Adjust LaTeX support files
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Mon, 27 Mar 2017 17:32:49 +0000 (13:32 -0400)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Mon, 27 Mar 2017 17:32:49 +0000 (13:32 -0400)
24 files changed:
CMakeLists.txt
texmf/tex/latex/mmd6/README.md [new file with mode: 0644]
texmf/tex/latex/mmd6/article/mmd6-article-begin.tex [moved from texmf/tex/latex/mmd6/mmd6-article-begin.tex with 100% similarity]
texmf/tex/latex/mmd6/article/mmd6-article-footer.tex [moved from texmf/tex/latex/mmd6/mmd6-article-footer.tex with 100% similarity]
texmf/tex/latex/mmd6/article/mmd6-article-leader.tex [moved from texmf/tex/latex/mmd6/mmd6-article-leader.tex with 100% similarity]
texmf/tex/latex/mmd6/letterhead/mmd-envelope.sty [new file with mode: 0644]
texmf/tex/latex/mmd6/letterhead/mmd-letterhead.sty [new file with mode: 0644]
texmf/tex/latex/mmd6/letterhead/mmd6-letterhead-begin.tex [new file with mode: 0644]
texmf/tex/latex/mmd6/letterhead/mmd6-letterhead-footer.tex [new file with mode: 0644]
texmf/tex/latex/mmd6/letterhead/mmd6-letterhead-leader.tex [new file with mode: 0644]
texmf/tex/latex/mmd6/shared/mmd6-criticmarkup.tex [moved from texmf/tex/latex/mmd6/mmd6-criticmarkup.tex with 100% similarity]
texmf/tex/latex/mmd6/shared/mmd6-default-metadata.tex [moved from texmf/tex/latex/mmd6/mmd6-default-metadata.tex with 100% similarity]
texmf/tex/latex/mmd6/shared/mmd6-memoir-footer.tex [moved from texmf/tex/latex/mmd6/mmd6-memoir-footer.tex with 100% similarity]
texmf/tex/latex/mmd6/shared/mmd6-memoir-layout-8.5x11.tex [moved from texmf/tex/latex/mmd6/mmd6-memoir-layout-8.5x11.tex with 100% similarity]
texmf/tex/latex/mmd6/shared/mmd6-memoir-packages.tex [moved from texmf/tex/latex/mmd6/mmd6-memoir-packages.tex with 100% similarity]
texmf/tex/latex/mmd6/shared/mmd6-memoir-setup.tex [moved from texmf/tex/latex/mmd6/mmd6-memoir-setup.tex with 100% similarity]
texmf/tex/latex/mmd6/shared/mmd6-title.tex [moved from texmf/tex/latex/mmd6/mmd6-title.tex with 100% similarity]
texmf/tex/latex/mmd6/shared/mmd6-tufte-footer.tex [moved from texmf/tex/latex/mmd6/mmd6-tufte-footer.tex with 100% similarity]
texmf/tex/latex/mmd6/tufte-book/mmd6-tufte-book-begin.tex [moved from texmf/tex/latex/mmd6/mmd6-tufte-book-begin.tex with 100% similarity]
texmf/tex/latex/mmd6/tufte-book/mmd6-tufte-book-footer.tex [moved from texmf/tex/latex/mmd6/mmd6-tufte-book-footer.tex with 100% similarity]
texmf/tex/latex/mmd6/tufte-book/mmd6-tufte-book-leader.tex [moved from texmf/tex/latex/mmd6/mmd6-tufte-book-leader.tex with 100% similarity]
texmf/tex/latex/mmd6/tufte-handout/mmd6-tufte-handout-begin.tex [moved from texmf/tex/latex/mmd6/mmd6-tufte-handout-begin.tex with 100% similarity]
texmf/tex/latex/mmd6/tufte-handout/mmd6-tufte-handout-footer.tex [moved from texmf/tex/latex/mmd6/mmd6-tufte-handout-footer.tex with 100% similarity]
texmf/tex/latex/mmd6/tufte-handout/mmd6-tufte-handout-leader.tex [moved from texmf/tex/latex/mmd6/mmd6-tufte-handout-leader.tex with 100% similarity]

index 8e9537425b1383d0164e9fa58bf82b41ad3e0cfc..6e3097538a61e95ef73c5dfd41e8eb1fc3d52b08 100644 (file)
@@ -236,22 +236,33 @@ set (scripts
 )
 
 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'
diff --git a/texmf/tex/latex/mmd6/README.md b/texmf/tex/latex/mmd6/README.md
new file mode 100644 (file)
index 0000000..71641ca
--- /dev/null
@@ -0,0 +1,42 @@
+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.
diff --git a/texmf/tex/latex/mmd6/letterhead/mmd-envelope.sty b/texmf/tex/latex/mmd6/letterhead/mmd-envelope.sty
new file mode 100644 (file)
index 0000000..a2e633f
--- /dev/null
@@ -0,0 +1,60 @@
+%
+%      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}{}{}{} 
diff --git a/texmf/tex/latex/mmd6/letterhead/mmd-letterhead.sty b/texmf/tex/latex/mmd6/letterhead/mmd-letterhead.sty
new file mode 100644 (file)
index 0000000..889e796
--- /dev/null
@@ -0,0 +1,70 @@
+%
+%      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}{}{}{}
diff --git a/texmf/tex/latex/mmd6/letterhead/mmd6-letterhead-begin.tex b/texmf/tex/latex/mmd6/letterhead/mmd6-letterhead-begin.tex
new file mode 100644 (file)
index 0000000..9db23f2
--- /dev/null
@@ -0,0 +1,168 @@
+%
+%      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
+
diff --git a/texmf/tex/latex/mmd6/letterhead/mmd6-letterhead-footer.tex b/texmf/tex/latex/mmd6/letterhead/mmd6-letterhead-footer.tex
new file mode 100644 (file)
index 0000000..0028a5a
--- /dev/null
@@ -0,0 +1,7 @@
+%
+%      MultiMarkdown memoir class footer file
+%
+
+\signature
+
+\input{mmd-memoir-footer}
\ No newline at end of file
diff --git a/texmf/tex/latex/mmd6/letterhead/mmd6-letterhead-leader.tex b/texmf/tex/latex/mmd6/letterhead/mmd6-letterhead-leader.tex
new file mode 100644 (file)
index 0000000..5fbbbce
--- /dev/null
@@ -0,0 +1,17 @@
+%
+%      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}