Re: [問題] 表格間距

看板LaTeX (論文排版)作者 (養花種魚數月亮賞星星)時間16年前 (2009/10/10 11:48), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/2 (看更多)
※ 引述《bluesheng (微風)》之銘言: : 請問表格與表格之間的間距和表格與段落文字間的間距要怎麼縮小 : 因為用hline看時 發現上面表格的底線和下面表格的頂線還有頗大的空間 : 像是是否能把口 之間的距離縮小 但因為有排版以及資料問題 : 口 : 所以不能合併連接 不知是否有辦法可以更改間距 : 不知是否有全域指令或者個別的指令 : 懇請各位先進幫忙小弟 提供一個土法煉鋼的方法,作法是增加一列空白列,在縮小空白列的列高 \documentclass{article} \usepackage{CJKutf8} \usepackage[usenames,dvipsnames]{color} \usepackage{colortbl} \usepackage{textcomp,booktabs} \begin{document} \begin{CJK}{UTF8}{cwmc} \sf \begin{tabular}[t]{@{\tt }p{0.08\textwidth}p{0.87\textwidth}} \multicolumn{2}{l}{ \hspace{-10pt} 查詢函數N的用法}\\ \multicolumn{1}{r}{\textcolor{blue}{In[1]:}}& ?N \\ \arrayrulecolor[rgb]{1,0.9,0.7} \cmidrule[7pt]{2-2} %& \\[-16pt] & \cellcolor[rgb]{1,1,0.8} N[expr] gives the numerical value of expr. \newline N[expr,n] attempts to give a result with n-digit precision. \textcolor{blue}{\small $\gg$} \\ \end{tabular} \bigskip \bigskip \begin{tabular}[t]{@{\tt }p{0.08\textwidth}p{0.87\textwidth}} \multicolumn{2}{l}{ \hspace{-10pt} 查詢函數N的用法}\\ \multicolumn{1}{r}{\textcolor{blue}{In[1]:}}& ?N \\ \arrayrulecolor[rgb]{1,0.9,0.7} \cmidrule[7pt]{2-2} & \\[-16pt] & \cellcolor[rgb]{1,1,0.8} N[expr] gives the numerical value of expr. \newline N[expr,n] attempts to give a result with n-digit precision. \textcolor{blue}{\small $\gg$} \\ \end{tabular} \clearpage \end{CJK} \end{document} -- 養花種魚數月亮賞星星 http://cydye1069.blogspot.com -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.173.135.84

10/10 16:49, , 1F
感謝回答 但因為表格不單只是在正下方 Orz
10/10 16:49, 1F
文章代碼(AID): #1Aq0FpMh (LaTeX)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
文章代碼(AID): #1Aq0FpMh (LaTeX)