作者wyvernlee (wyvernlee)
看板LaTeX
标题Re: [问题] 关於字与字的间距微调
时间Mon May 5 21:57:38 2008
※ 引述《[email protected] (蒙古大夫 2.0)》之铭言:
: ※ 引述《[email protected] (wyvernlee)》之铭言:
: > http://www.adrive.com/public/
: > e64b6e36caa4bf8835ffaba362cb2cdb25f62cc9f4dde58edd6ce0e325685c63.html
: [...]
: > % prompt command 定义:
: > \newcommand{\promptcommand}[2]{
: > \begin{flushleft}
: > \hskip 0.5cm
: > %\thinspace
: > \fontfamily{phv}\selectfont
: > %\def\ {\hspace{4em}} % 定义空白为 0.4em
: > #1\colorbox{lgray}{#2} \Enter
: > \end{flushleft}
: > }
: > % \begin{command} 定义:
: > \lstnewenvironment{command}[1][]
: > {\lstset{language=bash,frame=single,#1}
: > \fontfamily{phv}\selectfont
: > }
: > {}
: > 我的问题就在於我无法把最後面那个 \Enter 符号放在 listing 环境中,而用我自已定
: > 义的环境其空白间距又太小,因此目前是无解状态。ORZ...
: 当然不能。因为 \Enter 展现的是一图档。你要退出 listings 的环境
: 才能显示,不然他会把他当成是程式码。
: 这不是什麽不能和平共存,而是你误会了 listings 环境的意义。
: 自行定义的话,可试着使用等宽字。
请教一下等宽字的相关资料应从何着手,谢谢!!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 125.229.5.124