Latex 中动词/lstinline 文本流出行边距而没有换行符
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.
这个问题有什么解决办法吗?
The listings
package supports line breaks inside lstlisting
environment. But it doesn't produce automatic line breaks for lstinline
environment. For example, in the following paragraph the first line flows out of the margins:
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.
Is there any solution for this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
列表的文学功能可能会有所帮助,例如在下划线处引入换行符:
The literate feature of listings could be helpful, e.g. to introduce linebreaks at underscores: