diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/comprehensive/source/fakelatexsym.sty')
-rw-r--r-- | Master/texmf-dist/doc/latex/comprehensive/source/fakelatexsym.sty | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/comprehensive/source/fakelatexsym.sty b/Master/texmf-dist/doc/latex/comprehensive/source/fakelatexsym.sty new file mode 100644 index 00000000000..6c36765637d --- /dev/null +++ b/Master/texmf-dist/doc/latex/comprehensive/source/fakelatexsym.sty @@ -0,0 +1,35 @@ +% ===================================== +% FAKELATEXSYM.STY +% By Scott Pakin <scott+clsl@pakin.org> +% ===================================== +% +% We don't want to waste a precious math alphabets when loading the real +% latexsym.sty. Hence, we simply define explicitly all of the symbols +% as text symbols. + +% Load the real latexsym, but stop right after the \ProvidesPackage. +\let\origProvidesPackage=\ProvidesPackage +\def\ProvidesPackage#1[#2]{% + \origProvidesPackage#1[#2]% + \endinput +} +\usepackage{latexsym} +\let\ProvidesPackage=\origProvidesPackage +\RequirePackage{amsmath} + +% Define all of the symbols explicitly. +\newcommand{\fakelatexsym}[1]{\text{\usefont{U}{lasy}{m}{n}\char#1}} +\renewcommand{\mho}{\fakelatexsym{"30}} +\renewcommand{\Join}{\fakelatexsym{"31}} +\renewcommand{\Box}{\fakelatexsym{"32}} +\renewcommand{\Diamond}{\fakelatexsym{"33}} +\renewcommand{\leadsto}{\fakelatexsym{"3B}} +\renewcommand{\sqsubset}{\fakelatexsym{"3C}} +\renewcommand{\sqsupset}{\fakelatexsym{"3D}} +\renewcommand{\lhd}{\fakelatexsym{"01}} +\renewcommand{\unlhd}{\fakelatexsym{"02}} +\renewcommand{\rhd}{\fakelatexsym{"03}} +\renewcommand{\unrhd}{\fakelatexsym{"04}} +\let\not@base\@undefined + +\endinput |