如何解决在 Latex 中使用 wrapfig 包的包裹图位于文本下方
当我在 Latex 文档中使用“'wrapfigure”' 时,图形没有出现在原位。相反,它显示在文本下方,如图所示。有什么办法可以解决这个问题?
\documentclass[18pt]{article}
\usepackage[top=1in,bottom=1in]{geometry}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{wrapfig}
\usepackage{float}
\usepackage[outercaption]{sidecap}
\DeclareUnicodeCharacter{2060}{\nolinebreak}
\usepackage{titlesec}
\setcounter{secnumdepth}{3}
\begin{document}
\subsection{Enrichment analysis:}\\
\begin{itemize}
\item Gene Set Enrichment Analysis (GSEA):\\
~\par\vspace{-\baselineskip}
\begin{wrapfigure}[15]{R}{0.4\textwidth}
\centering
\includegraphics[width =0.4\textwidth]{GSEA-homegraphic}
\caption{GSEA process[22]}
\label{gsea}
\end{wrapfigure}
GSEA is a computational method that determines whether a previously defined set of genes shows statistically significant,concordant differences between two
biological states (e.g.,phenotypes).[22]
Gsea use two types of test statistics:
- Fisher’s exact test: which is based on gene counts. It is a statistical test used to determine if there are non-random associations between two categorical variables.[23]
- Kolmogorov-Smirnov like test : which computes enrichment based on gene scores
(representing how differentially expressed a gene is). Genes can be categorized into
differentially expressed or not differentially expressed genes.[24]
It is a non-parametric test that compares the cumulative distributions of two data sets; i.e. It does not assume that data are sampled from Gaussian distributions (or any other defined distributions). It reports the maximum difference between the two cumulative distributions,and calculates a P value from that and the sample sizes (Fig.10).[25]
\end{itemize}
\end{document}
解决方法
答案很简单:让 wrapfigs
远离列表。在您的具体情况下,我不会将此图像放在 wrapfig
中 - 而是将其放大,以便图像中的字体与正常文本大小匹配,从而使阅读舒适。
引自 wrapfig
文档
您不得在任何类型的列表环境中或紧接其之前或之后指定 wrapfigure。如果中间有空行 (\par
),则可以遵循列表。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。