我有一张图,我想在标题中写上 $w_0 = -10^{-4}$。但是,出于某种原因,我在编译时没有看到减号。知道为什么标题中没有显示减号吗?
\begin{figure}[H]
\centering
\includegraphics[angle=0, width=0.9\linewidth]{kkltpotential.png}
\caption{Plot of the potential (multiplied by $10^{15}$), where $W_0 = −10^{−4}$, $A
= 1$, $a = 0.1$ and the number of $\overline{D3}$-branes are $p=0$ (blue), $p=4$
(yellow) and $p=11$ (green).}
\label{fig.5}
\end{figure}
答案1
\documentclass{article}
\begin{document}
$W_0 = −10^{−4}$,
\end{document}
生产
! Package inputenc Error: Unicode character − (U+2212)
(inputenc) not set up for use with LaTeX.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.4 $W_0 = −
10^{−4}$,
?
不要忽略错误信息!
在 pdflatex 中你需要的是 ascii-
而不是 Unicode −
(U+2212)