这是我的代码:
\documentclass[twoside, a4paper, 11pt]{article}
\title{}
\author{}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{verbatim}
\usepackage{amsmath, amssymb}
\usepackage{natbib}
%\def\pgfsysdriver{pgfsys-dvipdfm.def}
\usepackage{tikz}
\usepackage{enumerate}
\usetikzlibrary{matrix, arrows}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{color}
\usepackage{listings}
%\usepackage{hyperref}
\usepackage{float}
\usepackage{multicol}
\usepackage{booktabs}
\usepackage{lscape}
\usepackage{cases}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{setspace}
\usepackage{lscape}
\usepackage{caption}
\usepackage[update,prepend]{epstopdf}
%\usepackage{mathpazo}
%\usepackage{eulervm}
%\usepackage{iwona}
\usepackage[pdftex,colorlinks,linkcolor=blue,citecolor=blue]{hyperref}
\setlength{\textwidth}{6.5in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}
\linespread{1.5}
\usepackage[top=2.5cm, bottom=2.5cm, left=2cm, right=2cm]{geometry}
\raggedbottom
\everymath{\displaystyle}
\newcommand{\pder}[2][]{\frac{\partial#1}{\partial#2}}
\begin{document}
\newpage
\section{Figures}
\begin{landscape}
\begin{figure}
\centering
\caption{\textbf{Bootstrapped Probability of Default for Sovereigns} \\ This graph plots the bootstrapped probabilities of default ($PoD$) of 10 Euro Area (EA) sovereigns. The country abbreviations are shown in Table~\ref{tab:sovereignabbreviation}. All reported $PoD$s are annualized 5-year cumulative CDS-derived $PoD$s. All CDS contracts, except for Spain (SPA), are dollar (USD) denominated. We use euro denominated CDS contracts for Spain. Period: 01/01/2008 to 28/02/2013.}
\label{bootstrapsovereign}
\includegraphics[scale=0.70]{podsovereign.png}
\end{figure}
\end{landscape}
\bibliographystyle{apa-good}
\bibliography{bibliography}
\end{document}
但是,结果是我没有在与我的第一个图形相同的起始页上使用标题“图形”:
空白标题页
第一个图
我怎样才能使章节标题“图形”出现在我的第一个图形上方?
答案1
这是我的尝试。
我做了什么:
将选项传递
demo
给article
类,它显示一个大黑框而不是 png 图像(我无法访问)。使用
[h]
选项figure
,这样图形就不会移动到其自己的页面。调整
\textfraction
为0.1
,以防止大数字占据整个页面。这样,文本只占页面的 10% 是允许的。旋转标题(使用
\rotcaption
来自rotating
包的)。旋转图像(使用
\rotatebox
来自rotating
包中的图像)。使用了两个
minipage
,一个用于标题,一个用于图像,因此它们可以并排放置。
这是我的代码。
\documentclass[twoside, a4paper, 11pt,demo]{article}
\title{}
\author{}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{verbatim}
\usepackage{amsmath, amssymb}
\usepackage{natbib}
\def\pgfsysdriver{pgfsys-dvipdfm.def}
\usepackage{tikz}
\usepackage{enumerate}
\usetikzlibrary{matrix, arrows}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{color}
\usepackage{listings}
%\usepackage{hyperref}
\usepackage{float}
\usepackage{multicol}
\usepackage{booktabs}
\usepackage{lscape}
\usepackage{cases}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{setspace}
\usepackage{lscape}
\usepackage{caption}
\usepackage[update,prepend]{epstopdf}
%\usepackage{mathpazo}
%\usepackage{eulervm}
%\usepackage{iwona}
\usepackage[pdftex,colorlinks,linkcolor=blue,citecolor=blue]{hyperref}
\setlength{\textwidth}{6.5in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}
\linespread{1.5}
\usepackage[top=2.5cm, bottom=2.5cm, left=2cm, right=2cm]{geometry}
\raggedbottom
\everymath{\displaystyle}
\newcommand{\pder}[2][]{\frac{\partial#1}{\partial#2}}
% don't let large figures hijack entire pages
\renewcommand\textfraction{.1}
\begin{document}
\newpage
\section{Figures}
\begin{figure}[h]
\captionsetup{width=200mm}
\begin{minipage}[c]{27mm}
\rotcaption{\textbf{Bootstrapped Probability of Default for Sovereigns} \\ This graph plots the bootstrapped probabilities of default ($PoD$) of 10 Euro Area (EA) sovereigns. The country abbreviations are shown in Table~\ref{tab:sovereignabbreviation}. All reported $PoD$s are annualized 5-year cumulative CDS-derived $PoD$s. All CDS contracts, except for Spain (SPA), are dollar (USD) denominated. We use euro denominated CDS contracts for Spain. Period: 01/01/2008 to 28/02/2013.}
\label{bootstrapsovereign}
\end{minipage}
\begin{minipage}[c]{125mm}
\rotatebox{270}{\includegraphics[scale=0.70,width=210mm,height=125mm]{podsovereign.png}}
\end{minipage}
\end{figure}
\bibliographystyle{apa-good}
\bibliography{bibliography}
\end{document}