Latex 编译了我的代码并生成了 PDF。但是,我无法解决它给出的以下错误。
l.252 ...times I\textsubscript{tx} \times \dfrac
{B\textsubscript{tx}}{\del...
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
以下是我的代码中显示此错误的部分。
\begin{equation}
E = E\textsubscript{s} + V\textsubscript{tx} \times I\textsubscript{tx} \times \dfrac{B\textsubscript{tx}}{\delta\textsubscript{tx}} + V\textsubscript{sl} \times I\textsubscript{sl} \times (T\textsubscript{b} - T\textsubscript{tx}) + E\textsubscript{rx} + E\textsubscript{o}
\end{equation}
答案1
你的方程式代码没有给我带来错误
\documentclass[a4paper,12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
\begin{equation}
E = E\textsubscript{s} + V\textsubscript{tx} \times I\textsubscript{tx} \times \dfrac{B\textsubscript{tx}}{\delta\textsubscript{tx}} + V\textsubscript{sl} \times I\textsubscript{sl} \times (T\textsubscript{b} - T\textsubscript{tx}) + E\textsubscript{rx} + E\textsubscript{o}
\end{equation}
\end{document}