[問題] 如何調整程式碼列的行距?

看板LaTeX (論文排版)作者 (.....................)時間14年前 (2011/08/31 18:10), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
目前我的論文中的程式碼列的行距是照著整個文件的行距設定 如何另外定義程式碼列的行距呢? 目前我在preamble已經增加了以下的程式碼列的格式設定 行距設定是否也可以直接從裡面設定呢? \usepackage{listings} \usepackage{color} \usepackage{textcomp} \definecolor{listinggray}{gray}{0.9} \definecolor{lbcolor}{rgb}{0.99,0.99,0.99} \lstset{ backgroundcolor=\color{lbcolor}, numbers=left, tabsize=4, rulecolor=, language=c, basicstyle=\scriptsize, upquote=true, aboveskip={1.5\baselineskip}, columns=fixed, showstringspaces=false, extendedchars=true, breaklines=true, prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}}, frame=single, showtabs=false, showspaces=false, showstringspaces=false, identifierstyle=\ttfamily, keywordstyle=\color[rgb]{0,0,1}, commentstyle=\color[rgb]{0,0.7,0}, stringstyle=\color[rgb]{1,0.44,0}, directivestyle=\color[rgb]{0.9,0,0}, } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.37.32.166
文章代碼(AID): #1ENWYWEf (LaTeX)
文章代碼(AID): #1ENWYWEf (LaTeX)