作者chungyuandye (养花种鱼数月亮赏星星)
看板LaTeX
标题Re: [问题] 表格间距
时间Sat Oct 10 11:47:51 2009
※ 引述《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
1F:推 bluesheng:感谢回答 但因为表格不单只是在正下方 Orz 10/10 16:49