From 77c2ca3b3b5707b3b71717e1f270363f8b79ae21 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 19 Jan 2015 23:41:46 +0000
Subject: voss-mathmode (19jan15)

git-svn-id: svn://tug.org/texlive/trunk@36093 c570f23f-e606-0410-a88d-b1316a301751
---
 .../doc/latex/voss-mathmode/Mathmode.ltx           | 53 ++++++++++++++--------
 1 file changed, 35 insertions(+), 18 deletions(-)

(limited to 'Master/texmf-dist/doc/latex/voss-mathmode/Mathmode.ltx')

diff --git a/Master/texmf-dist/doc/latex/voss-mathmode/Mathmode.ltx b/Master/texmf-dist/doc/latex/voss-mathmode/Mathmode.ltx
index b2d5185e93f..067759d943c 100644
--- a/Master/texmf-dist/doc/latex/voss-mathmode/Mathmode.ltx
+++ b/Master/texmf-dist/doc/latex/voss-mathmode/Mathmode.ltx
@@ -4,7 +4,7 @@
 %% IMPORTANT NOTICE:
 %%
 %% Herbert Voss <hvoss@tug.org>
-%% 2005-06-30
+%% (C) 2008/2009/2010
 %%
 %% This program can be redistributed and/or modified under the terms
 %% of the LaTeX Project Public License Distributed from CTAN archives
@@ -13,19 +13,28 @@
 %% DESCRIPTION:
 %%   `Mathmode' is a document how the math mode works inside LaTeX
 %%
+%
+\def\MathmodeVersion{2.47}
+%
 \listfiles
-\documentclass[11pt,a4paper,english]{article}
+\documentclass[11pt,a4paper,english,twoside]{article}
 \usepackage{fixltx2e}%% the official fixes for LaTeX2e
 \usepackage[T1]{fontenc}
-\usepackage[latin1]{inputenc}
+\usepackage[utf8]{inputenc}
+%\usepackage{pamathx}%    use this if you have the commercial palatino math font
+%\usepackage{arev}%  use this if you do not have the palatino math font
+\usepackage{bera}
 %\usepackage{lmodern}
+%\usepackage[scaled=0.85]{luximono}%  use this if you do not have the palatino math font
 %
+\usepackage[marginparwidth=80pt,bmargin=3cm,tmargin=2cm]{geometry}
 \usepackage{ifpdf}
 \usepackage{ifvtex}
 \ifvtex\pdffalse\fi
 \usepackage{comment}
 \usepackage{graphicx}
 \usepackage{varwidth}
+\usepackage{paralist}
 \usepackage{array}
 \usepackage{delarray}
 \usepackage{tabularx}
@@ -34,6 +43,7 @@
 \usepackage{amsopn}
 \usepackage{bm}
 \usepackage{upgreek}
+\usepackage{ragged2e}
 \usepackage{cancel}
 \newcommand\hcancel[2][black]{\setbox0=\hbox{#2}%
 	\rlap{\raisebox{.45\ht0}{\textcolor{#1}{\rule{\wd0}{1pt}}}}#2}
@@ -211,9 +221,13 @@
 \usepackage{fancyhdr}
 %
 \pagestyle{fancy}
-\lfoot{\footnotesize\ttfamily\jobname.tex}
-\cfoot{}
-\rfoot{\thepage}
+\fancyhead[LE,RO]{\leftmark}
+\fancyhead[LO,RE]{\rightmark}
+\fancyhead[C]{}
+\fancyfoot[LO,RE]{\footnotesize\ttfamily\jobname.tex\quad v.\MathmodeVersion}
+%\cfoot{}
+\fancyfoot[LE,RO]{\thepage}
+\fancyfoot[C]{}
 \renewcommand{\headrulewidth}{0pt}
 \renewcommand{\footrulewidth}{0pt}
 %
@@ -223,29 +237,31 @@
 \addtocontents{toc}{\hfill Page\endgraf\vspace{-4ex}}
 \addtocontents{lof}{\ Figure\hfill Page}
 \addtocontents{lot}{\ Table\hfill Page}
+\makeatletter
+\renewcommand\@pnumwidth{3.5em}
+\renewcommand*\l@subsection{\@dottedtocline{2}{1.75em}{3.25em}}
+\renewcommand*\l@subsubsection{\@dottedtocline{3}{4em}{4em}}
+\makeatother
 \let\myPart\part
 \renewcommand\part[1]{\clearpage\myPart{#1}}
 %
 %%%%%%%%%%%%% Math symbols %%%%%%%%%%%%%%%%%
 \newcommand{\mysin}{\operatorname{mysin}}
-\newcommand{\eqdef}{\ensuremath{\stackrel{\mathrm{def}}{=}}}
-\newcommand{\eqexcl}{\ensuremath{\stackrel{\mathrm{!}}{=}}}
-\newcommand{\eqhat}{\ensuremath{\widehat{=}}}
+\newcommand{\eqdef}{\ensuremath{\mathrel{\stackrel{\mathrm{def}}{=}}}}
+\newcommand{\eqexcl}{\ensuremath{\mathrel{\stackrel{\mathrm{!}}{=}}}}
+\newcommand{\eqhat}{\ensuremath{\mathrel{\widehat{=}}}}
 %
 \newlength{\fullwidth}
 \setlength\fullwidth{\textwidth}
-\addtolength\fullwidth{\marginparsep}
-\addtolength\fullwidth{\marginparwidth}
+%\addtolength\fullwidth{\marginparsep}
+%\addtolength\fullwidth{\marginparwidth}
+\addtolength\fullwidth{\evensidemargin}
 %
 \newlength{\LBoxWidth}
 \newcommand{\LyXBox}[1]{%
   \settowidth{\LBoxWidth}{#1}
   \fbox{\parbox[c]{\LBoxWidth}{#1}}\xspace%
 }
-\let\mpar\marginpar
-\renewcommand\marginpar[1]{%
-  \mpar{\small #1}%
-}
 \newcommand{\logo}{%
   \bgroup
   \psset{unit=1in,linewidth=2pt}
@@ -255,7 +271,7 @@
   \rput[lb]{90}(-2.15,-0.1\paperheight){\red\Huge\textbf{Documentation}}
   \egroup
 }
-\newcommand*{\CMD}[1]{\texttt{\textbackslash#1}}
+\newcommand*{\CMD}[1]{{\tt\textbackslash#1}}
 %
 \makeatletter
 \def\La{%
@@ -376,11 +392,12 @@
 \def\cAny{(\Coordx{},\kern 1pt\Coordy{})}
 \def\ciiiAny{(\Coordx{},\kern 1pt\Coordy{},\kern 1pt\Coordy{})}% hv
 
-
+\def\mPar#1{\marginpar[\RaggedLeft\small#1]{\RaggedRight\small#1}}
+\usepackage{layout}
 
 \graphicspath{{images/}}
 \begin{document}
 
-\input{Mathmode.tex}
+\input{MathmodeOrig.tex}
 
 \end{document}
-- 
cgit v1.2.3

