在 TexMaker 中使用 \to (或 \rightarrow)后出现奇怪的输出

在 TexMaker 中使用 \to (或 \rightarrow)后出现奇怪的输出

我在使用 TexMaker 时遇到了问题。编译以下部分时,系统显示! Missing $ inserted.<inserted text>$ ...13 is the smallest value on the path 1 \to [...](无法查看其余部分)。

原文:

The maximum amount of flow between 1 and 3 would hence be 13 in our example, for 13 is the smallest value on the path 1 \to 2 \to 6 \to 5 \to 3 in the Gomory-Hu-Tree. 

pdf 输出:

这是屏幕截图!

问题出在最后一部分,所有的单词都因为某种原因被拼凑在一起(我认为还有印刷的草书)。我以前没有用过 Latex,所以我不知道是什么导致了这个问题,任何帮助都会有帮助。

答案1

欢迎来到 TeX.SX!它应该是 $\to$,而不是仅是 to。或者甚至是 $1 \to 2 \to 6 \to 5 \to 3$。无论如何,重点是 \to 仅在数学模式下有效。–

我不知道我哪里搞砸了,但先以访客身份发布问题,然后才创建帐户,这有点禁止我以 OP 身份访问它。不过,这个答案完全正确,而且马上就起作用了,所以感谢 Torbjørn T.!

相关内容