有什么方法可以让我使用该包将侧面图形放到rotating
与章节标题相同的页面上吗?
\documentclass[a4paper,12pt]{article}
\usepackage[applemac]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage{tikz}
\begin{document}
\subsection{My sideways figure}
\begin{sidewaysfigure}[h!]
\centering
\begin{tikzpicture}[scale=4]
\fill[blue] (0,0) rectangle(2,1.5);
\end{tikzpicture}
\caption{Box plot of number of positions sent per iteration using this scheme}
\label{fig:awesome_image}
\end{sidewaysfigure}
\end{document}
PS 感谢@Jubobs 提供的如何使用该rotating
包的示例(如何将乳胶图形连同标题一起旋转 90 度?)。
答案1
turn
一种具有两个环境和s的基本方法minipage
。无论是否添加,结果都是相同的 传说虚拟文本。
\documentclass[a4paper,12pt]{article}
\usepackage[applemac]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage{lipsum}
\usepackage{tikz}
\begin{document}
\subsection{My sideways figure}
\lipsum[2]
\begin{figure}[h!]
\centering
\begin{minipage}[b][8cm][b]{6cm}
\begin{turn}{90}
\begin{tikzpicture}[scale=4]
\fill[blue] (0,0) rectangle(2,1.5);
\end{tikzpicture}
\end{turn}
\end{minipage}
\begin{turn}{90}
\begin{minipage}[c][1cm][c]{8cm}
\caption{Box plot of number of positions sent per iteration using this scheme.}
\label{fig:awesome_image}
\end{minipage}
\end{turn}
\end{figure}
\lipsum[1]
\end{document}