[OS X TeX] outline

Wayne Richter richter at math.umn.edu
Sun Aug 2 17:04:23 EDT 2009



On Sun, 2 Aug 2009, Claus Gerhardt wrote:

> Proofs can be switched on/off by first defining and using the 
> commands
>
> \newcommand{\bp}{\begin{proof}}
> \newcommand{\ep}{\end{proof}}
>
> and later commenting or uncommenting
>
> \renewcommand{\bp}{\begin{comment}}
> \renewcommand{\ep}{\end{comment}}
>
> Claus
>
>
> On Jul 31, 2009, at 17:15, Wayne Richter wrote:
>
>> Is there a convenient way to get a PDF file from a math latex 
>> file that
>> prints just: Definitions;
>>            statement of Theorems, Lemmas, etc;
>>            (perhaps) Remarks (some flexibility would be nice)
>>
>>  but no Proofs or general exposition?
>> 
>> It is possible to comment everything unwanted out,
>> but there must be an easier way. Is there a package or
>> some other convenient way of doing this? Perhaps within a table 
>> of contents package?
>> 
>> Thanks,
>> 
>> Wayne Richter

Thanks for the suggestion. When I typeset in latex the following

\documentclass{amsart}
\usepackage{verbatim}
\newcommand{\bp}{\begin{proof}}
\newcommand{\ep}{\end{proof}}
%\renewcommand{\bp}{\begin{comment}}
%\renewcommand{\ep}{\end{comment}}
\begin{document}
\bp
  0=1
\ep
help
\end{document}

it works fine, but when I typeset in latex

\documentclass{amsart}
\usepackage{verbatim}
\newcommand{\bp}{\begin{proof}}
\newcommand{\ep}{\end{proof}}
\renewcommand{\bp}{\begin{comment}}
\renewcommand{\ep}{\end{comment}}
\begin{document}
\bp
  0=1
\ep
help
\end{document}

it doesn't. I get in the test console the message

[snip]

(/usr/local/texlive/2008/texmf-dist/tex/latex/amsfons/umsb.fd))
Runaway argument?
! File ended while scanning use of \next.
<inserted text>
         \par
<*> test.tex

?

I get a similar error message when I try just

\documentclass{amsart}
\usepackage{verbatim}
\newcommand{\bp}{\begin{comment}}
\newcommand{\ep}{\end{comment}}
\begin{document}
\bp
  0=1
\ep
help
\end{document}

and also a similar error message when I try to define the corresponding
  new environment for "proof".

Is there some problem with the relationship between the verbatim.sty
package and the ams classes? Or am I just doing something wrong?
It seems that the \begin{comment} part is okay, but the
\end{comment} part is causing the problem.

Wayne


>> ----------- Please Consult the Following Before Posting 
>> -----------
>> TeX FAQ: http://www.tex.ac.uk/faq
>> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
>> List Archive: http://tug.org/pipermail/macostex-archives/
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>> 
>



More information about the MacOSX-TeX mailing list