%^^A* copyright % \iffalse % % This program is part of the Frankenstein bundle for LaTeX2e. % % Copyright (C) 1995 Matt Swift % % This program is free software; you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation; either version 2 of the License, or % (at your option) any later version. % % This program is distributed in the hope that it will be useful, % but WITHOUT ANY WARRANTY; without even the implied warranty of % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details. % % You should have received a copy of the GNU General Public License % along with this program; if not, write to the Free Software % Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. % %^^A* to do % %^^A NOTE: \DocInput will start reading after this \fi. % \fi % %^^A* checks % %^^A NOTE: The character table, with two %'s, will get written to all files. %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z %% Digits \0\1\2\3\4\5\6\7\8\9 %% Exclamation \! Double quote \" Hash (number) \# %% Dollar \$ Percent \% Ampersand \& %% Acute accent \' Left paren \( Right paren \) %% Asterisk \* Plus \+ Comma \, %% Minus \- Point \. Solidus \/ %% Colon \: Semicolon \; Less than \< %% Equals \= Greater than \> Question mark \? %% Commercial at \@ Left bracket \[ Backslash \\ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} % % \CheckSum{33} % % \begin{abstract} % This package provides the commands \cs\itswitch, \cs\slswitch, % \cs\textitswitch, and \cs\textslswitch. % \end{abstract} % % \part{Discussion} % % \DescribeMacro\itswitch \cs\itswitch calls \cs\itshape if the current font % is not slanted, and \cs\upshape if the current font is slanted. % % \DescribeMacro\slswitch \cs\slswitch calls \cs\slshape if the current font % is not slanted, and \cs\upshape if the current font is slanted. % % \DescribeMacro\textitswitch \cs\textitswitch\marg{text} sets its argument % with \cs\itshape if the current font is not slanted, or \cs\upshape if the % current font is slanted. % % \DescribeMacro\textslswitch \cs\textslswitch\marg{text} sets its argument % with \cs\slshape if the current font is not slanted, or \cs\upshape if the % current font is slanted. % % \StopEventually{} % % \part{Implementation} % % \section{Version control} % % \begin{macro}{\fileinfo} % \begin{macro}{\fileversion} % \begin{macro}{\filedate} % \begin{macro}{\docdate} % \begin{macro}{\PPOptArg} % These definitions must be the first ones in the file. % \begin{macrocode} \def\fileinfo{slanted emphasis (Frankenstein's gait)} \def\fileversion{v1.0} \def\filedate{1996/03/25} \def\docdate{1996/03/25} \edef\PPOptArg {% \filedate\space \fileversion\space \fileinfo } % \end{macrocode} % \end{macro} % \end{macro} % \end{macro} % \end{macro} % \end{macro} % % Stop right here if we're just loading the file's information, and don't want % to load this code for typesetting its documentation (only makes sense for % certain packages). The |JuStLaAdInFoRmAtIoN| flag will be set by the % documentation driver; the |DoXNeeDME| flag will be set in the % \ext{dtx} file, and will appear above if it's set. % \begin{macrocode} \makeatletter \@ifundefined{JuStLoAdInFoRmAtIoN} {% }{% \@ifundefined{DoXNeeDME} {% }{% \usepackage{slemph}% } \makeatother \endinput } % \end{macrocode} % % Now we check for \LaTeX2e and declare the package. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{slemph}[\PPOptArg] % \end{macrocode} % % ^^A NOTE: We have to compensate for the above backslashes, which are not % ^^A actually in the doctex file I work on. %% % \AddToCheckSum{24} % % \makeatletter % \@ifundefined{DoXNeeDME} {} {\AddToCheckSum{2}} % \makeatother % % % \section{The switchers} % % \begin{macro}{\itswitch} % \begin{macro}{\textitswitch} % \begin{macro}{\slswitch} % \begin{macro}{\textslswitch} % \begin{macro}{\em} % \cs\itswitch is defined like the old \cs\em and \cs\slswitch is similar % except it switches back and forth between the \cs\slshape and \cs\upshape % shapes. % \begin{macrocode} \DeclareRobustCommand\itswitch {% \@nomath\itswitch \ifdim \fontdimen\@ne\font > \z@ \upshape \else \itshape \fi } \DeclareRobustCommand\slswitch {% \@nomath\slswitch \ifdim \fontdimen\@ne\font > \z@ \upshape \else \slshape \fi } \DeclareTextFontCommand\textitswitch\itswitch \DeclareTextFontCommand\textslswitch\slswitch % \end{macrocode} % \end{macro} % \end{macro} % \end{macro} % \end{macro} % \end{macro} % % \section{Configuration} % % Load a configuration file. % \begin{macrocode} \InputIfFileExists{slemph.cfg}{}{} % \end{macrocode} % % The contents of the distributed configuration file are below. % % \InputIfFileExists{slemph.cfg}{}{} % % \Finale