动词/ lstinline文本流出线边距而不乳胶换行符
-
19-09-2019 - |
题
在listings
包支持lstlisting
环境内换行符。但它不产生对环境lstinline
自动换行。例如,在以下段落的第一行流出边距:
The parameters \lstinline|base_rmr_brain|, \lstinline|base_rmr_fat|, and \lstinline|baseline_basal_rmr_of_lean_tissues| are metabolic rates of brain, fat, and lean tissues in kcal/(kg*day). The parameter \lstinline|mass_brain| denotes the mass of the brain in gram.
是否有该问题的任何解决方案?
解决方案
在识字列表的特征可以是有用的,例如以下划线介绍换行符:
\lstset{
literate={\_}{}{0\discretionary{\_}{}{\_}}%
}
不隶属于 StackOverflow