Re: [問題] 關於字與字的間距微調
※ 引述《EdwardLee.bbs@bbs.cs.nctu.edu.tw (蒙古大夫 2.0)》之銘言:
: ※ 引述《wyvernlee.bbs@ptt.cc (wyvernlee)》之銘言:
: > 來表達我要輸入的文字,但是問題就在於 listing package 跟 keystroke package
: > 似乎不能和平共處,因此少了 \Enter 這個符號。
: > 有關 keystroke 的資料可看:
: > http://dante.ctan.org/CTAN/macros/latex/contrib/keystroke/
: 是怎樣不能和平共處呢?能舉個完整的小例子嗎?
小例子來了:
請看
http://www.adrive.com/public/
e64b6e36caa4bf8835ffaba362cb2cdb25f62cc9f4dde58edd6ce0e325685c63.html
第一行是我之前抱怨間隔比較小的結果,第二行是用 listing 的結果,
第三行是加了 \ 的結果。這三行的 source code 分別如下:
% 第一行 source code
\promptcommand{$\sim$/cadence \$}{tar xfvz IC\_5141usr3\_linux\_1of2.tgz}
% 第二行 source code
\begin{command}
tar xfvz IC_5141usr3_linux_1of2.tgz
\end{command}
% 第三行 source code
\promptcommand{$\sim$/cadence \$}{tar \ xfvz \ IC\_5141usr3\_linux\_1of2.tgz}
% 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...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 125.229.5.124
討論串 (同標題文章)
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章