Browse Source

simple example for ntheorem package

Martin Thoma 11 năm trước cách đây
mục cha
commit
3f6160ddaf

+ 7 - 0
documents/math-theorem/Makefile

@@ -0,0 +1,7 @@
+SOURCE = math-theorem
+make:
+	pdflatex $(SOURCE).tex -output-format=pdf
+	make clean
+
+clean:
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.out

+ 1 - 0
documents/math-theorem/Readme.md

@@ -0,0 +1 @@
+See [Theorem environment with hanging indentation](http://tex.stackexchange.com/a/151586/5645)

+ 25 - 0
documents/math-theorem/math-theorem.tex

@@ -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}