在文本中插入数学等式会导致“?”显示,而转义的“/”不显示!

在文本中插入数学等式会导致“?”显示,而转义的“/”不显示!

我承认我是 LaTeX 新手,但我正在用它写论文。我很难解决问题,因为编译器没有给我任何有意义的错误,这让我相信我所做的事情并没有错,只是被编译器误解了。

我的子节中只有一个公式,文本中用 表示$$...$$。后面的文本中充斥着问号和缺失字符,如/

\subsubsection*{Microarrays, Data Acquisition and Bioinformatics Methods}

To compare the expression pattern of individual genes to those of known clock 
components, we devised the following method explained in supplementary 
material. First, we subdivided the expression time course into six overlapping 
15h time windows (5-20h, 10-25h, etc., see Supplementary Figure S1A). 
For each gene and window, we then fit a polynomial of the form: 
$$expression_{{gene}_{i,t}} \sim a(t)^2 + b(t) + c$$ 
where $t$ corresponds to a time window consisting of four time points 
and expression corresponds to the matching expression values. This 
fitting procedure yields, for each gene, six sets (one set per window) 
of coefficients a, b, and c, where values of a indicate peaks if a 
$\pm$ s.e. $<$ 0 and troughs if a $\pm$ s.e. $>$ 0. To be even more 
stringent, we impose a cutoff of 0.05 on the p-value on $a$ 's t-statistic 
which is a measure of the likelihood that $a$ is incompatible 
with 0 by chance alone. In this manner, consecutive points along the 
time course for each gene can be represented as a series of peaks and 
troughs, and compared to specific peak\/trough combinations observed for 
different clock genes. \\\

Clock genes can be described by the following peak\/trough combinations 
(denominated simply as Peaks A-E in the main text): \\\

答案1

最可能的原因是,您有一对不平衡的字符$...$,这会<产生一个倒置的问号。 \/不会产生斜线,而是产生少量空格(斜体更正),请使用/或更好的\slash代替。

正如其他人在最小文档中所说,您的代码片段编译时没有错误。但是,有许多标记细节需要改进,其他发帖者提到了一些改进。

  • 源代码中的段落应该用空行分隔
  • 全部数学应该这样设置,包括单个字符和数字
  • 数学中的正统名称可以是\mathrm{...}
  • 数学表达式应该放在一个数学组中,而不是分成几个组成部分,$a\pm\mathrm{s.e.}>0$例如a $\pm$ s.e. $>$ 0
  • 在 LaTeX 中你应该使用\[...\]显示数学,而不是$$...$$
  • 应提供不可中断的空格,例如~在为图形提供数字时使用Figure~1
  • /产生斜线,但\slash在文本中更可取,因为它允许在该点处换行
  • 最好使用该siunitx包及其众多功能来设置带单位的数字

综合起来得到:

示例输出

\documentclass{article}

\usepackage{siunitx}

\sisetup{range-units=single,range-phrase=--}

\begin{document}

\subsubsection*{Microarrays, Data Acquisition and Bioinformatics Methods}

To compare the expression pattern of individual genes to those of
known clock components, we devised the following method explained in
supplementary material.  First, we subdivided the expression time
course into six overlapping \SI{15}{h} time windows
(\SIrange{5}{20}{h}, \SIrange{10}{25}{h}, etc., see Supplementary
Figure~S1A).  For each gene and window, we then fit a polynomial of
the form:
\[ 
 \mathrm{expression}_{\mathrm{gene}_{i,t}} \sim a(t)^2 + b(t) + c
\]
where $t$ corresponds to a time window consisting of four time points
and expression corresponds to the matching expression values. This
fitting procedure yields, for each gene, six sets (one set per window)
of coefficients $a$, $b$, and $c$, where values of $a$ indicate peaks if
$a\pm\mathrm{s.e.}<0$ and troughs if $a\pm\mathrm{s.e.}>0$.  To be
even more stringent, we impose a cutoff of $0.05$ on the $p$-value on
$a$'s $t$-statistic which is a measure of the likelihood that $a$ is
incompatible with $0$ by chance alone. In this manner, consecutive
points along the time course for each gene can be represented as a
series of peaks and troughs, and compared to specific peak\slash trough
combinations observed for different clock genes.

Clock genes can be described by the following peak\slash trough combinations 
(denominated simply as Peaks~A--E in the main text):

\end{document}

答案2

扩展 1010011010 的评论:

你需要的是排队数学。这是通过在$ math expression here $表达式周围放置美元符号来实现的。

双美元符号表示显示数学,它会在自己的行上显示,并留有更多空间(通常居中)。此外,最好使用\[ math expression \]$$ math expression $$请参阅这个问题。

相关内容