![旋转:带有章节标题的侧身图形](https://linux22.com/image/278904/%E6%97%8B%E8%BD%AC%EF%BC%9A%E5%B8%A6%E6%9C%89%E7%AB%A0%E8%8A%82%E6%A0%87%E9%A2%98%E7%9A%84%E4%BE%A7%E8%BA%AB%E5%9B%BE%E5%BD%A2.png)
有什么方法可以让我使用该包将侧面图形放到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}