wrapfigure - 图像在文档末尾跳转

wrapfigure - 图像在文档末尾跳转

我是 LaTeX 新手,第一次遇到 wrapfigure 问题。我想在文档右侧显示图片,左侧显示文本。

HEADLINE
text text text text text
text text text text text
text text text IMAGE IMAGE
text text text IMAGE IMAGE
text text text IMAGE IMAGE
text text text text text
text text text text text

因此我使用:

\section{Impressum}
\label{impressum}

\begin{wrapfigure}[43]{h}[0cm]{6cm}
    \vspace{-12pt}
    \fbox{\includegraphics[width=0.35\textwidth]{screens/savedlocations}}
    \caption[placeholder]{placeholder}
    \label{fig:placeholder}
\end{wrapfigure}

    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 text text text text text text text
 text text text text text text text text text text text text text text text text

但图像仅出现在我的文档的末尾(即使在我的listoffigures.

我很奇怪为什么,因为我在本节之前使用过此代码五次,并且它有效。

编辑:错误消息:Package wrapfig Warning: Collision between wrapping environments on input line 233.

Latex代码:

\documentclass[12pt]{scrartcl}

\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage[ngerman]{babel}
\addto\captionsngerman{\renewcommand{\figurename}{Bild}}

\usepackage{chngcntr}
\counterwithout{figure}{section}

\usepackage{geometry}
\geometry{a4paper, left=2.5cm, right=2cm, top=3cm, bottom=3cm}
\setlength{\footskip}{2cm}

\title{TITLE}

\begin{document}
\maketitle
\pagebreak
\tableofcontents
\pagebreak

\section{Einleitung}
\label{sec:einleitung}
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 


\pagebreak
\section{App Konzept}
\label{sec:app-kozept}


\subsection{Lesen}
\label{subsec:lesen}
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 


\subsection{Verwalten}
\label{subsec:verwalten}
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 


\subsection{Navigation}
\label{subsec:navigation}

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{wrapfigure}[43]{h}[0cm]{0cm}
    \vspace{-12pt}
    \fbox{\includegraphics[width=0.35\textwidth]{screens/adddata_full}}
    \caption[Ausgefülltes Daten hinzufügen Fragment]{Ausgefülltes Daten         hinzufügen Fragment}
    \label{fig:adddatafull}

    \vspace{20pt}
    \fbox{\includegraphics[width=0.35\textwidth]{screens/savedrooms_full}}
    \caption[Gespeicherte Räume]{Gespeicherte Räume}
    \label{fig:savedrooms}
\end{wrapfigure}

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 text text text text text text text text 
text text text text text text text text text text text text text text text text 



\pagebreak
\subsection{Standortverwaltung}
\label{subsec:standwortverwaltung}

\begin{wrapfigure}[43]{h}[0cm]{0cm}
    \vspace{-12pt}
    \fbox{\includegraphics[width=0.35\textwidth]{screens/savedlocations}}
    \caption[Gespeicherte Standorte]{Gespeicherte Standorte}
    \label{fig:savedlocations}

    \vspace{20pt}
    \fbox{\includegraphics[width=0.35\textwidth]{screens/savedlocations_fabs}}
    \caption[Fabs des Fragments]{Fabs des Fragments}
    \label{fig:savedlocations-fabs}
\end{wrapfigure}

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



\pagebreak
\section{Impressum}
\label{impressum}

\begin{wrapfigure}[]{h}[0cm]{0cm}
    \fbox{\includegraphics[width=0.35\textwidth]{screens/savedlocations}}
    \caption[placeholder]{placeholder}
    \label{fig:placeholder}
\end{wrapfigure}

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 text text text text text text text text 
text text text text text text text text text text text text text text text text 

\pagebreak
\listoffigures


\end{document}

EDIT2:如果我添加另一个图,结果如下:

\section{Impressum}
\label{impressum}

\begin{wrapfigure}[]{h}[0cm]{0cm}
    \fbox{\includegraphics[width=0.35\textwidth]{screens/placeholder}}
    \caption[placeholder]{placeholder}
    \label{fig:placeholder}
\end{wrapfigure}

\begin{wrapfigure}[]{h}[0cm]{0cm}
    \fbox{\includegraphics[width=0.35\textwidth]{screens/placeholder}}
    \caption[placeholder]{placeholder}
    \label{fig:placeholder}
\end{wrapfigure}

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

在此处输入图片描述

答案1

我估计你的数字太大了。以下使用width=和 的设置height=仅用于一些演示。keepaspectratio=true使用两个选项时通常需要。

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{wrapfig}
\usepackage{blindtext}
\begin{document}
    \section{Impressum}
    \label{impressum}

    \begin{wrapfigure}[43]{h}[0cm]{0.4\textwidth}\centering
        \vspace{-\normalbaselineskip}
        \fbox{\includegraphics[width=0.35\textwidth,height=39\normalbaselineskip]{screens/savedlocations}}
        \caption[placeholder]{placeholder}
        \label{fig:placeholder}
    \end{wrapfigure}        
    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 text text text text text text text
    text text text text text text text text text text text text text text text text 
\Blindtext      
\end{document}

在此处输入图片描述

对于两个数字使用:

\begin{wrapfigure}[43]{h}[0cm]{0.4\textwidth}\centering
    \vspace{-\normalbaselineskip}
    \fbox{\includegraphics[width=0.35\textwidth,height=18\normalbaselineskip]{screens/savedlocations}}
    \caption[placeholder]{placeholder}
    \label{fig:placeholder}
    \bigskip
    \fbox{\includegraphics[width=0.35\textwidth,height=18\normalbaselineskip]{screens/savedlocations}}
    \caption[placeholder]{placeholder}
    \label{fig:placeholder2}
\end{wrapfigure}        

答案2

我明白了!问题出在上面的包装图上。

    \begin{wrapfigure}[43]{h}[0cm]{0cm}
    \vspace{-12pt}
    \fbox{\includegraphics[width=0.35\textwidth]{screens/savedlocations}}
    \caption[Gespeicherte Standorte]{Gespeicherte Standorte}
    \label{fig:savedlocations}

    \vspace{20pt}
    \fbox{\includegraphics[width=0.35\textwidth]{screens/savedlocations_fabs}}
    \caption[Fabs des Fragments]{Fabs des Fragments}
    \label{fig:savedlocations-fabs}
\end{wrapfigure}

我缩短了 43 行,但页面不够满。所以就\wrapfigure翻到了下一页 -.-

相关内容