我已经生成了一张我想制作成景观的染色体图片:
\documentclass[12, twoside]{report}
\usepackage{graphicx}
\usepackage[a4paper,margin=1in]{geometry}
\usepackage{lscape}
\usepackage{rotating}
\usepackage{pdflscape}
\begin{document}
\begin{figure}[htbp]
\begin{landscape}
\includegraphics[width=\textwidth,angle=90]{results.png}
\caption[short]{\textbf{Regions}}
\end{landscape}
\end{figure}
\end{document}
如果您编译代码,它会起作用但不完全。我想知道是否有一个简单的修改。谢谢!
答案1
你想要这样的东西吗?
\documentclass[12, twoside]{report}
\usepackage{graphicx}
\usepackage[a4paper,margin=1in]{geometry}
\usepackage{lscape}
\usepackage{rotating}
\usepackage{pdflscape}
\begin{document}
\begin{landscape}
\begin{figure}[htbp]
\centering
\fbox{\includegraphics[width=\linewidth, height=\textheight,keepaspectratio]{results.png}}
\caption[short]{\textbf{Regions}}
\end{figure}
\end{landscape}
\end{document}
另一个解决方案可能是sidewaysfigure
来自rotating
以下包:
\documentclass[12, twoside]{report}
\usepackage{graphicx}
\usepackage[a4paper,margin=1in]{geometry}
\usepackage{rotating}
\begin{document}
\begin{sidewaysfigure}[htbp]
\centering
\includegraphics[width=\linewidth, height=\textheight,keepaspectratio]{results.png}
\caption[short]{\textbf{Regions}}
\end{sidewaysfigure}
\end{document}