summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-12-26 22:59:27 +0000
committerKarl Berry <karl@freefriends.org>2006-12-26 22:59:27 +0000
commit2503beec69ff30090720f0148d220f7363a674ef (patch)
treea421af941e00298ee5fa4bd4b401f7faa6bc9e02 /Master/texmf-dist
parentf3cd1dc8b933fb284a989eb978e81126308c58f5 (diff)
ltxmisc update
git-svn-id: svn://tug.org/texlive/trunk@2948 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/tex/latex/ltxmisc/authoraftertitle.sty32
-rw-r--r--Master/texmf-dist/tex/latex/ltxmisc/sansmath.sty85
-rw-r--r--Master/texmf-dist/tpm/ltxmisc.tpm3
3 files changed, 91 insertions, 29 deletions
diff --git a/Master/texmf-dist/tex/latex/ltxmisc/authoraftertitle.sty b/Master/texmf-dist/tex/latex/ltxmisc/authoraftertitle.sty
new file mode 100644
index 00000000000..7244c69bb9c
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ltxmisc/authoraftertitle.sty
@@ -0,0 +1,32 @@
+% Author Matthias Bilger
+% License: Absolutely Free :)
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{authoraftertitle}[2006/10/14 v0.9 package for Author after Titlepage]
+%Author
+\newcommand\Originalauthor{}
+\let\Originalauthor\author
+\renewcommand*{\author}[1]{%
+ \Originalauthor{#1}%
+ \renewcommand*{\MyAuthor}{#1}%
+}
+
+\newcommand*{\MyAuthor}{}
+
+%Title
+\newcommand\Originaltitle{}
+\let\Originaltitle\title
+\renewcommand*{\title}[1]{%
+ \Originaltitle{#1}%
+ \renewcommand*{\MyTitle}{#1}%
+}
+\newcommand*{\MyTitle}{}
+
+%Date
+\newcommand\Originaldate{}
+\let\Originaldate\date
+\renewcommand*{\date}[1]{%
+ \Originaldate{#1}%
+ \renewcommand*{\MyDate}{#1}%
+}
+\newcommand*{\MyDate}{}
diff --git a/Master/texmf-dist/tex/latex/ltxmisc/sansmath.sty b/Master/texmf-dist/tex/latex/ltxmisc/sansmath.sty
index 8fe92456b3a..bc757537179 100644
--- a/Master/texmf-dist/tex/latex/ltxmisc/sansmath.sty
+++ b/Master/texmf-dist/tex/latex/ltxmisc/sansmath.sty
@@ -1,6 +1,6 @@
% LaTeX package sansmath: typeset sans-serif math using `text' fonts.
%
-\ProvidesPackage{sansmath}[2003/12/14 \space ver 0.5 Donald Arseneau]
+\ProvidesPackage{sansmath}[2006/11/10 \space ver 0.7 Donald Arseneau]
%
% Donald Arseneau, asnd@triumf.ca, Vancouver, Canada.
%
@@ -37,6 +37,13 @@
% One should also investigate using Euler for ALL MATH in the document,
% using package `euler' instead of this one!
%
+% OT1 encoding is normally required to get the uppercase greek letters,
+% but if you use the [EULERGREEK] option or don't use any uppercase greek
+% letters, then you are welcome to define \sansmathencoding *before*
+% loading this package. There is also a package option [T1] to perform
+% that particuler definition. Note the comment above about only cmms
+% being good; even the T1-encoded ec fonts are poor substitutes.
+%
% This package achieves math-italic by reloading the slanted version
% of the text sans-serif font, and changing a fontdimen parameter
% (spaceskip). This causes the italic correction to be applied between
@@ -44,14 +51,42 @@
% (Why does a sans font have these ligatures anyway?) At this point,
% nothing is done about this bug.
-\DeclareMathAlphabet{\mathsfsl}{OT1}{\sfdefault}{m}{sl}
+\providecommand\sansmathencoding{OT1}
+\DeclareOption{T1}{
+ \def\sansmathencoding{T1}
+}
+
+\let\EulGreek\relax
+\let\EuUCGreek\relax
+\DeclareOption{EULERGREEK}{
+ \ExecuteOptions{eulergreek}
+ \def\EuUCGreek{%
+ \@euG\Gamma \@euG\Delta \@euG\Theta \@euG\Lambda \@euG\Xi \@euG\Pi
+ \@euG\Sigma \@euG\Upsilon \@euG\Phi \@euG\Psi \@euG\Omega
+}}
+\DeclareOption{eulergreek}{
+ \def\EulGreek{%
+ \ifnum\alpha<\@eugreekOffset
+ \@eug\alpha \@eug\beta \@eug\gamma \@eug\delta \@eug\epsilon
+ \@eug\zeta \@eug\eta \@eug\theta \@eug\iota \@eug\kappa \@eug\lambda
+ \@eug\mu \@eug\nu \@eug\xi \@eug\pi \@eug\rho \@eug\sigma \@eug\tau
+ \@eug\upsilon \@eug\phi \@eug\chi \@eug\psi \@eug\omega
+ \@eug\varepsilon \@eug\vartheta \@eug\varpi \@eug\varphi
+ \EuUCGreek
+ \let\varrho\rho \let\varsigma\sigma % Euler's missing variants
+ \fi
+}}
+
+\ProcessOptions
+
+\DeclareMathAlphabet{\mathsfsl}{\sansmathencoding}{\sfdefault}{m}{sl}
\DeclareOldFontCommand{\sfsl}{\normalfont\sffamily\slshape}{\mathsfsl}
-\DeclareMathAlphabet{\mathsfbf}{OT1}{\sfdefault}{bx}{sl}
+\DeclareMathAlphabet{\mathsfbf}{\sansmathencoding}{\sfdefault}{bx}{sl}
\DeclareOldFontCommand{\sfbf}{\normalfont\sffamily\bfseries}{\mathsfbf}
\DeclareMathVersion{sans}
-\SetMathAlphabet{\mathrm} {sans}{OT1}{\sfdefault}{m}{n}
-\SetMathAlphabet{\mathsfsl}{sans}{OT1}{\sfdefault}{m}{sl}
+\SetMathAlphabet{\mathrm} {sans}{\sansmathencoding}{\sfdefault}{m}{n}
+\SetMathAlphabet{\mathsfsl}{sans}{\sansmathencoding}{\sfdefault}{m}{sl}
\SetSymbolFont {operators}{sans}{OT1}{\sfdefault}{m}{n}
% The cmm and cmsy are too light for cmss. I tried {b} for the next
@@ -59,7 +94,7 @@
\SetSymbolFont {letters} {sans}{OML}{cmm} {m}{it}
\SetSymbolFont {symbols} {sans}{OMS}{cmsy}{m}{n}
-\SetMathAlphabet{\mathsfbf}{sans}{OT1}{\sfdefault}{bx}{n}
+\SetMathAlphabet{\mathsfbf}{sans}{\sansmathencoding}{\sfdefault}{bx}{n}
\DeclareMathSymbol{0}{\mathord}{operators}{`0}
\DeclareMathSymbol{1}{\mathord}{operators}{`1}
@@ -81,28 +116,6 @@
%\DeclareMathSymbol{=}{\mathrel}{operators}{`\=}
-\let\EulGreek\relax
-\let\EuUCGreek\relax
-\DeclareOption{EULERGREEK}{
- \ExecuteOptions{eulergreek}
- \def\EuUCGreek{%
- \@euG\Gamma \@euG\Delta \@euG\Theta \@euG\Lambda \@euG\Xi \@euG\Pi
- \@euG\Sigma \@euG\Upsilon \@euG\Phi \@euG\Psi \@euG\Omega
-}}
-\DeclareOption{eulergreek}{
- \def\EulGreek{%
- \ifnum\alpha<\@eugreekOffset
- \@eug\alpha \@eug\beta \@eug\gamma \@eug\delta \@eug\epsilon
- \@eug\zeta \@eug\eta \@eug\theta \@eug\iota \@eug\kappa \@eug\lambda
- \@eug\mu \@eug\nu \@eug\xi \@eug\pi \@eug\rho \@eug\sigma \@eug\tau
- \@eug\upsilon \@eug\phi \@eug\chi \@eug\psi \@eug\omega
- \@eug\varepsilon \@eug\vartheta \@eug\varpi \@eug\varrho
- \@eug\varsigma \@eug\varphi
- \EuUCGreek
- \fi
-}}
-\ProcessOptions
-
\ifx\EulGreek\relax\else
\DeclareSymbolFont{EulerGreek}{U}{eur}{m}{n}
\SetSymbolFont{EulerGreek}{sans}{U}{eur}{m}{n}
@@ -172,3 +185,19 @@
\let\sansm@every@math\relax
+% Repair of a LaTeX bug that has not been fixed in 5 years.
+% Latex bug: latex/3357
+
+\def \@fontswitch #1#2{%
+ \ifmmode
+ \let \math@bgroup \relax
+ \def \math@egroup ##1{%
+ \let \math@bgroup \@@math@bgroup
+ \let \math@egroup \@@math@egroup
+ ##1}%
+ #2\relax
+ \else
+ #1%
+ \fi
+}
+
diff --git a/Master/texmf-dist/tpm/ltxmisc.tpm b/Master/texmf-dist/tpm/ltxmisc.tpm
index f71c9c2ccea..29014c4ade7 100644
--- a/Master/texmf-dist/tpm/ltxmisc.tpm
+++ b/Master/texmf-dist/tpm/ltxmisc.tpm
@@ -12,7 +12,7 @@
<TPM:Size>507328</TPM:Size>
<TPM:License></TPM:License>
<TPM:Build/>
- <TPM:RunFiles size="507328">
+ <TPM:RunFiles size="509646">
texmf-dist/tex/latex/ltxmisc/2in1.sty
texmf-dist/tex/latex/ltxmisc/3parttable.sty
texmf-dist/tex/latex/ltxmisc/a4wide.sty
@@ -22,6 +22,7 @@ texmf-dist/tex/latex/ltxmisc/acromake.sty
texmf-dist/tex/latex/ltxmisc/advdate.sty
texmf-dist/tex/latex/ltxmisc/anonchap.sty
texmf-dist/tex/latex/ltxmisc/askinclude.sty
+texmf-dist/tex/latex/ltxmisc/authoraftertitle.sty
texmf-dist/tex/latex/ltxmisc/beletter.cls
texmf-dist/tex/latex/ltxmisc/bibcheck.sty
texmf-dist/tex/latex/ltxmisc/block.sty