I have a sidewaysfigure
with consisting of 6 subfigures. As this is the first figure that appear in my appendix, I need to have a non-rotatet section-title. Following this question Rotating: Sideways figure with Section title I tried to put my figure in a minipage
. But the result is that I have half of the figure on top (cut-off) and then in the middle of the page the section title.
I give u an example:
%General Layout
\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}
%Graphs and Diagrams
%\usepackage{subgraphic}
\usepackage{subfig}
\usepackage[demo]{rotating} %remove 'demo' option for real file
\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{threeparttablex}
\usepackage{pdflscape, longtable}
\usepackage{hvfloat}
\usepackage[labelsep=newline,% line break after label
justification=centering,
singlelinecheck=off, font=bf]{caption}
%%%%\usepackage[labelfont=md]{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}
\makeatletter% Set distance from top of page to first float
\setlength{\@fptop}{5pt}
\makeatother
%%%%%%%%%% Journal Conventions %%%%%%%%%%
\renewcommand{\thesection}{\Roman{section}}
\renewcommand{\thesubsection}{\Alph{subsection}}
\renewcommand{\thetable}{\Roman{table}}
\renewcommand{\abstractname}{\textsc{ABSTRACT}}
\makeatletter
% we need a period (.) after sectioning numbers, but not in cites thereto.
\renewcommand{\@seccntformat}[1]{{\csname the#1\endcsname}.\hspace{0.5em}}
\long\def\@makefigcaption#1#2{%
\vskip\abovecaptionskip
%#1\\\footnotesize#2
%\sbox\@tempboxa{\footnotesize\bf#1.\footnotesize#2}%
%\sbox\@tempboxa{\footnotesize{\textbf{#1.}} footnotesize#2}%
%\sbox\@tempboxa{\textbf{#1.} footnotesize#2}%
%\sbox\@tempboxa
\footnotesize\textbf{#1.} \footnotesize#2
\ifdim \wd\@tempboxa >\hsize
\textbf{#1.} #2\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
\renewcommand{\figure}{\let\@makecaption\@makefigcaption\@float{figure}}
\long\def\@maketblcaption#1#2{%
\vskip\abovecaptionskip %Same size for Numbering and Caption of Tables
\begin{center}\normalsize\bf#1\\\normalsize#2\end{center}
% \sbox\@tempboxa{\textbf{#1.} #2}%
% \global \@minipagefalse
% \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\vskip\belowcaptionskip}
\renewcommand{\table}{\let\@makecaption\@maketblcaption\@float{table}}
%\renewcommand{\sidewaystable}{\let\@makecaption\@maketblcaption\@float{sidewaystable}}
\makeatother
\begin{document}
\section{Appendix}
\captionsetup[subfloat]{labelfont=md}
\centering
\begin{figure}
\begin{minipage}[b][15cm][b]{15cm}
\begin{turn}{90}
%\caption{Cumulated Average Index-Adjusted CDS Return for Extreme Earnings Decile Portfolios \label{fig:CASC}}
%\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[DSUE1 $-$ Full Sample]{\includegraphics[width=0.31\textheight]{aasc_full_dsue1.eps}\label{fig:fullDSUE1}} \quad \bigskip
\subfloat[DSUE2 $-$ Full Sample]{\includegraphics[width=0.31\textheight]{aasc_full_dsue2.eps}\label{fig:fullDSUE2}}\quad
\subfloat[DSUE3 $-$ Full Sample]{\includegraphics[width=0.31\textheight]{aasc_full_dsue3.eps}\label{fig:fullDSUE3}} \quad \\
\subfloat[DSUE1 $-$ Pre-Crisis]{\includegraphics[width=0.31\textheight]{aasc_precrisis_dsue1.eps}\label{fig:preDSUE1}} \quad
\subfloat[DSUE2 $-$ Pre-Crisis]{\includegraphics[width=0.31\textheight]{aasc_precrisis_dsue2.eps}\label{fig:preDSUE2}}\quad
\subfloat[DSUE3 $-$ Pre-Crisis]{\includegraphics[width=0.31\textheight]{aasc_precrisis_dsue3.eps}\label{fig:preDSUE3}} \quad
%\begin{minipage}{\textheight}
%\bigskip
%Figure continues on next page
%\bigskip
%\end{minipage}
\end{turn}
\end{minipage}
\end{figure}
\end{document}
Furthermore, when I use sidewaysfigure
the figures are equally "distributed" in a 2×3 (sideways view). Using the minipage
environment just cuts them off.
Additionally, I would like to have the subcaptions in non-bold while the caption in bold. I tried to it with loading the subcaption
package with labelfont=md
options as well as directly "in front" of the figure with \captionsetup[subfloat]{labelfont=md}
(and [sidewaysfigure]}. But the subcaption of my subfigure are still bold.
thank you very much
edit:
this is the code I am trying to compile:
%General Layout
\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}
%Graphs and Diagrams
%\usepackage{subgraphic}
\usepackage{subfig}
\usepackage[demo]{rotating} %remove 'demo' option for real file
\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{threeparttablex}
\usepackage{pdflscape, longtable}
\usepackage{hvfloat}
\usepackage[labelsep=newline,% line break after label
justification=centering,
singlelinecheck=off, font=bf]{caption}
%%%%\usepackage[labelfont=md]{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}
\makeatletter% Set distance from top of page to first float
\setlength{\@fptop}{5pt}
\makeatother
%%%%%%%%%% Journal Conventions %%%%%%%%%%
\renewcommand{\thesection}{\Roman{section}}
\renewcommand{\thesubsection}{\Alph{subsection}}
\renewcommand{\thetable}{\Roman{table}}
\renewcommand{\abstractname}{\textsc{ABSTRACT}}
\makeatletter
% we need a period (.) after sectioning numbers, but not in cites thereto.
\renewcommand{\@seccntformat}[1]{{\csname the#1\endcsname}.\hspace{0.5em}}
\long\def\@makefigcaption#1#2{%
\vskip\abovecaptionskip
%#1\\\footnotesize#2
%\sbox\@tempboxa{\footnotesize\bf#1.\footnotesize#2}%
%\sbox\@tempboxa{\footnotesize{\textbf{#1.}} footnotesize#2}%
%\sbox\@tempboxa{\textbf{#1.} footnotesize#2}%
%\sbox\@tempboxa
\footnotesize\textbf{#1.} \footnotesize#2
\ifdim \wd\@tempboxa >\hsize
\textbf{#1.} #2\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
\renewcommand{\figure}{\let\@makecaption\@makefigcaption\@float{figure}}
\long\def\@maketblcaption#1#2{%
\vskip\abovecaptionskip %Same size for Numbering and Caption of Tables
\begin{center}\normalsize\bf#1\\\normalsize#2\end{center}
% \sbox\@tempboxa{\textbf{#1.} #2}%
% \global \@minipagefalse
% \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\vskip\belowcaptionskip}
\renewcommand{\table}{\let\@makecaption\@maketblcaption\@float{table}}
%\renewcommand{\sidewaystable}{\let\@makecaption\@maketblcaption\@float{sidewaystable}}
\makeatother
\begin{document}
\section{Appendix}
\captionsetup[subfloat]{labelfont=md}
\centering
\begin{figure}
\begin{minipage}[b][15cm][b]{15cm}
\begin{turn}{90}
%\caption{Cumulated Average Index-Adjusted CDS Return for Extreme Earnings Decile Portfolios \label{fig:CASC}}
%\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[DSUE1 $-$ Full Sample]{\includegraphics[width=0.31\textheight]{aasc_full_dsue1.eps}\label{fig:fullDSUE1}} \quad \bigskip
\subfloat[DSUE2 $-$ Full Sample]{\includegraphics[width=0.31\textheight]{aasc_full_dsue2.eps}\label{fig:fullDSUE2}}\quad
\subfloat[DSUE3 $-$ Full Sample]{\includegraphics[width=0.31\textheight]{aasc_full_dsue3.eps}\label{fig:fullDSUE3}} \quad \\
\subfloat[DSUE1 $-$ Pre-Crisis]{\includegraphics[width=0.31\textheight]{aasc_precrisis_dsue1.eps}\label{fig:preDSUE1}} \quad
\subfloat[DSUE2 $-$ Pre-Crisis]{\includegraphics[width=0.31\textheight]{aasc_precrisis_dsue2.eps}\label{fig:preDSUE2}}\quad
\subfloat[DSUE3 $-$ Pre-Crisis]{\includegraphics[width=0.31\textheight]{aasc_precrisis_dsue3.eps}\label{fig:preDSUE3}} \quad
%\begin{minipage}{\textheight}
%\bigskip
%Figure continues on next page
%\bigskip
%\end{minipage}
\end{turn}
\end{minipage}
\end{figure}
\end{document}
EDIT: here is a reduced version (I just commented out all packages from which I know it would worked without).
%General Layout
\documentclass[a4paper, 12pt]{article}
\usepackage[left=3cm, right=2cm, top=3cm, bottom=4cm]{geometry}
%Font encoding
\usepackage[T1]{fontenc}
%Font
\usepackage[utf8]{inputenc}
%Language
%Graphs and Diagrams
%\usepackage{subgraphic}
\usepackage{subfig}
\usepackage[demo]{rotating} %remove 'demo' option for real file
\usepackage[outdir=./]{epstopdf}
\usepackage{graphicx}
\usepackage{float}
%\usepackage[labelsep=newline,% line break after label
% justification=centering,
% singlelinecheck=off, font=bf]{caption}
\usepackage{caption}
\begin{document}
\section{Appendix}
\centering
\begin{figure}
\begin{minipage}[b][15cm][b]{15cm}
\begin{turn}{90}
\subfloat[DSUE1 $-$ Full Sample]{\includegraphics[width=0.31\textheight]{aasc_full_dsue1.eps}\label{fig:fullDSUE1}} \quad \bigskip
\subfloat[DSUE2 $-$ Full Sample]{\includegraphics[width=0.31\textheight]{aasc_full_dsue2.eps}\label{fig:fullDSUE2}}\quad
\subfloat[DSUE3 $-$ Full Sample]{\includegraphics[width=0.31\textheight]{aasc_full_dsue3.eps}\label{fig:fullDSUE3}} \quad \\
\subfloat[DSUE1 $-$ Pre-Crisis]{\includegraphics[width=0.31\textheight]{aasc_precrisis_dsue1.eps}\label{fig:preDSUE1}} \quad
\subfloat[DSUE2 $-$ Pre-Crisis]{\includegraphics[width=0.31\textheight]{aasc_precrisis_dsue2.eps}\label{fig:preDSUE2}}\quad
\subfloat[DSUE3 $-$ Pre-Crisis]{\includegraphics[width=0.31\textheight]{aasc_precrisis_dsue3.eps}\label{fig:preDSUE3}} \quad
\end{turn}
\end{minipage}
\end{figure}
\end{document}
and that is the output:
ant that is what I would like to achieve (Note I painted the section-title manually):
EDIT:
Here is the example that is almost what I wanted. Now the question arises on how to modify the caption just(!) for figures: I need them to be bold and left aligned while captions for my tables are supposed to be centered (therefore, I global definition might not be possible).
%General Layout
\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}
\usepackage{rotating}
\usepackage[outdir=./]{epstopdf}
\usepackage{graphicx}
\usepackage{float}
\usepackage{pdfpages}
\usepackage[labelsep=newline,% line break after label
justification=centering, labelsep=period,
singlelinecheck=off, font=bf]{caption}
\usepackage{subcaption}
\makeatletter% Set distance from top of page to first float
\setlength{\@fptop}{5pt}
\makeatother
%%%%%%%%%% Journal of Finance %%%%%%%%%%
%These conventions are taken from Jiri Woschitz and Guido Rosenast
\renewcommand{\thesection}{\Roman{section}}
\renewcommand{\thesubsection}{\Alph{subsection}}
\renewcommand{\thetable}{\Roman{table}}
\renewcommand{\abstractname}{\textsc{ABSTRACT}}
\makeatletter
% we need a period (.) after sectioning numbers, but not in cites thereto.
\renewcommand{\@seccntformat}[1]{{\csname the#1\endcsname}.\hspace{0.5em}}
\long\def\@makefigcaption#1#2{%
\vskip\abovecaptionskip
%#1\\\footnotesize#2
%\sbox\@tempboxa{\footnotesize\bf#1.\footnotesize#2}%
%\sbox\@tempboxa{\footnotesize{\textbf{#1.}} footnotesize#2}%
%\sbox\@tempboxa{\textbf{#1.} footnotesize#2}%
%\sbox\@tempboxa
\footnotesize\textbf{#1.} \footnotesize#2
\ifdim \wd\@tempboxa >\hsize
\textbf{#1.} #2\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
\renewcommand{\figure}{\let\@makecaption\@makefigcaption\@float{figure}}
\long\def\@maketblcaption#1#2{%
\vskip\abovecaptionskip %Same size for Numbering and Caption of Tables
\begin{center}\normalsize\bf#1\\\normalsize#2\end{center}
% \sbox\@tempboxa{\textbf{#1.} #2}%
% \global \@minipagefalse
% \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\vskip\belowcaptionskip}
\renewcommand{\table}{\let\@makecaption\@maketblcaption\@float{table}}
%\renewcommand{\sidewaystable}{\let\@makecaption\@maketblcaption\@float{sidewaystable}}
\makeatother
\setlength{\abovecaptionskip}{0.1cm}
\setlength{\belowcaptionskip}{-2mm}
%%%%%%%%%% End: Journal of Finance%%%%%%%%%%
\captionsetup[subfigure]{font=md}
\begin{document}
\tableofcontents
\listoffigures
\listoftables
\newpage
\section{Appendix}
\centering
\begin{figure}[htp]
\begin{minipage}{\textwidth}
\section{Appendix} \bigskip \bigskip \bigskip
\end{minipage}
\begin{turn}{90}
\begin{minipage}{0.85\textheight}
\caption{Cumulated Average Index-Adjusted CDS Return for Extreme Earnings Decile Portfolios \label{fig:CASC}} \vspace{-3mm}
testestestt estestestteste stesttestestesttestestesttestestesttestestes
testestesttestest esttestestestteste stesttes testestvtestestest
testestesttestestestt estestesttestestestteste stesttestestesttesteste
testestestte stestesttestestesttestestesttestestesttestestest \bigskip \bigskip \\
\subfloat[DSUE1 $-$ Full Sample]{\includegraphics[width=0.27\textheight]{aasc_full_dsue1.eps}\label{fig:fullDSUE1}} \quad \bigskip
\subfloat[DSUE2 $-$ Full Sample]{\includegraphics[width=0.27\textheight]{aasc_full_dsue2.eps}\label{fig:fullDSUE2}} \quad
\subfloat[DSUE3 $-$ Full Sample]{\includegraphics[width=0.27\textheight]{aasc_full_dsue3.eps}\label{fig:fullDSUE3}} \quad
\subfloat[DSUE1 $-$ Pre-Crisis]{\includegraphics[width=0.27\textheight]{aasc_precrisis_dsue1.eps}\label{fig:preDSUE1}} \quad
\subfloat[DSUE2 $-$ Pre-Crisis]{\includegraphics[width=0.27\textheight]{aasc_precrisis_dsue2.eps}\label{fig:preDSUE2}} \quad
\subfloat[DSUE3 $-$ Pre-Crisis]{\includegraphics[width=0.27\textheight]{aasc_precrisis_dsue3.eps}\label{fig:preDSUE3}} \quad
\end{minipage}
\end{turn}
\end{figure}
\end{document}
Best Answer
Here is the kind of thing I think you want although I'm not sure. You can fiddle with the sizes to make the most of the space but you need things smaller than in the MWE unless you want more than 2 lines of sub-figures which is another option.
Update
To move the figure downwards, you can insert some vertical space before and after, followed by a
\clearpage
:Update II
As requested, here is a way to customise the captions for figures and tables: