From 5f927f686a4c0170b063e34ccbe926fecb403c3b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 12 Jan 2006 23:59:28 +0000 Subject: mltex git-svn-id: svn://tug.org/texlive/trunk@1101 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/mltex/mltex.sty | 72 +++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/mltex/mltex.sty (limited to 'Master/texmf-dist/tex/latex/mltex/mltex.sty') 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'. -- cgit v1.2.3