跨多页的横向子图

跨多页的横向子图

我正在尝试根据这个问题包含“侧面”子图如何旋转一组图形(子图) 来自 Torbjørn T.

我想将三幅图片并排放置(为了比较),并继续这个“三行”。如果我需要多页,它应该继续下一页。类似这样(如果 9 张图片放不下,那么就放 6 张甚至 3 张)。

= = =
= = = 
= = = 

我猜可能是软件包 subfig 出了问题,因为包含它会导致错误。我使用的其他软件包是否存在问题?

这是我的包裹:

\documentclass[a4paper, 12pt]{article}
\usepackage[left=3cm, right=2cm, top=3cm, bottom=4cm]{geometry}
%Font encoding
\usepackage[T1]{fontenc}
%Font
\usepackage[utf8]{inputenc}
%Language
\usepackage[english]{babel}
%Mathematics
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{textgreek}
%Graphs and Diagrams
%\usepackage{subgraphic}
%\usepackage{subfig}
\usepackage{rotating}
\usepackage{tikz}
\usepackage[outdir=./]{epstopdf}
\usepackage{graphicx}
\usepackage{float}
\usepackage{pdfpages}
%Tables
\usepackage{multirow}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{tabulary}
\usepackage{tabularx}
\usepackage{fixltx2e}
\usepackage{threeparttable}
\usepackage[labelsep=newline,% line break after label
   justification=raggedright,
   singlelinecheck=off]{caption}
\usepackage{subcaption}
\usepackage{siunitx}
\usepackage{etoolbox}
\robustify\bfseries 
\sisetup{detect-weight=true,detect-inline-weight=math}
\usepackage{fancybox}
\usepackage{array}
\usepackage{dcolumn}
\newcolumntype{d}[1]{D{.}{.}{#1}}
\newcommand\mc[1]{\multicolumn{1}{c}{#1}}
\usepackage{colortbl}
%Writing
\usepackage{txfonts}
\usepackage[doublespacing]{setspace}
%Misc
\usepackage{datetime}
\usepackage{tocvsec2}
%References
%\usepackage{hyperref}
%\usepackage{float}
\usepackage{natbib}
\usepackage{fancyref}
\begin{document}
\end{sidewaysfigure} 
\centering
\begin{sidewaysfigure}
  \caption[]{Caption for the three rotated figures. \label{fig:test}}
    \begin{minipage}{\textheight}
    \footnotesize test test test testtest test test testtest test test testtest test test testtest test test testtest test test testtest test test testtest test test testtest test test testtest test test testtest test test testtest test test testtest test test testtest test test testtest test test testtest test test testtest test test testtest test test testtest test test testtest test test testtest test test testtest test test test 
    \bigskip
    \end{minipage}
  \subfloat[First figure]{\includegraphics[width=0.32\textheight]{aasc_full_dsue1.eps}\label{fig:a}} \quad 
  \subfloat[Second figure]{\includegraphics[width=0.32\textheight]{aasc_full_dsue2.eps}\label{fig:b}}\quad 
  \subfloat[Third figure]{\includegraphics[width=0.32\textheight]{aasc_full_dsue3.eps}\label{fig:c}} \quad 
    \subfloat[First figure]{\includegraphics[width=0.32\textheight]{aasc_full_dsue1.eps}\label{fig:d}} \quad 
  \subfloat[Second figure]{\includegraphics[width=0.32\textheight]{aasc_full_dsue3.eps}\label{fig:e}}\quad 
  \subfloat[Third figure]{\includegraphics[width=0.32\textheight]{aasc_full_dsue3.eps}\label{fig:f}} 

\end{sidewaysfigure}
\clearpage
\begin{sidewaysfigure}
  \ContinuedFloat             %%<-- put this in subsequest figures.
  \centering
  \subfloat[First figure]{\includegraphics[width=0.3\textheight]{aasc_full_dsue1.eps}\label{fig:d}} \quad
  \subfloat[Second figure]{\includegraphics[width=0.3\textheight]{aasc_full_dsue3.eps}\label{fig:e}}\quad
  \subfloat[Third figure]{\includegraphics[width=0.3\textheight]{aasc_full_dsue3.eps}\label{fig:f}}
  \caption[]{Caption for the three rotated figures\label{fig:test}}
  %%% Use empty optional argument in \caption[] for subsequest figures.
\end{sidewaysfigure}

\begin{table}[ht!]
\setlength\tabcolsep{0.1pt}  % default value: 6.0pt

\begin{threeparttable}
\caption{Summary Statistics}
\label{tab:SummaryStatistics}
\footnotesize
\begin{tabular*}{\textwidth}%
  { @{\extracolsep{\fill}} l d{5.0} *{7}{d{2.3}} }
\toprule
Variables\tnote{a} 
& \mc{\hphantom{$-$}N$\hphantom{^{**}}$} & \mc{\hphantom{$-$}Mean$\hphantom{^{**}}$} & \mc{\hphantom{$-$}St.\,Dev.$\hphantom{^{**}}$} & \mc{\hphantom{$-$}Min.$\hphantom{^{**}}$} & \mc{\hphantom{$-$}Q1$\hphantom{^{**}}$} & \mc{\hphantom{$-$}Median$\hphantom{^{**}}$} & \mc{\hphantom{$-$}Q3$\hphantom{^{**}}$} & \mc{\hphantom{$-$}Max.} \\ [0.5ex]
\midrule
\multicolumn{9}{l}{\itshape Earnings Surprise} \\ [0.5ex]
SUE1
 & \mc{\hphantom{$-$}14070$\hphantom{^{**}}$} & \mc{$-$0.001$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.182$\hphantom{^{**}}$} & \mc{$-$7.450$\hphantom{^{**}}$} &\mc{$-$0.003$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.001$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.005$\hphantom{^{**}}$} & \mc{\hphantom{$-$}6.240} \\
SUE2
 & \mc{\hphantom{$-$}14081$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.000$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.154$\hphantom{^{**}}$} & \mc{$-$7.440$\hphantom{^{**}}$} & \mc{$-$0.002$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.001$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.005$\hphantom{^{**}}$} & \mc{\hphantom{$-$}6.250} \\
SUE3
 & \mc{\hphantom{$-$}12604$\hphantom{^{**}}$} & \mc{$-$0.001$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.134$\hphantom{^{**}}$} & \mc{$-$8.180$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.000$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.001$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.002$\hphantom{^{**}}$} & \mc{\hphantom{$-$}7.090} \\  [0.5ex]
\midrule
\multicolumn{9}{l}{\itshape Firm Characteristics} \\ [0.5ex]
CASC (in \%)
 & \mc{\hphantom{$-$}12309$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.016$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.370$\hphantom{^{**}}$} & \mc{$-$0.803$\hphantom{^{**}}$} & \mc{$-$0.098$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.000$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.098$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.992} \\
BHAR (in \%)
 & \mc{\hphantom{$-$}13885$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.325$\hphantom{^{**}}$} & \mc{\hphantom{$-$}10.315$\hphantom{^{**}}$} & \mc{$-$19.233$\hphantom{^{**}}$} & \mc{$-$6.571$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.168$\hphantom{^{***}}$} & \mc{\hphantom{$-$}6.984$\hphantom{^{**}}$} & \mc{\hphantom{$-$}21.034} \\
DVOLA
 & \mc{\hphantom{$-$}13866$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.000$\hphantom{^{**}}$}  & \mc{\hphantom{$-$}0.004$\hphantom{^{**}}$} & \mc{$-$0.043$\hphantom{^{**}}$} & \mc{$-$0.001$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.000$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.001$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.104} \\
\begin{tabular}[c]{@{}l@{}}
Market Value of\\ \noindent\hspace*{3mm}Equity (in mio)
\end{tabular} 
& \mc{\hphantom{$-$}14012$\hphantom{^{**}}$} & \mc{\hphantom{$-$}21467$\hphantom{^{**}}$} & \mc{\hphantom{$-$}40919$\hphantom{^{**}}$} & \mc{\hphantom{$-$}52$\hphantom{^{**}}$} & \mc{\hphantom{$-$}3329$\hphantom{^{**}}$} & \mc{\hphantom{$-$}8082$\hphantom{^{**}}$} & \mc{\hphantom{$-$}20408$\hphantom{^{**}}$} & \mc{\hphantom{$-$}510201} \\
LEVERAGE
 & \mc{\hphantom{$-$}12756$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.299$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.203$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.000$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.144$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.252$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.420$\hphantom{^{**}}$} & \mc{\hphantom{$-$}1.000} \\
DLEVERAGE
 & \mc{\hphantom{$-$}12107$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.001$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.042$\hphantom{^{**}}$} & \mc{$-$0.274$\hphantom{^{**}}$} & \mc{$-$0.017$\hphantom{^{**}}$} & \mc{$-$0.002$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.015$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.461} \\
UPGRADE
 & \mc{\hphantom{$-$}14094$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.022$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.148$\hphantom{^{**}}$} &  \mc{\hphantom{$-$}0.000$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.000$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.000$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.000$\hphantom{^{**}}$} & \mc{\hphantom{$-$}1.000} \\
DOWNGRADE
 & \mc{\hphantom{$-$}14094$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.036$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.186$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.000$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.000$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.000$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.000$\hphantom{^{**}}$} & \mc{\hphantom{$-$}1.000} \\ [0.5ex]
\midrule
\multicolumn{9}{l}{\itshape Macroeconomic Variables} \\ [0.5ex]
SPOT
 & \mc{\hphantom{$-$}14058$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.029$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.014$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.006$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.019$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.030$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.041$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.052} \\
DSPOT
 & \mc{\hphantom{$-$}13489$\hphantom{^{**}}$} & \mc{$-$0.001$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.004$\hphantom{^{**}}$} & \mc{$-$0.016$\hphantom{^{**}}$} & \mc{$-$0.003$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.000$\hphantom{^{***}}$} & \mc{\hphantom{$-$}0.002$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.013} \\
SLOPE
 & \mc{\hphantom{$-$}14058$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.014$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.010$\hphantom{^{**}}$} & \mc{$-$0.002$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.003$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.016$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.023$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.029} \\
DSLOPE
 & \mc{\hphantom{$-$}13489$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.000$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.003$\hphantom{^{**}}$} & \mc{$-$0.011$\hphantom{^{**}}$} & \mc{$-$0.003$\hphantom{^{**}}$} & \mc{$-$0.001$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.002$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.012} \\ [1ex]
\bottomrule
\end{tabular*}
\begin{tablenotes}
\footnotesize
\item[a] A table-specific footnote
test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test 
\end{tablenotes}
\end{threeparttable}
\end{table}

首先出现的是六个子图,然后是表格和剩余的子图。我怎样才能避免表格“潜入”我的图中?

\begin{table}[ht!]
\setlength\tabcolsep{0.1pt}  % default value: 6.0pt
\caption{Earnings Surprises and Cumulative Returns}
\label{tab:surprises}

如果存在互相排斥的包,我该怎么办(除了使用不同的方式来放置我的图形)?

非常感谢。

编辑:在 Harish Kumar 的帮助下,我几乎可以完成它,但我仍然面临一些问题。

此外(可能不适合这个答案),是否可以避免在图形的标题后换行(!)(我需要对表格这样做)。

答案1

subfig提供\ContinuedFloat如下使用的命令:

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{rotating}
\usepackage{subfig}
\begin{document}
\begin{sidewaysfigure}
  \centering
  \subfloat[First figure]{\includegraphics[width=0.28\textheight]{figures/a.png}\label{fig:a}} \quad
  \subfloat[Second figure]{\includegraphics[width=0.28\textheight]{figures/b.png}\label{fig:b}}\quad
  \subfloat[Third figure]{\includegraphics[width=0.28\textheight]{figures/c.png}\label{fig:c}}
  \caption{Caption for the three rotated figures\label{fig:test}}
\end{sidewaysfigure}
\clearpage
\begin{sidewaysfigure}
  \ContinuedFloat             %%<-- put this in subsequest figures.
  \centering
  \subfloat[First figure]{\includegraphics[width=0.28\textheight]{figures/a.png}\label{fig:d}} \quad
  \subfloat[Second figure]{\includegraphics[width=0.28\textheight]{figures/b.png}\label{fig:e}}\quad
  \subfloat[Third figure]{\includegraphics[width=0.28\textheight]{figures/c.png}\label{fig:f}}
  \caption[]{Caption for the three rotated figures\label{fig:test}}
  %%% Use empty optional argument in \caption[] for subsequest figures.
\end{sidewaysfigure}
\end{document}

在此处输入图片描述

相关内容