math-theorem.tex 759 B

1234567891011121314151617181920212223242526
  1. \documentclass[a4paper]{scrartcl}
  2. \usepackage{amssymb, amsmath} % needed for math
  3. \usepackage[utf8]{inputenc} % this is needed for umlauts
  4. \usepackage[ngerman]{babel} % this is needed for umlauts
  5. \usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
  6. \usepackage{ntheorem}
  7. \theoremstyle{break}
  8. \theoremindent20pt
  9. \theoremheaderfont{\normalfont\bfseries\hspace{-\theoremindent}}
  10. \newtheorem{theorem}{Theorem}
  11. \begin{document}
  12. Text body. Text body. Text body.
  13. \begin{theorem}[Pythagoras]
  14. Let $a,b,c$ the sides of a rectangular triangle.
  15. Without loss of generality, we assume that $a<b<c$.
  16. Then, the following equality holds:
  17. \[a^2 + b^2 = c^2\]
  18. \end{theorem}
  19. More text. And even more text.
  20. \end{document}