Article View: comp.text.tex
Article #10261Re: Latex questions regarding theorems, \newtheorem
From: geyer
Date: Fri, 14 Jun 1991 02:42
Date: Fri, 14 Jun 1991 02:42
30 lines
1690 bytes
1690 bytes
In article <gordon.676703279@ningaui> gordon@cs.uwa.oz.au (Gordon Royle) writes:
> I do not like having all the theorems typeset in italics. I
> would like to change the "theorem-like environment" so that the theorems
> are typeset in slanted type.
> The LaTeX book does not mention at all how to do it, or in fact where
> the "theorem-like environment" is defined....
I'll take this one because its so easy. It is defined in latex.tex, where
under the heading THEOREM ENVIRONMENTS are defined (the only macros in this
section containing \it)
\def\@begintheorem#1#2{\it \trivlist \item[\hskip \labelsep{\bf #1\ #2}]}
\def\@opargbegintheorem#1#2#3{\it \trivlist
\item[\hskip \labelsep{\bf #1\ #2\ (#3)}]}
redefine them without the \it and you're in business. Since these macro
names contain a @ they can only be redefined in a style file. Make your
own, say foo.sty, and then add it to the list in /documentstyle, e. g.,
\documentstyle[12pt,foo]{article}
This is a good easy example of how to hack style files. Often you don't
have to understand much about how LaTeX works to make the required changes.
Charles Geyer
Department of Statistics
University of Chicago
geyer@galton.uchicago.edu
Technical Details
Message-ID:
<1991Jun14.024242.6256@midway.uchicago.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!spool.mu.edu!news.cs.indiana.edu!ux1.cso.uiuc.edu!midway!newsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!spool.mu.edu!news.cs.indiana.edu!ux1.cso.uiuc.edu!midway!news From: geyer@galton.uchicago.edu Newsgroups: comp.text.tex Subject: Re: Latex questions regarding theorems, \newtheorem Message-ID: <1991Jun14.024242.6256@midway.uchicago.edu> Date: 14 Jun 91 02:42:42 GMT Sender: news@midway.uchicago.edu (NewsMistress) Organization: University of Chicago Lines: 30