包inputenc错误:Unicode char(u + 2061)LateX

问题描述 投票:1回答:1

我的文本中的公式有错误包inputenc错误:Unicode字符(u + 2061)。一个例子是以下等式。

\begin{equation}
\begin{aligned}
    \alpha = -1,38880 + 1,72027920\times10^{-2}t_{e} + 3,199\times10^{-2}  sen⁡(\omega t_{e} )- 2,65\times10^{-3}  cos⁡(\omega t_{e} ) + 4,05\times10^{-2} sen(2\omega t_{e} ) + 1,525\times10^{-2}  cos(\omega t_{e})
    \label{eq1}
\end{aligned}
\end{equation}

如何设置它?

latex latex-environment
1个回答
1
投票

sen⁡(\omega t_{e} )以及cos⁡(\omega t_{e} )之间有一些看不见的角色。删除它们,然后代码再次运行。

与问题无关:

  • 而不是cos你应该使用\cos
  • 如果使用sen作为意大利语/西班牙语/ \sin的任何版本,那么这也应该是直立排版。像babel这样的软件包提供宏\sen来做到这一点。
  • 如果用1,38880写数字,小数分隔符周围的间距将是错误的。要解决此问题,请使用1{,}38880icomma软件包,或使用siunitx软件包中的专用宏。

\documentclass{article}

\usepackage[spanish]{babel}
\usepackage{mathtools}
\usepackage{icomma}

\begin{document}


\begin{equation}
  \alpha = -1,38880 + 1,72027920\times10^{-2}t_{e} + 3,199\times10^{-2}  \sen(\omega t_{e} )- 2,65\times10^{-3}  \cos(\omega t_{e} ) + 4,05\times10^{-2} \sen(2\omega t_{e} ) + 1,525\times10^{-2}  \cos(\omega t_{e})
  \label{eq1}
\end{equation}


\end{document}
© www.soinside.com 2019 - 2024. All rights reserved.