General ⇒ NewTheorem structure
NewTheorem structure
I have a problem with a formatted project I got.
They use the NewTheorem structure in the following way:
\newtheorem{mylist}{}[chapter]
What happens is that this causes the line to be indented (the " " between {} and [chapter]).
Where and how can I override this gap?
Any input welcome!
Regards,
Uwe
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- countbela666
- Posts: 64
- Joined: Thu Apr 26, 2007 2:44 pm
NewTheorem structure
the indentation emerges because of the blank theorem name, which is followed by a space and the number. You could overcome this problem by defining your own theorem style "noname" that does not need a name and supresses the space before the number (cp. theorem package documentation p. 9). Have a look at the following code:
Code: Select all
\documentclass[english]{report}
\usepackage{babel,blindtext,ntheorem}
\makeatletter
\newtheoremstyle{noname}
{\item[\hskip\labelsep \theorem@headerfont ##2\theorem@separator]}%
{\item[\hskip\labelsep \theorem@headerfont ##2\ (##3)\theorem@separator]}
\makeatother
\theoremstyle{noname}
\newtheorem{mylist}{}[chapter]
\begin{document}
\chapter{chap1}
\blindtext
\begin{mylist}{test}
\item bar
\item baz
\end{mylist}
\blindtext
\end{document}
Marcel
a thousand worlds for you to see here, take my hand and follow me...