横向 PDF 图形侧面的标题

横向 PDF 图形侧面的标题

我需要包含在文档中的 PDF 文档页面是横向的。如何让 PDF 文件中的输出页面一方面以横向显示,并旋转 PDF 图像以获得更好的可视性,另一方面将标题放在页面左侧而不是底部,因为我的文档必须以纵向打印出来?此外,它应该保留在第 1 页,而不是转到下一页。

因为我有一个 PDF 图,所以我尝试了一下\usepackage{pdflscape}

\documentclass{article}
\usepackage{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[C]{Fancy page header}
\fancyfoot[C]{Footer}
\fancyfoot[R]{\thepage}
\usepackage{kantlipsum}
\usepackage{afterpage}
\usepackage{pdflscape}

\begin{document}

\kant[1]
\afterpage{
\clearpage
\section{New Section}
\begin{landscape}
\begin{figure}[htb]
  \centering
  \rotatebox[origin=c]{-90}{
  \begin{minipage}{.5\linewidth}
  \includegraphics[scale=.9,angle=90]{example-image-a}  %% adjust angle
  \caption{Figure caption is coming here and it will be by the side of the figure}
  \end{minipage}%
  }
 \end{figure}
\end{landscape}
}
\kant
\end{document}

\usepackage{pdflscape}会将其带到新页面并且标题位于底部。

这是我想要的结果:

在此处输入图片描述

我的愿望是不是太多了?

我非常感谢任何提前的反馈。

答案1

\documentclass{article}
\usepackage{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[C]{Fancy page header}
\fancyfoot[C]{Footer}
\fancyfoot[R]{\thepage}
\usepackage{kantlipsum}
\usepackage{afterpage}
\usepackage{pdflscape}

\begin{document}

\kant[1]
\afterpage{
\clearpage
\begin{landscape}
\begin{figure}[htb]
  \centering
  \rotatebox[origin=c]{-90}{
  \begin{minipage}{.5\linewidth}
  \includegraphics[scale=.9,angle=90]{example-image-a}  %% adjust angle
  \caption{Figure caption is coming here and it will be by the side of the figure}
  \end{minipage}%
  }
 \end{figure}
\end{landscape}
}
\kant
\end{document}

在此处输入图片描述

\documentclass{article}
\usepackage{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[C]{Fancy page header}
\fancyfoot[C]{Footer}
\fancyfoot[R]{\thepage}
\usepackage{kantlipsum}

\begin{document}
\section{This is a section}
\begin{figure}[!htb]
  \centering
  \includegraphics[scale=1.1,angle=90]{example-image-a}  %% adjust angle and scale appropriately
  \caption{Figure caption is coming here and it will be by the side of the figure}
 \end{figure}
\kant
\end{document}

在此处输入图片描述

相关内容