diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-12 23:59:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-12 23:59:28 +0000 |
commit | 5f927f686a4c0170b063e34ccbe926fecb403c3b (patch) | |
tree | 954ec667b66319d29077522133c18858f2889ddf /Master/texmf-dist/tex/latex/mltex/mltex.sty | |
parent | fde3e60c351583414e5ecf819e16485a2f1d66c5 (diff) |
mltex
git-svn-id: svn://tug.org/texlive/trunk@1101 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mltex/mltex.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/mltex/mltex.sty | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/mltex/mltex.sty b/Master/texmf-dist/tex/latex/mltex/mltex.sty new file mode 100644 index 00000000000..53a80be1318 --- /dev/null +++ b/Master/texmf-dist/tex/latex/mltex/mltex.sty @@ -0,0 +1,72 @@ +%% +%% This is file `mltex.sty'. +%% Copyright (C) 1996,1997,1998,1999 Bernd Raichle +%% +%% ----------------------------------------------------------------- +%% IMPORTANT NOTICE: +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% ----------------------------------------------------------------- +%% +%% CHANGES: +%% 1998/11/17 0.9a +%% New file; only final release changes. +%% 1998/12/21 0.9b +%% Removed warning \message. +%% 1999/03/08 0.9c +%% Added \selectfont after \fontencoding to force switching +%% accent defs from OT1 to LO1. +%% Changed licensing conditions to LPPL. +%% +%% ------------------------------------------------------------ +%% +%% <1994/12/01> needed for \DeclareText... +\NeedsTeXFormat{LaTeX2e}[1994/12/01] % Update your LaTeX version! + +\ProvidesPackage{mltex}[1999/08/03 v0.9c % + MLTeX/LaTeX package (br)] + +\input{lo1enc.def} + +\@ifundefined{mlfontencoding}{}{% + \PackageError{mltex}% + {Package was loaded twice}% + {This package will probably not work if loaded twice.}% +} + +%% save original definition of \fontencoding +\newcommand{\origfontencoding}{}% +\let\origfontencoding=\fontencoding + +%% provide \mlfontencoding +\newcommand{\mlfontencoding}[1]{% + \expandafter\ifx\csname Fd@#1\endcsname\relax + \origfontencoding{#1}% + \else + \expandafter\origfontencoding + \expandafter{\csname Fd@#1\endcsname}% + \fi}% + +\newif\if@mltexreplace +\DeclareOption{switchonly}{\@mltexreplacefalse} +\DeclareOption{replace}{\@mltexreplacetrue} + +\ExecuteOptions{replace} +\ProcessOptions\relax + +\if@mltexreplace + \PackageInfo{mltex}{Redefining \noexpand\fontencoding!}% + \let\fontencoding=\mlfontencoding + \expandafter\fontencoding\expandafter{\f@encoding}\selectfont +\else + \PackageInfo{mltex}{Switch to `LO1' font encoding only.}% + \fontencoding{LO1}\selectfont% + \renewcommand\encodingdefault{LO1}% +\fi + +\endinput +%% +%% End of file `mltex.sty'. |