我在这个等式上得到了 8 个错误代码,而且它超出了我的范围,所以你不能全部看到?
有人能发现错误吗?
\documentclass[12pt]{extarticle}
%Margins
\usepackage[margin=3.cm,left=2.2cm,right=2.2cm,top=3cm,headsep=1cm,includefoot,]{geometry}
\usepackage{graphicx}
\begin{document}
\begin{equation}
\centering
UHT_{strækning, 1år} = (0.005798*2898^{0.49}*0.46km)+(0.005798*2695^{0.49}*1.1km)+(0.005798*1410^{0.49}*0.7km) = 0.13 + 0.31 + 0.14 = 0.58
\: uheld\;pr.\; km\; pr.\; år.
\end{equation}
\end{document}
答案1
以下是我要做的事情:
\documentclass[12pt]{extarticle}
% make æøå proper letters
\usepackage[T1]{fontenc}
% more math
\usepackage{amsmath}
%Margins
\usepackage[margin=3.cm,left=2.2cm,right=2.2cm,top=3cm,headsep=1cm,includefoot,]{geometry}
\usepackage{graphicx}
% format numbers and units
\usepackage{siunitx}
\begin{document}
\begin{align*}
\mathrm{UHT}_{\textrm{strækning, 1år}} = {}& (0.005798\cdot 2898^{0.49}\cdot
\SI{0.46}{\km})+(0.005798\cdot 2695^{0.49}\cdot \SI{1.1}{\km})
\\
&+(0.005798\cdot
1410^{0.49}\cdot \SI{0.7}{\km})
\\
= {} & 0.13 + 0.31 + 0.14 =
\SI{0.58}{uheld\per\km\per \textrm{år}}.
\end{align*}
\end{document}