[OS X TeX] Unwanted blank page

Themis Matsoukas matsoukas at psu.edu
Mon Jan 2 13:37:39 CET 2006


I've written the following code to typeset "examples" that are  
numbered correctly whether in article or book styles. This must be  
saved as a .sty file.

\@ifundefined{chapter}{%
\newtheorem{exmpl}{\bfseries Example} %  environment for "Example"
\newenvironment{example}[1]	%  for classes w/o chapter
    {\small\begin{exmpl}{\sffamily\itshape #1}\normalfont\hrulefill %
    \parskip 10pt \nopagebreak\parindent0pt\\}	%
    {\end{exmpl}\normalsize}
}{
\newtheorem{exmpl}{\bfseries Example}[chapter]	%  environment for  
"Example"
\newenvironment{example}[1]	%  with numbering based on
    {\small\begin{exmpl}{\sffamily\itshape #1}\normalfont\hrulefill	 
%  chapter
    \parskip 10pt \nopagebreak\parindent0pt\\}	%
    {\end{exmpl}\normalsize}
}

Themis


On Jan 1, 2006, at 8:06 PM, Alain Schremmer wrote:

> Claus Gerhardt wrote:
>
>> Use the article class for your Homework, not the book class.
>
> Yes but how about Problem 2 namely "compil[ing] two versions, one  
> with the examples and one  without?" (Barkow)
>
> Regards and Best Wishes for the New Year
> --Schremmer

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list