% Modify behavior of standard LaTeX macros % ======================================================= % Cause the theorem environment to behave as follows: % % {\bfseries Theorem 2 \rm (optional argument).}{ text of theorem in \itshape type } \def\@begintheorem#1#2{ \itshape\trivlist\item[\hskip\labelsep{\indent\bf #1 #2.}]} \def\@opargbegintheorem#1#2#3{ \itshape\trivlist\item[\hskip\labelsep{\indent\bf #1 #2\ \rm(#3).}]} \def\Rmk{\par{\bfseries\itshape Remark. }} \def\Proof{\par{\bfseries\itshape Proof. }} \def\Proofof#1{\par{\bfseries\itshape Proof of #1.}} % ======================================================= % Figure 1. and Table 1. instead of Figure 1: Table 1: % Also allow control of caption size and font for "Figure 1". %\renewcommand\figurename{Fig.} \let\captsize=\footnotesize\let\captLfont=\relax \long\def\@makecaption#1#2{% \vskip\abovecaptionskip \sbox\@tempboxa{\captsize{\captLfont #1.} #2}% \ifdim \wd\@tempboxa >\hsize {\captsize{\captLfont #1.} #2}\par \else \global \@minipagefalse \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% \fi \vskip\belowcaptionskip} % ======================================================= % Modify section headings % Change fonts \renewcommand\section{\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\normalfont\large\bfseries\sffamily}} \renewcommand\subsection{\@startsection{subsection}{2}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\normalfont\normalsize\bfseries\sffamily}} \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\normalfont\small\bfseries\sffamily}} % Put period after section #. Reduce space between this % period and the section title. \def\@seccntformat#1{\csname the#1\endcsname.\kern.5em} % Modify \@ssect so that \xxxsection* uses \itshape \def\@ssect#1#2#3#4#5{% \@tempskipa #3\relax \ifdim \@tempskipa>\z@ \begingroup #4\itshape{% \@hangfrom{\hskip #1}% \interlinepenalty \@M #5\@@par}% \endgroup \else \def\@svsechd{#4\itshape{\hskip #1\relax #5}}% \fi \@xsect{#3}} % Modify \@startsection so that 1st para. is always indented \def\@startsection#1#2#3#4#5#6{% \if@noskipsec \leavevmode \fi \par \@tempskipa #4\relax \@afterindenttrue \ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa % \@afterindentfalse \fi \if@nobreak \everypar{}% \else \addpenalty\@secpenalty\addvspace\@tempskipa \fi \@ifstar {\@ssect{#3}{#4}{#5}{#6}}% {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}} % ======================================================= % Fix formatting of Table of Contents to omit leaders \def\@dottedtocline#1#2#3#4#5{% \ifnum #1>\c@tocdepth \else \vskip \z@ \@plus.2\p@ {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip \parindent #2\relax\@afterindenttrue \interlinepenalty\@M \leavevmode \@tempdima #3\relax \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip {#4}\nobreak % \leaders\hbox{$\m@th % \mkern \@dotsep mu\hbox{.}\mkern \@dotsep % mu$} \hfill \nobreak \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}% \par}% \fi} % =======================================================