Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

71 lines (62 sloc) 2.284 kb
% \iffalse
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{etoolbox}
\RequirePackage{expl3}
\RequirePackage{xparse}
\RequirePackage{l3keys2e}
\ProvidesExplClass{mltxdoc}{2015/04/01}{4.0}{Minion LaTeX Doc class}
% \fi
%
% \section{MLTXDoc}
%
% This is a simple class based on \pkg{marticle}, and is used to typeset this
% document.
% \begin{macrocode}
\cs_gset_eq:NN \reversemarginpar \prg_do_nothing:
\LoadClassWithOptions{marticle}
\RequirePackage{parskip}
\raggedbottom
\dim_new:N \g_mltxdoc_charwidth_dim
\settowidth{\g_mltxdoc_charwidth_dim}{\texttt{\normalsize 0}}
\geometry{textwidth=85\g_mltxdoc_charwidth_dim}
\DeclareDocumentCommand\srcname{m}{\texttt{\hyphenchar\font=-1#1}}
\DeclareDocumentCommand\pkgname{m}{\textsf{\hyphenchar\font=-1#1}}
\DeclareDocumentCommand\optname{m}{\textsf{\hyphenchar\font=-1#1}}
\DeclareDocumentCommand\envname{m}{\texttt{\hyphenchar\font=-1#1}}
\DeclareDocumentCommand\valname{m}{\texttt{\hyphenchar\font=-1#1}}
\DeclareDocumentCommand\macname{m}{\texttt{\hyphenchar\font=-1\char`\\#1}}
\DeclareDocumentCommand\pkg{m}{\textcolor{MBlue} {\pkgname{#1}}}
\DeclareDocumentCommand\opt{m}{\textcolor{MGreen} {\optname{#1}}}
\DeclareDocumentCommand\env{m}{\textcolor{MYellow}{\envname{#1}}}
\DeclareDocumentCommand\val{m}{\textcolor{MBrown} {\valname{#1}}}
\DeclareDocumentCommand\mac{m}{\textcolor{MRed} {\macname{#1}}}
\DeclareDocumentCommand\optdefine{m m m}{
\opt{#1}~[\srcname{#2}]~(\val{#3})\hfill\strut\linebreak\ignorespaces
}
\DeclareDocumentCommand\envdefine{m}{
\env{#1}\hfill\strut\linebreak\ignorespaces
}
\DeclareDocumentCommand\macdefine{m m}{
\mac{#1} \srcname{#2}\hfill\strut\linebreak\ignorespaces
}
\AtEndPreamble{
\RequirePackage{doc}
\MakeShortVerb{\"}
\CodelineNumbered
\DeclareDocumentCommand\theCodelineNo{}{
\normalfont\sffamily\tbfigures\txfigures\scriptsize
\color{MGrey}\arabic{CodelineNo}
}
\DeclareDocumentCommand\Module{m}{\textsf{<#1>}}
\DeclareDocumentCommand\AltMacroFont{}{\upshape\ttfamily}
\DeclareDocumentCommand\DocstyleParms{}{
\IndexMin 80pt
\marginparwidth 126pt
\marginparpush 0pt
\tolerance 200
\MacroTopsep \baselineskip plus 1pt minus 1pt
\MacrocodeTopsep \baselineskip plus 1pt minus 1pt
\MacroIndent 1.5em
}
}
% \end{macrocode}
Jump to Line
Something went wrong with that request. Please try again.