%% %% This is file `titles.stq', %% generated with the docstrip utility. %% %% The original source files were: %% %% titles.sty %% %% This program is part of the Frankenstein bundle for LaTeX. %% This file should have been distributed with the source listed above. %% %% Copyright (C) 1995 Matthew 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. %% %% \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 \~} \def\fileinfo{title macros (Frankenstein's references)} \def\fileversion{v0.9} \def\filedate{1996/03/22} \def\docdate{1996/03/22} \edef\PPOptArg {% \filedate\space \fileversion\space \fileinfo } \makeatletter \@ifundefined{JuStLoAdInFoRmAtIoN} {% }{% \@ifundefined{DoXNeeDME} {% }{% \usepackage{titles}% } \makeatother \endinput } \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{titles}[\PPOptArg] %% \RequirePackage{moredefs} \newboolean{@ti@double@} \DeclareOption{singlequotes}{ \@ti@double@false } \DeclareOption{doublequotes}{ \@ti@double@true } \ExecuteOptions{doublequotes} \ProcessOptions \newcommand*\Wrapquotes [1] {% \begingroup \if@ti@double@ \@ti@double@false \def\sc@t@a {\ti@open@double #1\ti@aftergroup@close@double}% \else \@ti@double@true \def\sc@t@a {\ti@open@single #1\ti@aftergroup@close@single}% \fi \sc@t@a \endgroup } \newcommand\ti@open@double {% \gdef\sc@t@f {``}% '' for emacs \sc@openquote } \newcommand\ti@open@single {% \gdef\sc@t@f {`}% \sc@openquote } \newcommand\sc@openquote {% \futurelet\sc@t@a\sc@@openquote } \newcommand\sc@@openquote {% \sc@t@f \ifx\sc@t@a\Wrapquotes \,% \fi } \newcommand\ti@close@double {% \gdef\sc@t@f {''}% \sc@closequote } \newcommand\ti@close@single {% \gdef\sc@t@f {'}% \sc@closequote } \newcommand\ti@aftergroup@close@double {% \aftergroup\ti@close@double } \newcommand\ti@aftergroup@close@single {% \aftergroup\ti@close@single } \newcommand\GobbleTypeout [1] {% } \newcommand\sc@closequote {% \sc@q@ifnextcharin {.,} {% \sc@t@c\sc@t@f\GobbleTypeout % This gobbles the original punctuation. }{% ELSE \sc@q@ifnextcharin {;?:!-)]'\bgroup} {% \sc@t@f }{% ELSE \sc@t@f\space }% }% } \newcommand\sc@q@ifnextcharin [3] {% args: charlist true false \xdef\sc@t@e {#1}% \gdef\sc@t@a {#2}% \gdef\sc@t@b {#3}% \sc@q@check } \newcommand\sc@q@check {% \futurelet\sc@t@c\sc@q@ifnch } \newcommand\sc@q@ifnch {% \ifx\sc@t@c\check@icr \def\sc@t@d##1{% ##1\aftergroup\sc@q@check }% \else \ifx\sc@t@c\endgroup \def\sc@t@d {\aftergroup\sc@q@check}% \else \ifx\sc@t@c\@sptoken \let\sc@t@d\sc@q@handle@space \else \ifx\sc@t@c\egroup \def\sc@t@d {\aftergroup\sc@q@check}% \else \ifx\sc@t@c\ti@aftergroup@close@double \let\sc@t@d\sc@q@handle@double \else \ifx\sc@t@c\ti@aftergroup@close@single \let\sc@t@d\sc@q@handle@single \else \@tempswafalse \expandafter \@tfor \expandafter \sc@t@g \expandafter :% \expandafter =\sc@t@e \do {% \if\sc@t@c\sc@t@g \@tempswatrue \@break@tfor \else \fi }% \if@tempswa \let\sc@t@d\sc@t@a % the ``true'' clause \else \let\sc@t@d\sc@t@b % the ``false'' clause \fi \fi \fi \fi \fi \fi \fi \sc@t@d } \ReserveCS\sc@q@handle@space \let\sc@t@a\: \def\:{\sc@q@handle@space} \expandafter\def\: {\sc@q@check} \let\:\sc@t@a \newcommand*\sc@q@handle@double [1] {% \g@addto@macro\sc@t@f {\,''}% \sc@q@check } \newcommand*\sc@q@handle@single [1] {% \g@addto@macro\sc@t@f {\,'}% \sc@q@check } \InputIfFileExists{titles.cfg}{}{} \endinput %% %% End of file `titles.stq'.