我正在写我的硕士论文(生物化学)。根据研究生办公室的规定,整页的图表需要将其描述放在不同的页面上。这是我的main.tex
文件(样本),其中包含图片。您会注意到我在描述后丢失了缩进。我想知道如何纠正它。非常感谢您抽出时间!
\documentclass[12pt, oneside]{book}
\usepackage{graphicx}
\usepackage[a4paper,margin=1in]{geometry}
\usepackage{pdflscape}
\usepackage{caption}
\usepackage{csquotes}
\captionsetup[figure]{labelfont=bf}
\graphicspath{{./Chapters/Figures/}}
\usepackage[table]{xcolor}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
%Load math package
\usepackage{amsmath}
%Set up the headers
\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength\headheight{14.5pt}
%Allows first indent and loads setspace package to be used in different documents.
\usepackage{indentfirst}
\usepackage{setspace}
\usepackage{url}
%Make cell space and scientific notation
\usepackage{longtable, cellspace, booktabs}
\setlength\cellspacetoplimit{4pt}
\setlength\cellspacebottomlimit{4pt}
\usepackage[table]{xcolor}
\usepackage{siunitx}
\sisetup{scientific-notation = true}
%Enables paragraph spacing. Saves the old indent value and restores it after loading the parskip package. Otherwise, you lose the indents.
\edef\restoreparindent{\parindent=\the\parindent\relax}
\usepackage{parskip}
\restoreparindent
\usepackage[backend=biber,style=numeric,,sorting=none]{biblatex}
\addbibresource{Chapters/references.bib}
\usepackage{cleveref}
\begin{document}
Another limitation of Nordling’s model is that it assumes a constant likelihood for each event, which is not always true.
For example, breast cancer follows the sixth power until the menopause and then deviates inwards suggesting that later events are less likely to occur after menopause.
This makes sense since breast cancer has hormonal risk factors.
Increased exposure to estrogen increases the risk of breast cancer.
Thus, factors that increase the number of menstrual cycles, such as early menarche, nulliparity, and late onset of menopause, also increase the risk of breast cancer.
Similarly, reducing the number of menstrual cycles through a longer lactation period seems to be protective.
\begin{figure}[htbp]
\includegraphics[width=\textwidth]{Figure3.png}
\label{fig:mortality}
\end{figure}
\clearpage
\null\vspace{\fill}
\captionof{figure}[Log-log plots of cancer mortality rates in Canada for 2010]{\textbf{Log-log plots of cancer mortality rates in Canada for 2010.} This figures shows that cancer overall requires at least six steps for both men and women (A,B). Additionally, the mathematical modelling of the influence of estrogen levels on breast cancer is consistent with the epidemiological data (C). Colon cancer in women is used as control because it is hormonally independent (D). \textit{Data: CANSIM tables 051-0522 and 102-0522, Statistics Canada. Accessed: April 4th, 2015.}}
\vspace{\fill}
\clearpage
Nordling’s equation can be modified so the likelihood of an independent event changes as a function of the time of exposure to a factor (e.g. carcinogen, hormone), and the order of the cellular change which it affects. Mathematically, the probability of an event is proportional to:
\begin{equation}
t_{0}^{s-1}(t-t_{0})^{r-s-1}
\end{equation}
where to is the age of initial exposure, t is the age at diagnosis, r is the number of steps for carcinogenesis, and s is the order of the event (i.e. first, second,…,r\textsuperscript{th}).
\end{document}
答案1
您的代码存在问题,因为您没有使用\captionof
保护框或环境,正如您所经历的那样,这会产生不良结果。标题文档第 18 页提到了这一点:
...因此您应该同时使用两者
\captionof
并且\captionof*
只在盒子或环境内使用...
您可以添加一些封闭环境,minipage
例如:
\documentclass[12pt, oneside]{book}
\usepackage{graphicx}
\usepackage[a4paper,margin=1in]{geometry}
\usepackage{pdflscape}
\usepackage{caption}
\usepackage{csquotes}
\captionsetup[figure]{labelfont=bf}
\graphicspath{{./Chapters/Figures/}}
\usepackage[table]{xcolor}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
%Load math package
\usepackage{amsmath}
%Set up the headers
\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength\headheight{14.5pt}
%Allows first indent and loads setspace package to be used in different documents.
\usepackage{indentfirst}
\usepackage{setspace}
\usepackage{url}
%Make cell space and scientific notation
\usepackage{longtable, cellspace, booktabs}
\setlength\cellspacetoplimit{4pt}
\setlength\cellspacebottomlimit{4pt}
\usepackage[table]{xcolor}
\usepackage{siunitx}
\sisetup{scientific-notation = true}
%Enables paragraph spacing. Saves the old indent value and restores it after loading the parskip package. Otherwise, you lose the indents.
\edef\restoreparindent{\parindent=\the\parindent\relax}
\usepackage{parskip}
\restoreparindent
\usepackage[backend=biber,style=numeric,,sorting=none]{biblatex}
\addbibresource{Chapters/references.bib}
\usepackage{cleveref}
\begin{document}
Another limitation of Nordling’s model is that it assumes a constant likelihood for each event, which is not always true.
For example, breast cancer follows the sixth power until the menopause and then deviates inwards suggesting that later events are less likely to occur after menopause.
This makes sense since breast cancer has hormonal risk factors.
Increased exposure to estrogen increases the risk of breast cancer.
Thus, factors that increase the number of menstrual cycles, such as early menarche, nulliparity, and late onset of menopause, also increase the risk of breast cancer.
Similarly, reducing the number of menstrual cycles through a longer lactation period seems to be protective.
\begin{figure}[htbp]
\includegraphics[width=\textwidth]{example-image-a}
\label{fig:mortality}
\end{figure}
\clearpage
\null\vspace{\fill}
\noindent
\begin{minipage}{\textwidth}
\captionof{figure}[Log-log plots of cancer mortality rates in Canada for 2010]{\textbf{Log-log plots of cancer mortality rates in Canada for 2010.} This figures shows that cancer overall requires at least six steps for both men and women (A,B). Additionally, the mathematical modelling of the influence of estrogen levels on breast cancer is consistent with the epidemiological data (C). Colon cancer in women is used as control because it is hormonally independent (D). \textit{Data: CANSIM tables 051-0522 and 102-0522, Statistics Canada. Accessed: April 4th, 2015.}}
\end{minipage}
\vspace{\fill}
\clearpage
Nordling’s equation can be modified so the likelihood of an independent event changes as a function of the time of exposure to a factor (e.g. carcinogen, hormone), and the order of the cellular change which it affects. Mathematically, the probability of an event is proportional to:
\begin{equation}
t_{0}^{s-1}(t-t_{0})^{r-s-1}
\end{equation}
where to is the age of initial exposure, t is the age at diagnosis, r is the number of steps for carcinogenesis, and s is the order of the event (i.e. first, second,…,r\textsuperscript{th}).
\end{document}
结果:
不过我想建议你fltpage
包及其FPfigure
环境可轻松在不同的页面中排版标题。完整示例:
\documentclass[12pt, oneside]{book}
\usepackage{graphicx}
\usepackage[a4paper,margin=1in]{geometry}
\usepackage{caption}
\captionsetup[figure]{labelfont=bf}
\usepackage[CaptionAfterwards]{fltpage}
\usepackage{indentfirst}
%Enables paragraph spacing. Saves the old indent value and restores it after loading the parskip package. Otherwise, you lose the indents.
\edef\restoreparindent{\parindent=\the\parindent\relax}
\usepackage{parskip}
\restoreparindent
\begin{document}
Another limitation of Nordling’s model is that it assumes a constant likelihood for each event, which is not always true.
For example, breast cancer follows the sixth power until the menopause and then deviates inwards suggesting that later events are less likely to occur after menopause.
This makes sense since breast cancer has hormonal risk factors.
Increased exposure to estrogen increases the risk of breast cancer.
Thus, factors that increase the number of menstrual cycles, such as early menarche, nulliparity, and late onset of menopause, also increase the risk of breast cancer.
Similarly, reducing the number of menstrual cycles through a longer lactation period seems to be protective.
\begin{FPfigure}
\includegraphics[width=\textwidth]{example-image-a}
\label{fig:mortality}
\caption[Log-log plots of cancer mortality rates in Canada for 2010]{\textbf{Log-log plots of cancer mortality rates in Canada for 2010.} This figures shows that cancer overall requires at least six steps for both men and women (A,B). Additionally, the mathematical modelling of the influence of estrogen levels on breast cancer is consistent with the epidemiological data (C). Colon cancer in women is used as control because it is hormonally independent (D). \textit{Data: CANSIM tables 051-0522 and 102-0522, Statistics Canada. Accessed: April 4th, 2015.}}
\end{FPfigure}
\clearpage% just for the example
Nordling’s equation can be modified so the likelihood of an independent event changes as a function of the time of exposure to a factor (e.g. carcinogen, hormone), and the order of the cellular change which it affects. Mathematically, the probability of an event is proportional to:
\begin{equation}
t_{0}^{s-1}(t-t_{0})^{r-s-1}
\end{equation}
where to is the age of initial exposure, t is the age at diagnosis, r is the number of steps for carcinogenesis, and s is the order of the event (i.e. first, second,…,r\textsuperscript{th}).
\end{document}
结果:
评论
在段落之间添加垂直分隔以及在第一行缩进是完全多余的并且非常难看;但是,我知道这似乎是大学的要求,并且我们都知道,在论文方面,大学并不以其印刷品味而闻名。