mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-25 22:38:04 +02:00
25 lines
760 B
TeX
25 lines
760 B
TeX
\documentclass[a4paper]{scrartcl}
|
|
\usepackage{amssymb, amsmath} % needed for math
|
|
\usepackage[utf8]{inputenc} % this is needed for umlauts
|
|
\usepackage[ngerman]{babel} % this is needed for umlauts
|
|
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
|
|
\usepackage{ntheorem}
|
|
|
|
\theoremstyle{break}
|
|
\theoremindent20pt
|
|
\theoremheaderfont{\normalfont\bfseries\hspace{-\theoremindent}}
|
|
\newtheorem{theorem}{Theorem}
|
|
|
|
\begin{document}
|
|
Text body. Text body. Text body.
|
|
|
|
\begin{theorem}[Pythagoras]
|
|
Let $a,b,c$ the sides of a rectangular triangle.
|
|
Without loss of generality, we assume that $a<b<c$.
|
|
|
|
Then, the following equality holds:
|
|
\[a^2 + b^2 = c^2\]
|
|
\end{theorem}
|
|
|
|
More text. And even more text.
|
|
\end{document}
|