von Luise » So 17. Mär 2013, 16:28
Hallo,
ich möchte gerne zwei Bilder untereinander in ein wrapfigure bauen und das klappt so:
\documentclass[12pt,a4paper]{book}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{caption}
\begin{document}
\begin{wrapfigure}{o}[0pt]{5cm}
\begin{tabular}{@{}c@{}}
\includegraphics[width=5cm]{bild1.pdf}\\
\includegraphics[width=5cm]{bild2.pdf}
\end{tabular}
\end{wrapfigure}
\end{document}
Möchte ich aber noch eine Bildbeschreibung einbauen:
\documentclass[12pt,a4paper]{book}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{caption}
\begin{document}
\begin{wrapfigure}{o}[0pt]{5cm}
\begin{tabular}{@{}c@{}}
\includegraphics[width=5cm]{bild1.pdf}\captionof{figure}{Bild1}\\
\includegraphics[width=5cm]{bild2.pdf}
\end{tabular}
\end{wrapfigure}
\end{document}
dann bekomm ich einen Fehler:
You can't use `\hrule' here except with leaders ...m]{bild1.pdf}\captionof{figure}{Bild1}
Hat jemand Abhilfe?
Gruß
Luise
Hallo,
ich möchte gerne zwei Bilder untereinander in ein wrapfigure bauen und das klappt so:
[code]\documentclass[12pt,a4paper]{book}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{caption}
\begin{document}
\begin{wrapfigure}{o}[0pt]{5cm}
\begin{tabular}{@{}c@{}}
\includegraphics[width=5cm]{bild1.pdf}\\
\includegraphics[width=5cm]{bild2.pdf}
\end{tabular}
\end{wrapfigure}
\end{document}[/code]
Möchte ich aber noch eine Bildbeschreibung einbauen:
[code]\documentclass[12pt,a4paper]{book}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{caption}
\begin{document}
\begin{wrapfigure}{o}[0pt]{5cm}
\begin{tabular}{@{}c@{}}
\includegraphics[width=5cm]{bild1.pdf}\captionof{figure}{Bild1}\\
\includegraphics[width=5cm]{bild2.pdf}
\end{tabular}
\end{wrapfigure}
\end{document}[/code]
dann bekomm ich einen Fehler: [color=red]You can't use `\hrule' here except with leaders ...m]{bild1.pdf}\captionof{figure}{Bild1}[/color]
Hat jemand Abhilfe?
Gruß
Luise