Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How to make the theorem style like:

1.1.3. There is a theorem.         Theorem

       it may be several lines.

       The theorem 1.1.3 end.

1.1.1. There is a lemma.           lemma

       The lemma 1.1.1 end.

(for oneside documentclass)

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Use ntheorem:

\documentclass{article}
\usepackage{ntheorem}
\makeatletter
\newtheoremstyle{marginname}%
  {\item[\hskip\labelsep \theorem@headerfont ##2\theorem@separator]\marginpar{\theorem@headerfont ##1}}%
  {\item[\hskip\labelsep \theorem@headerfont ##2\ (##3)\theorem@separator]\marginpar{\theorem@headerfont ##1}}
\makeatother
\theoremstyle{marginname}
\newtheorem{thm}{Theorem}[section]
\begin{document}
\section{foo}
\begin{thm}
blah blah
\end{thm}
\end{document}

It may work better if you use \marginnote (from marginnote package) instead of \marginpar.

Or you can use amsthm's \newtheoremstyle (in differnt syntax) to do the trick.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.