将其分成不同的行

将其分成不同的行
To calculate market value, can use \textbf{calculator}:
[2nd][FV]: Clean previous data 
[FV] = Face Value 
[N] = Periods in which coupon payments happen 
[I/Y] = Market interest rate (YTM) 

就应该如此。

事情是这样的: 在此处输入图片描述

当我在每行后面添加 \ \ 时,它会引发错误。有什么想法吗?

答案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

相关内容