# How can I set "Theorem" on the left of content and "number" under "Theorem"? I want to set "Theorem" on the left of the content and its "Numbering"(1.4.6 in the image) under it in stead of default putting these things within the content, so that readers could recognise the "Theorem" and "numbering" more easily.

Does anybody know how to achieve this? just like the image uploaded.

Replay

Here's one attempt at producing the desired output. The main tool used is thmtools together with amsthm. For most of the configuration options you can see the thmtools manual.

\documentclass{article}
\usepackage{amsmath, amssymb, amsthm}
\usepackage{thmtools}

\declaretheoremstyle[%
spaceabove=3pt,spacebelow=3pt,%
notefont=\normalfont\bfseries,%
notebraces={}{. },%
bodyfont=\normalfont,%
%hack to kill some extra space
\makeatletter
\renewcommand\[email protected]{}
\makeatother

\begin{document}
First let us write a paragraph of something or another.

\begin{defn}[Vector spaces over $\mathbb{R}$]
A set $S$ equipped with operations addition $+: S\times S\to S$ and scalar multiplication $\cdot: \mathbb{R}\times S \to S$ satisfying the following list of 10 axioms
\begin{enumerate}
\item Something
\item \ldots
\item Let's quit
\end{enumerate}
\end{defn}

Now we can state a theorem. Just to show it off.

\begin{them}
Suppose that $a$ and $b$ are the lengths of the legs of a right triangle, and $c$ is the length of the hypotenuse, then it is known that $a^2 + b^2 = c^2$.
\end{them}

\end{document}



### Discussion

The main lifting is done in the setting of the headformat key, which creates a parbox with a certain width (1.3in here) and places the theorem heading and number on two lines, centered. \smash is used to make it take effectively 0 vertical space in the layout (so that the second line of the theorem will not be pushed down). \llap lets the box protrude into the margin.

I had to \renewcommand\[email protected]{} since the code for \NOTE in \thmtools prepends the theorem name with \[email protected] to give a space between the heading and the name. But in our case our heading is set elsewhere and the space creates an unintentional indent if the optional name is given. Similarly postheadspace is set to be zero, and the space needed to separate the name of the theorem from the theorem text is appended in notebraces.

In the above demonstration both named and unnamed theorems are shown.

Category: horizontal alignment Time: 2016-07-28 Views: 1