summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mltex/mltex.sty
blob: 53a80be13183ea70d5e6d0461d31033cd6260388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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'.