mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
simple example for ntheorem package
This commit is contained in:
parent
89c438ee52
commit
3f6160ddaf
3 changed files with 33 additions and 0 deletions
25
documents/math-theorem/math-theorem.tex
Normal file
25
documents/math-theorem/math-theorem.tex
Normal file
|
@ -0,0 +1,25 @@
|
|||
\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}
|
Loading…
Add table
Add a link
Reference in a new issue