在乳胶中使用 wrapfig 包包裹的图形位于文本下方
Wrapped figure using wrapfig package in latex goes below the text
当我在 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
文档
You must not specify a wrapfigure in any type of list environment or or immediately before or immediately after one. It is OK to follow a list if there is a blank line (\par
) in between.
当我在 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
文档
You must not specify a wrapfigure in any type of list environment or or immediately before or immediately after one. It is OK to follow a list if there is a blank line (
\par
) in between.