Formelbox für Theoreme und Sätze
Verfasst: So 27. Dez 2015, 22:41
Benutze das Paket tcolorbox. Es hat eine ausführliche Dokumentation mit vielen Beispielen.Formelbox für Theoreme und Sätze
gegenseitig? Wo ist deine Gegenleistung? Zur Zeit scheinst du möglichst schnell, möglichst viel, möglichst kostenlose Hilfe zu erwarten, ohne irgend etwas zurückzuliefern oder selbst zu tun. Du solltest erstmal die Einführung dieses Forums lesen, bevor du weiter versuchst, andere zu erziehen: http://golatex.de/der-kleine-golatex-de ... t1870.htmlDazu gibts ja Foren, dass man sich gegenseitig hilft
%\begin{Styles für Sätze} \newtheoremstyle{theorstyle} %Style defnieren {0mm} {0mm} {} {} {\bfseries} {\normalfont :} { } {} \theoremstyle{theorstyle} \newtheorem{def1}{\large{Definition}}[section] \newtheorem{sat1}{\large{Satz}}[section] \newtheorem*{kor1}{\large{Korollar}}%[section] \newtheorem{lem1}{\large{Lemma}}[section] \newcommand{\defgl}{\mathrel{\mathop:}=} \newtheorem{the1}{\large{Theorem}}[section] \usepackage{framed} %\usepackage{prettyref} \usepackage{xcolor} \usepackage{mdframed} \definecolor{shadecolor}{RGB}{224,224,224} %\end{Styles für Sätze} \begin{document} %minimalbeispiel: \begin{shaded*} \begin{the1} ~\\ Seien $X_1,X_2,\dots$ u.i.v exp(1). Dann gilt: \begin{align*} (X_{U_0},X_{U_1},\dots,X_{U_n}) \stackrel{d}{=} (Z_1,Z_1 + Z_2, \dots ,Z_1 + \dots + Z_n) \end{align*} wobei die $Z_1,Z_2,\dots$ u.i.v. exp$(1)$ sind. \end{the1} \end{shaded*} \end{document}
\documentclass{scrartcl} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsthm} \newtheoremstyle{theorstyle} %Style defnieren {0mm} {0mm} {} {} {\bfseries} {\normalfont :} { } {} \theoremstyle{theorstyle} \newtheorem{def1}{\large Definition}[section] \newtheorem{sat1}{\large Satz}[section] \newtheorem*{kor1}{\large Korollar}%[section] \newtheorem{lem1}{\large Lemma}[section] \newcommand{\defgl}{\mathrel{\mathop:}=} \newtheorem{the1}{\large Theorem}[section] \usepackage{framed} \usepackage{xcolor} \usepackage{mdframed} \definecolor{shadecolor}{RGB}{224,224,224} \begin{document} \begin{shaded*} \begin{the1} ~\\ Seien $X_1,X_2,\dots$ u.i.v exp(1). Dann gilt: \begin{align*} (X_{U_0},X_{U_1},\dots,X_{U_n}) \stackrel{d}{=} (Z_1,Z_1 + Z_2,\dots,Z_1 + \dots + Z_n) \end{align*} wobei die $Z_1,Z_2,\dots$ u.i.v. exp$(1)$ sind. \end{the1} \end{shaded*} \end{document}
\documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[ngerman]{babel} \usepackage{amsthm} \usepackage{tcolorbox} \tcbuselibrary{theorems} \newtcbtheorem[number within=section]{mytheorem}{Theorem}{ theorem style=break, sharp corners, terminator sign colon, colframe=lightgray!20, colback=lightgray!20, coltitle=black, fonttitle=\bfseries\upshape, fontupper=\itshape }{thm} \begin{document} \section{Abschnitt} \begin{mytheorem}{}{} Seien $X_1,X_2,\dots$ u.i.v $e$. Dann gilt: \begin{align*} (X_{U_0},X_{U_1},\dots,X_{U_n}) \stackrel{d}{=} (Z_1,Z_1 + Z_2, \dots ,Z_1 + \dots + Z_n) \end{align*} wobei die $Z_1,Z_2,\dots$ u.i.v. $e$ sind. \end{mytheorem} \end{document}