在 Ubuntu 16.04 上,使用 vanilla 时,pdflscape
和lscape
包不再正确旋转页面classicthesis
Output loop---100 consecutive cycles
包,但反而给出了每个横向页面的错误。
只需在任何章节中添加以下代码即可重新创建:
\usepackage{pdflscape}
\begin{landscape}
\begin{figure}
\includegraphics{test.jpg}
\end{figure}
\end{landscape}
纯latex
文本文档中的横向图形似乎确实有效。在环境中用文本替换图形classicthesis
确实有效,因此问题一定与图形环境和环境的组合有关classicthesis
。关于如何解决这个问题有什么想法吗?
最小工作示例
下面可以找到一个 MWE,其中原始classicthesis
包已被剥离为可能影响错误的包
\RequirePackage{fix-cm}
\documentclass[ twoside,openright,titlepage,numbers=noenddot,headinclude,%1headlines,% letterpaper a4paper
footinclude=true,cleardoublepage=empty,abstractoff, % <--- obsolete, remove (todo)
BCOR=5mm,paper=a4,fontsize=11pt,%11pt,a4paper,%
ngerman,american,%
]{scrreprt}
\PassOptionsToPackage{utf8}{inputenc}
\usepackage{inputenc}
\PassOptionsToPackage{eulerchapternumbers,listings,drafting,pdfspacing,subfig,beramono,eulermath,parts}{classicthesis}
\newcounter{dummy} % necessary for correct hyperlinks (to index, bib, etc.)
\newlength{\abcd} % for ab..z string length calculation
\PassOptionsToPackage{T1}{fontenc} % T2A for cyrillics
\usepackage{fontenc}
\usepackage{textcomp} % fix warning with missing font shapes
\usepackage{scrhack} % fix warnings when using KOMA with listings package
\usepackage{xspace} % to get the spacing after macros right
\usepackage{mparhack} % get marginpar right
\usepackage{caption}
\captionsetup{font=small} % format=hang,
\usepackage{subfig}
\PassOptionsToPackage{pdftex,hyperfootnotes=false,pdfpagelabels}{hyperref}
\usepackage{hyperref} % backref linktocpage pagebackref
\pdfcompresslevel=9
\pdfadjustspacing=1
\PassOptionsToPackage{pdftex}{graphicx}
\usepackage{graphicx}
\listfiles
\usepackage{classicthesis}
\usepackage{pdflscape}
\begin{document}
\frenchspacing
\raggedbottom
\pagestyle{plain}
Testing
\begin{landscape}
\begin{figure}
\includegraphics{test.jpg}
\end{figure}
\end{landscape}
Testing
\end{document}
答案1
似乎将该float
包与浮点说明符一起使用H
可以解决这个问题。