答案1
抛出错误是因为\\
带有可选参数,[FV]
下一行中的 被解释为可选参数,但 的可选参数 应该\\
是有效的 TeX 维度,而这FV
显然不是。您可以在\relax
后面放置一个\\
以使其停止寻找可选参数:
To calculate market value, can use \textbf{calculator}:\\\relax
[2nd][FV]: Clean previous data\\\relax
[FV] = Face Value\\\relax
[N] = Periods in which coupon payments happen\\\relax
[I/Y] = Market interest rate (YTM) % as noted by egreg, don't put \\\relax on the last line of the paragraph
但也许使用像description
这样的环境是一个更好的主意:
\documentclass[]{article}
\usepackage{enumitem}
\begin{document}
To calculate market value, can use \textbf{calculator}:
\begin{description}[nosep, font=\ttfamily]
\item[{[2nd][FV]}] Clean previous data
\item[{[FV]}] Face Value
\item[{[N]}] Periods in which coupon payments happen
\item[{[I/Y]}] Market interest rate (YTM)
\end{description}
\end{document}
这样,您就可以使用设置快速更改您喜欢的样式enumitem
。