subfloatrow

Tabellen und Grafiken erstellen und anordnen


Lala
Forum-Anfänger
Forum-Anfänger
Beiträge: 12
Registriert: Do 4. Okt 2012, 00:30

subfloatrow

Beitrag von Lala »

Hallo ihr!

Ich würde gerne zwei Bildchen nebeneinander mit einer gemeinsamen Bildunterschrift setzen, dabei sollte jedes Bild noch eine Unternummerierung haben wie z.B. a) und b).
Ich habe versucht, es wie in der floatrow-Anleitung (S. 73) zu machen, mit \Flabel und \Fref, aber dann siehe Fehlermeldung.
Hat mir jemand einen Tipp?

Vielen Dank für eure Hilfe!
\documentclass[paper=a4, 12pt]{scrreprt}

\usepackage[T1]{fontenc}					
\usepackage[utf8]{inputenc}				
\usepackage[american, spanish, basque, ngerman]{babel} 		
\usepackage[babel, german=quotes]{csquotes}	

\usepackage[format=plain,font=small,labelfont=bf,labelsep=space,justification=centerlast]{caption}
\usepackage[font=small,floatrowsep=qquad,captionskip=5pt,capbesideposition=inside,facing=yes,capbesidesep=quad]{floatrow}
\usepackage{subfig}
\floatsetup[table]{style=Plaintop}
\captionsetup[subfigure]{labelformat=brace,list=off}
\floatsetup[subfigure]{style=plain,capbesideposition=left,
capbesidesep=space,heightadjust=object}
\newseparatedlabel\Flabel{figure}{subfigure}
\newseparatedref\Fref{,\,\textit}
\usepackage[demo]{graphicx}
\usepackage{amssymb, amsmath, dsfont}

\begin{document}

\begin{figure}
{\includegraphics[scale=0.5]{ErgebnissekategorienHestenesprepost1213.png}}
\end{figure}

\begin{figure}
\ffigbox[\FBwidth]
{\begin{subfloatrow}\useFCwidth
\fcapside[\FBwidth]
{\caption{}
\label{fig:geschlechtpretest}}
{\includegraphics[width=0.4\textwidth]{Geschlecht_Pretest_1314.png}}
\fcapside[\FBwidth]
{\caption{}
\label{fig:geschlechtpretest1213}}
{\includegraphics[width=0.4\textwidth]{Geschlecht_Pretest_1213.png}}
\end{subfloatrow}}
{\caption{Verteilung der Geschlechter beim Pretest WS 2013/14 (\ref{fig:geschlechtpretest} und beim Pretest im Vorjahr (WS 2012/13, s. \ref{fig:geschlechtpretest1213})}
\label{fig:geschlechtpreteste}}
\end{figure}

\end{document}
Fehlermeldung:
 Undefined control sequence.
l.14 \newseparatedlabel
\Flabel{figure}{subfigure}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.14 \newseparatedlabel\Flabel
{figure}{subfigure}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.14 \newseparatedlabel\Flabel{f
igure}{subfigure}
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
! Undefined control sequence.
l.15 \newseparatedref
\Fref{,\,\textit}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.15 \newseparatedref\Fref
{,\,\textit}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
...[code]

Benutzeravatar
Johannes_B
Moderator
Moderator
Beiträge: 5079
Registriert: Do 1. Nov 2012, 14:55
Kontaktdaten:

Beitrag von Johannes_B »

Ich würde dir eher die Pakete subfig, oder noch besser subcaption empfehlen. Für ein Beispiel habe ich allerdings gerade leider keine Zeit. Vielleicht später.
TeXwelt - Fragen und Antworten Schaut vorbei und stellt Fragen.
LaTeX-Vorlagen?

Der Weg zum Ziel: Ruhe bewahren und durchatmen, Beiträge und unterstützende Links aufmerksam lesen, Lösungsansätze verstehen und ggf. nachfragen.

Antworten