我想要一个大图形在乳胶中的一整页上垂直绘制,但标题不是垂直显示,而是水平显示。
我的 MWE:
\documentclass{book}
\usepackage[most]{tcolorbox}
% \usepackage[demo]{graphicx}
\usepackage{caption}
\usepackage[list=true]{subcaption}
\usepackage{tocloft}
\renewcommand{\cfttoctitlefont}{\Huge \bfseries \sffamily}
\setcounter{lofdepth}{2}
\begin{document}
\listoffigures
\chapter{One}
\section{One}
tesing testing tesing testing tesing testing
tesing testing
tesing testing
tesing testing
tesing testing
tesing testing
\begin{figure}[!b]
\centering
% \includegraphics[width=\textwidth]
\includegraphics[scale=1.6, angle=90]{example-image}
\subcaption{$Q^{*}$ values for arm 1}
\label{fig:arm1}
\end{figure}
%
\clearpage
\section{two}
testing
\end{document}
我的剧情结局是:
答案1
将环境放入包中的环境figure
中并删除选项,如以下示例所示。landscape
pdflscape
angle
旁注:该\subcaption
命令的原因是什么?只有一张图片,\caption
图中没有对应图片?
\documentclass{book}
\usepackage[most]{tcolorbox}
% \usepackage[demo]{graphicx}
\usepackage{caption}
\usepackage[list=true]{subcaption}
\usepackage{tocloft}
\renewcommand{\cfttoctitlefont}{\Huge \bfseries \sffamily}
\setcounter{lofdepth}{2}
\usepackage{pdflscape}
\begin{document}
\listoffigures
\chapter{One}
\section{One}
tesing testing tesing testing tesing testing
tesing testing
tesing testing
tesing testing
tesing testing
tesing testing
\begin{landscape}
\begin{figure}
\centering
\includegraphics[scale=1.6]{example-image}
\subcaption{$Q^{*}$ values for arm 1}
\label{fig:arm1}
\end{figure}
\end{landscape}
\clearpage
\section{two}
testing
\end{document}
如果您希望让图形保持浮动,请使用sidewaysfigure
以下rotating
包:
\documentclass{book}
\usepackage[most]{tcolorbox}
% \usepackage[demo]{graphicx}
\usepackage{caption}
\usepackage[list=true]{subcaption}
\usepackage{tocloft}
\renewcommand{\cfttoctitlefont}{\Huge \bfseries \sffamily}
\setcounter{lofdepth}{2}
\usepackage{rotating}
\begin{document}
\listoffigures
\chapter{One}
\section{One}
tesing testing tesing testing tesing testing
tesing testing
tesing testing
tesing testing
tesing testing
tesing testing
\begin{sidewaysfigure}
\centering
\includegraphics[scale=1.6]{example-image}
\subcaption{$Q^{*}$ values for arm 1}
\label{fig:arm1}
\end{sidewaysfigure}
\section{two}
testing
\end{document}