我正在处理文档中的旋转图形。我有两种选择:
sidewaysfigure
从rotating
包中landscape
pdflscape
包中的环境
我更喜欢 ,sidewaysfigure
因为图形浮动效果更好,但是,我希望获得 PDF 的效果landscape
。我不喜欢使用 ,landscape
因为我必须添加\afterpage{...}
以避免文档中在旋转页面之前出现不必要的空白,而且有时,它与其他软件包不兼容。
有没有办法使用slidewaysfigure
来旋转带有图形的 PDF 页面?
\documentclass[12pt,a4paper]{article}
\usepackage{blindtext}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{pdflscape}
\usepackage{afterpage}
\usepackage{rotating}
\usepackage{graphics, graphicx}
\begin{document}
\blindtext\par%
%
\begin{sidewaysfigure}%<-- Perfect placement of the figure and text before and after
\centering
\includegraphics[width=0.7\linewidth]{example-image-a}
\caption{Figure a}
\label{Fig:a}
\end{sidewaysfigure}%
%
\Blindtext\par%
%
\begin{landscape}%<-- makes undesirable withe space before the rotated page
\begin{figure}[h]
\centering
\includegraphics[width=0.7\linewidth]{example-image-b}
\caption{Figure b}
\label{Fig:b}
\end{figure}
\end{landscape}%
%
\Blindtext\par%
%
\afterpage{%<-- undesirable use
\begin{landscape}
\begin{figure}[h]
\centering
\includegraphics[width=0.7\linewidth]{example-image-c}
\caption{Figure c}
\label{Fig:c}
\end{figure}
\end{landscape}%
}%
%
\blindtext
\end{document}