1

When I use the package thmbox by adding \usepackage[S]{thmbox} in my .sty file, an extra annoying page before my titlepage appears, which contains the text "Remarks and Extensions".

Removing this line/command, affects that the page disappears again.

What's wrong there?

MUmla
  • 181

2 Answers2

3

If you load thmstyle, the \theoremstyle declarations are ignored; moreover \newtheorem* is invalid.

The documentation of thmbox is not very clear; however, you can emulate the styles of amsthm quite easily:

\documentclass{scrreprt}

\usepackage[S]{thmbox}

\thmboxoptions{S,bodystyle=\itshape\noindent}
\newtheorem[S]{lem}{Lemma}[section]
\newtheorem[S]{thm}[lem]{Theorem}
\newtheorem[S]{cor}[lem]{Corollary}
\newtheorem[S,bodystyle=\upshape\noindent]{defi}{Definition}

\newtheorem[
  S,
  bodystyle=\upshape\noindent,
  headstyle=\itshape Remarks and Extensions
]{rem}{}

\begin{document}
\chapter{Title}
\section{Title}

\begin{lem}
Something
\end{lem}

\begin{thm}
Something
\end{thm}

\begin{cor}
Something
\end{cor}

\begin{rem}
Remark
\end{rem}

\begin{defi}
A definition
\end{defi}
\end{document}

enter image description here

egreg
  • 1,121,712
0

On creating the MWE, I discovered the following line:

\theoremstyle{remark} \newtheorem*{rem}{Remarks and Extensions}

That's it! On deleting this, the mysterious page disappeared. I think thmbox doesn't supports remark.

MUmla
  • 181
  • Still a minimal example would be good for better understanding the issue. – egreg Jun 02 '14 at 17:03
  • Okay, have a look here: http://pastebin.com/VdPYPMKc – MUmla Jun 02 '14 at 17:17
  • Apart from the fact that the S style is terrible, the problem is in \newtheorem*, not in \theoremstyle{remark}. – egreg Jun 02 '14 at 17:25
  • S style? You mean the structure of the file? Like mentioned at the beginning, I deleted the (helpful) comments, but these were in german...

    oh, that's right. It's the star. Thanks!

    – MUmla Jun 02 '14 at 17:31