PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Theorem Umgebung / Figure



rfischer
25-01-2012, 09:29
Hallo,

wird in einer theorem-Umgebung ein Bild eingebunden, dann hat dieses Bild die Seitenbreite und nicht die Theorem Zeilenbreite (ist also breiter, siehe Anhang M00.pdf). Schön wäre, wenn das Bild dieselbe Breite wie der laufende Text hätte.

Sicherlich macht es mehr Sinn das Bild stets außerhalb der theorem Umgebung zu platzieren (ist ja ein floating) oder einfach entsprechend schmall zu machen.

Vielleicht hat ja trotzdem jemand eine spontane Idee ohne viel Zeit zu investieren, wie sich die Bildbreite automatisch an die richtige Umgebung anpassen könnte (ist es innerhalb des theorems, dann theorem Breite - ist es außerhalb des theorems, dann normale Seitenbreite).

Beispiel:


\listfiles
%\documentclass{minimal}
\documentclass[10pt,a4paper]{book}
\usepackage{amsmath}
\usepackage[amsmath,framed,thmmarks]{ntheorem}
\usepackage{thmbox}
\usepackage[font=footnotesize,labelfont=bf,singlelinecheck=fal se,
figurename=Abb.]{caption}
%\usepackage[font=footnotesize,labelfont={},labelformat=brace,f ormat=hang]{subcaption}
\usepackage[leftcaption]{sidecap}%for SCfigure
\sidecaptionvpos{figure}{c}

\pagestyle{empty}
%
\begin{document}%
%
\begin{example}
text text text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text text text
\begin{SCfigure}[\sidecaptionrelwidth][htbp]
start figure \hspace{0.5\linewidth} end figure
\caption{
Bild Bild Bild Bild Bild Bild Bild Bild Bild Bild Bild Bild
Bild Bild Bild Bild Bild Bild Bild Bild Bild Bild Bild Bild
Bild Bild Bild Bild Bild Bild Bild Bild Bild Bild Bild Bild
Bild Bild Bild Bild Bild Bild Bild Bild Bild Bild Bild Bild
Bild Bild Bild Bild Bild Bild Bild Bild Bild Bild Bild Bild
}
\end{SCfigure}
text text text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text text text
\end{example}
%
\end{document}


File List:


*File List*
book.cls 2007/10/19 v1.4h Standard LaTeX document class
bk10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
amsmath.sty 2000/07/18 v2.13 AMS math features
amstext.sty 2000/06/29 v2.01
amsgen.sty 1999/11/30 v2.0
amsbsy.sty 1999/11/29 v1.2d
amsopn.sty 1999/12/14 v2.01 operator names
ntheorem.sty 2011/02/16 1.31
ifthen.sty 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
thmbox.sty 2005/04/24 v2.0 fancy theorem outlining
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
caption.sty 2011/11/10 v3.2e Customizing captions (AR)
caption3.sty 2011/11/01 v1.4a caption3 kernel (AR)
newfloat.sty 2011/10/30 v1.0 Defining new floating environments (AR)
sidecap.sty 2003/06/06 v1.6f SideCap Package (RN/HjG)
ragged2e.sty 2009/05/21 v2.1 ragged2e Package (MS)
everysel.sty 2011/10/28 v1.2 EverySelectfont Package (MS)
***********