🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #10265

Re: Latex questions regarding theorems, \newtheorem

#10265
From: Nico Verwer
Date: Fri, 14 Jun 1991 09:29
40 lines
2269 bytes
In <gordon.676703279@ningaui> gordon@cs.uwa.oz.au (Gordon Royle) writes:

>I can use \newtheorem in the usual way to get my things labelled
>appropriately with Theorem 6.2 and Lemma 4.5 etc.
>However 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.

I once made a style file which does almost that.
All you'll want to do is a \renewcommand{\theoremstyle}{\sl}.
If you do not want any \theoremclosing, do
\renewcommand{\theoremclosing}{\relax}.
------------------------8<--------------------------
% rmthm.sty, by nico@cs.ruu.nl
% This version is of 14 June 1991.
% You can change the style in which your \newtheorems are typeset with
% \renewcommand{\theoremstyle}{...}.
% Default is \rm (hence the name of this file).
% You can also specify an end-of-theorem marker with
% \renewcommand{\theoremclosing}{...}.
% Default is a box flushed right.
% If you don't want your theorems to be numbered, number them like
% the nonumtheorem theorem environment, i.e.
% \newtheorem{thm}[nonumthm]{Thm}.

\def\@begintheorem#1#2{\theoremstyle 
                       \trivlist \item[\hskip \labelsep{\bf #1\ #2}]}
\def\@opargbegintheorem#1#2#3{\theoremstyle 
                       \trivlist \item[\hskip \labelsep{\bf #1\ #2\ (#3)}]}
\def\@endtheorem{\nopagebreak\theoremclosing\endtrivlist}
\def\theoremstyle{\rm}
\def\theoremclosing{\hfill$\Box$}
\newtheorem{nonumthm}{\relax}
\renewcommand{\thenonumthm}{\relax}
------------------------8<--------------------------

-- 
Nico Verwer                                       | nico@cs.ruu.nl
Dept. of Computer Science, University of Utrecht  | phone: +31 30 533921
p.o. box 80.089, 3508 TB Utrecht, The Netherlands | fax:   +31 30 513791
Technical Details
Message-ID: <1991Jun14.092953.12746@cs.ruu.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!Firewall!uunet!mcsun!hp4nl!alchemy!nico
References: <gordon.676703279@ningaui>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!Firewall!uunet!mcsun!hp4nl!alchemy!nico
From: nico@cs.ruu.nl (Nico Verwer)
Newsgroups: comp.text.tex
Subject: Re: Latex questions regarding theorems, \newtheorem
Message-ID: <1991Jun14.092953.12746@cs.ruu.nl>
Date: 14 Jun 91 09:29:53 GMT
References: <gordon.676703279@ningaui>
Organization: Utrecht University, Dept. of Computer Science
Lines: 40