如果要在lyx beamer中插入stata或sas的文本输出结果,就要使用verbatim样式。但是,lyx的beamer layout中没有定义verbatim样式,用起来很不方便。我们可以自己动手,定义verbatim样式。
在LyX 2.1\Resources\layouts\中找到beamer.layout文件,文本编辑器打开,在最下方加入以下文字,保存即可。之后,就可以在样式列表中找到verbatim样式了。
Style Verbatim
Category MainText
LatexType Environment
LatexName verbatim
NextNoIndent 1
ParbreakIsNewline 1
FreeSpacing 1
PassThru 1
KeepEmpty 1
NewLine 0
TopSep 0.7
BottomSep 0.7
Align Block
AlignPossible Block
LabelType No_Label
Font
Family Typewriter
EndFont
HTMLTag <pre></pre>
HTMLItem p
End


雷达卡



京公网安备 11010802022788号







