Tipa 因 `\implies` 和 `\iff` 而抛出错误。解决方法或修复?

Tipa 因 `\implies` 和 `\iff` 而抛出错误。解决方法或修复?

我需要使用蒂帕包。导入后,我的文档停止编译。经过疯狂的分析后,我发现 Tipa在源文本中出现\implies或时会抛出错误。\iff

这……至少可以说很奇怪。这些是标准命令。因此,这肯定是一个已知问题。有什么解决方法吗?或者我必须在整个文档中将every 替换\implies为 a \Longrightarrow,将 every替换\iff为now?\Longleftrightarrow

梅威瑟:

\documentclass{article}
\usepackage{amsmath}
\usepackage{tipa}


\begin{document}

$\implies$
\end{document}

错误(使用 pdfLaTex 编译):

 name4.tex, line 8
Missing } inserted.

<inserted text> 
                }
l.8 $\implies$

I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.

 name4.tex, line 8
Too many }'s.

\UseTextAccent ...se@text@encoding \@curr@enc #3}}

l.8 $\implies$

You've closed more groups than you opened.
Such booboos are generally harmless, so keep going.

答案1

tipa包重新定义了一些可能干扰的宏amsmath。最好的解决方案是使用以下[safe]选项加载它:

\documentclass{article}
\usepackage{amsmath}
\usepackage[safe]{tipa}

\begin{document}
$\implies$
\end{document}

有关更多解释以及[safe],请参阅第 12 页TIPA 文档

代码输出

相关内容