가로 모드에서 텍스트가 그림 주위에 떠 있게 만드는 방법은 무엇입니까?

가로 모드에서 텍스트가 그림 주위에 떠 있게 만드는 방법은 무엇입니까?

가로 모드의 그림에 문제가 있습니다. 마치 페이지를 지우고 다음 페이지에 그림을 넣은 다음 세 번째 페이지에 이어지는 텍스트가 있는 것처럼 보입니다. 질문이 불분명하거나 추가 정보가 필요한 경우 알려주시기 바랍니다. 미리 감사드립니다.

\documentclass[english,a4paper,12pt,twoside]{scrbook}
\begin{document}

The following figure should be inserted on an available page (Figure \ref{fig:test}); 
however, that is not the case. The figure is inserted between this text

\begin{landscape}
\begin{figure}  
\centering  
\includegraphics[width=1.4\textwidth, height = 0.75\textwidth] {Figures/example.jpg}
\caption{Example text}
\label{fig:test}
\end{figure}
\end{landscape}

and this text. Because of that, I end up with pages that have three sentences, 
and the rest is left blank; the figure is placed on the next page.
Other times, only one-third of the page is left blank. Readers
will think that I begin a new chapter.
What can I do about that? I don't want Latex to break the page whenever I use 
a figure in landscape. Btw: the figures need to be large

\end{document}

답변1

David Carlisle의 패키지 afterpage가 여기서 도움이 될 수 있습니다. 명령 본문은 \afterpage페이지가 채워진 후 처리됩니다. MWE:

\documentclass[english,a4paper,12pt,twoside]{scrbook}
\usepackage{pdflscape}
\usepackage{graphicx}
\usepackage{afterpage}
\begin{document}

The following figure should be inserted on an available page (Figure \ref{fig:test}); 
however, that is not the case. The figure is inserted between this text

\afterpage{%
\begin{landscape}%
\begin{figure}%
\centering%
\includegraphics[draft,width=1.4\textwidth, height=0.75\textwidth]{Figures/example.jpg}%
\caption{Example text}%
\label{fig:test}%
\end{figure}%
\end{landscape}%
}

and this text. Because of that, I end up with pages that have three sentences, 
and the rest is left blank; the figure is placed on the next page.
Other times, only one-third of the page is left blank. Readers
will think that I begin a new chapter.
What can I do about that? I don't want Latex to break the page whenever I use 
a figure in landscape. Btw: the figures need to be large

\end{document}

결과:

여기에 이미지 설명을 입력하세요

관련 정보