我正在尝试弄清楚如何防止图形标题跑到带有大标题的页面的页脚中。
\documentclass[review,authoryear,12pt]{elsarticle}
\usepackage{float}
\begin{document}
\begin{figure}[H]
\includegraphics[width = \linewidth, keepaspectratio]
{Figures_Figure_4}
\caption{(A) Cumulative density plot comparing differential expression among all genes to specified gene-list subsets.
(B) Comparison of AHC reads between genes that are down-regulated and up-regulated in \textit{miR-15/16\textsuperscript{$\Delta$/$\Delta$}} subsetted by location of miR-15/16 seed locations along each transcript.
(C) Heatmap of genes with a p value of less than or equal to 0.05 plotted along side a bar graph of AHC read depth at miR-15/16 seed matches for each gene they occur at.
(D) GSEA enrichment plot of KEGG Cell Cycle associated genes.
(E) Heatmap of KEGG Cell Cycle genes with miR-15/16 seed matches in their 3'UTRplotted along side a bar graph of AHC read depth at miR-15/16 seed matches for each gene they occur at. (*) denotes genes with no prior evidence of miR-15/16 targeting by miRTarBase.}
\label{fig:global transcriptional changes}
\end{figure}
\end{document}
请注意标题如何与底部的页码相符。
答案1
对于未知的页面布局,可能仅提供一般建议:而是\begin{figure}[H]
使用\begin{figure}[htbp]
。例如,在以下小文档中(称为最小工作示例):姆韦)
\documentclass{article}
\usepackage{geometry}
\usepackage[demo]{graphicx}
\usepackage[font=footnotesize,labelfont=bf]{caption}
%-------------------------------- show page layout, only for test
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\begin{document}
\begin{figure}[htbp]
\centering
\includegraphics[height=\linewidth,
keepaspectratio]{Figures_Figure_4}
\caption{
(A) Cumulative density plot comparing differential expression among all genes to specified gene-list subsets.
(B) Comparison of AHC reads between genes that are down-regulated and up-regulated in \textit{miR-15/16\textsuperscript{$\Delta$/$\Delta$}} subsetted by location of miR-15/16 seed locations along each transcript.
(C) Heatmap of genes with a p value of less than or equal to 0.05 plotted along side a bar graph of AHC read depth at miR-15/16 seed matches for each gene they occur at.
(D) GSEA enrichment plot of KEGG Cell Cycle associated genes.
(E) Heatmap of KEGG Cell Cycle genes with miR-15/16 seed matches in their 3'UTRplotted along side a bar graph of AHC read depth at miR-15/16 seed matches for each gene they occur at.
(*) denotes genes with no prior evidence of miR-15/16 targeting by miRTarBase.}
\label{fig:global transcriptional changes}
\end{figure}
\end{document}
图像位于同一页上,并且标题未突出到页脚。
为了获得进一步的帮助,您首先需要提供完整的小文档,我们可以在我们的计算机中复制并测试它。在其中定义图像的大小(宽度、高度)。
编辑:
- 不要使用此选项
[H]
。它会阻止float
环境流动,通常会导致意外问题和非常丑陋的文档。使用它作为最后的绝望尝试将图形放在所需的位置 - 你必须确保图像的高度不超过文本高度。例如,如果标题的高度是文本高度的 1/2,那么图像的高度只能是文本高度的 1/2。你可以确保
\includegraphics[height=0.5\textheight, keepaspectratio]{<image file name>{
- 如果我想在我的文档中放置这样的图像,我会重新考虑。它构图丑陋,不清晰,并且标题信息(当然在我看来)属于文档文本
我宁愿将您的图像分割成五个子图像并从它们中组成图像,例如在两个浮点数中,我将从包
\ContinuedFloat
中添加第二个浮点数caption
以获得正确的图形编号。记住,你不能把大象放进手提箱里。