# Indent only first line of newtheorem

I have a number of hypotheses which I included by defining a newtheorem. I want the first line of the hypothesis to be indented, but have been unable to achieve this goal. The text was either not indented or the whole paragraph was it. But I just need the first line including the 'Hypothesis No.X' to be indented.

Here is a MWE:

\documentclass[a4paper, 12pt]{report}  \usepackage[ngerman]{babel} \usepackage{geometry} \usepackage{indentfirst} \usepackage{ntheorem} \usepackage{lipsum}  \geometry{outer=20mm, inner=25mm, top=20mm, bottom=30mm}  \theorembodyfont{\normalfont} \theoremseparator{:}  \newtheorem{hyp}{Hypothese}  \begin{document} \chapter{} \lipsum \begin{hyp} Here should be Hypothesis number one with first line indented and the remaining text normally over the whole page. \end{hyp}  \begin{hyp} Here is another Hypothesis with an indented first line and remaining text like in the remaining thesis. \end{hyp} \end{document}

Replay

\documentclass{report}

\usepackage{indentfirst}
\usepackage{ntheorem}
\usepackage{lipsum}

\theorembodyfont{\normalfont}
\theoremseparator{:}

\newtheorem{hyp}{Hypothesis}

\begin{document}

\chapter{A chapter}
\lipsum

\begin{hyp}
Here should be Hypothesis number one with first line indented and the remaining text normally over the whole page.
\end{hyp}

\begin{hyp}
Here is another Hypothesis with an indented first line and remaining text like in the remaining thesis.
\end{hyp}

\end{document}

I defined a new theorem style, indenthead, with a new dimension, \thmheadindent, which works like \theoremindent:

\documentclass[a4paper, 12pt]{report}

\usepackage[ngerman]{babel}
\usepackage{geometry}
\geometry{outer=20mm, inner=25mm, top=20mm, bottom=30mm}%%
\usepackage{indentfirst}
\usepackage{ntheorem}
\usepackage{lipsum}
\makeatletter
\newdimen\[email protected]
\def\[email protected]
{\item[\hskip\labelsep\hskip\[email protected] \[email protected] ##1\ ##2\[email protected]]}%
{\item[\hskip\labelsep\hskip\[email protected] \[email protected] ##1\ ##2\ (##3)\[email protected]]}
\makeatother

\theorembodyfont{\normalfont}
\theoremseparator{:}
\newtheorem{hyp}{Hypothese}

\begin{document}

\chapter{}

\lipsum[11]

\begin{hyp}
Here should be Hypothesis number one with first line indented and the remaining text normally over the whole page. T \end{hyp}

\begin{hyp}
Here is another Hypothesis with an indented first line and remaining text like in the remaining thesis.
\end{hyp}

\end{document}

Category: indentation Time: 2016-07-28 Views: 0