由买买提看人间百态

topics

全部话题 - 话题: hline
1 (共1页)
d**********o
发帖数: 1321
1
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
第一个项目report
这时偶刚到CSAC工作不久,与小A同学还不熟,我用的还是latex。随着贴的作业越来越
多,应该是用有共同爱好的小伙伴更亲密些。这次贴latex,下次才再org-mode。
\documentclass[b5paper,11pt, abstraction, titlepage]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{CJKutf8}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{listings}
\usepackage{geometry}
\geometry{b5paper}
\usepackage{graphicx,floatrow}
\usepackage{graphicx,subfigure}
\newsavebox{\abstractbox}
\renewenvironment{abstract}
{\begin{lrbox}{0}\begin{minipage}{\t... 阅读全帖
d**********o
发帖数: 1321
2
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
第一个项目report
这时偶刚到CSAC工作不久,与小A同学还不熟,我用的还是latex。随着贴的作业越来越
多,应该是用有共同爱好的小伙伴更亲密些。这次贴latex,下次才再org-mode。
\documentclass[b5paper,11pt, abstraction, titlepage]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{CJKutf8}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{listings}
\usepackage{geometry}
\geometry{b5paper}
\usepackage{graphicx,floatrow}
\usepackage{graphicx,subfigure}
\newsavebox{\abstractbox}
\renewenvironment{abstract}
{\begin{lrbox}{0}\begin{minipage}{\t... 阅读全帖
a*****g
发帖数: 19398
3
我做好了
\begin{tabular}{|l|l|l|l|l|}
\hline
Language & \multicolumn{2}{|c|}{Number $40$} &\multicolumn{2}{|c|}{Number $
18$} \\
\hline
English
& forty & 4x10(ten becomes ty)
& eighteen & 8,10 (ten becomes teen) \\
\hline
Welsh
& de-ugeint & 2x20 (de from dau =2, ugeint = 20)
& deu naw & 2x9(deu from dau = 2, naw = 9)\\
\hline
Hebrew
& arba-im & 4s(arba=4, im is the plural ending)
& Shmona-eser& 8,10(shmona=8, eser =10)\\
\hline
Yoruba
& ogoji & 20x2 (from ogun = 20, eeji =2)
& eeji din logun &... 阅读全帖
L******r
发帖数: 199
4
来自主题: TeX版 - 怎么把这个表格分割
如何把Bag 和 Dim之间及下面几格用垂线分割开来?
谢谢
\begin{table}[h]
\begin{center}
\bigskip
\noindent
\begin{tabular}{|l||c{5.5cm}||c{5.5cm}|c{2cm}|}\hline
%\begin{tabular}{|p{4cm}|p{5.5cm}|p{2cm}|}\hline
\backslashbox{\textit{\textbf{Data}}}{\textit{\textbf{Methods}}}
&{\makebox[7em]{Bag}}&{\makebox[3em]{Dim}}
\\\hline\hline
Review &&\\\hline
Text &&\\\hline
%Seminar Room &&&&\\\hline
\end{tabular}
\bigskip
\end{center}
\end{table}
f**********n
发帖数: 828
5
用了multirow,后面的部分正常,但是想在两行之间画上横线,又不希望multirow的那
个格子里面有线。怎么办呢?
谢谢~~
\begin{center}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|}
\hline
\multirow{2}{*}{$s_3$} & \multicolumn{5}{|c|}{$c_3(x_3)+f_4^*(s_4) $} & \multirow{2}{*}{$f_3^*(s_3)$} &\multirow{2}{*}{$x_3^*$} & \multirow{
2}{*}{$s_4=s_3-x_3^*$}\\\hline
& $x_3=1$ &$x_3=2$ &$x_3=3$ &$x_3=4$ &$x_3=5$ & & & \\\hline
2 & 40+10 & - & - & -&-&50&1&1\\\hline
3 & 40+20 & 60+10 & - & -&-&70&2&1\\\hline
4 & 40+30 & 60+20 & 80+10 & -&-&90&3&1\\\hline
5 & 40+40 &
S**I
发帖数: 15689
6
\begin{tabular}{|c|c|c|c|c|c|c|c|c|}
\hline
\multirow{2}{*}{$s_3$} & \multicolumn{5}{|c|}{$c_3(x_3)+f_4^*(s_4) $} &
\multirow{2}{*}{$f_3^*(s_3)$} &\multirow{2}{*}{$x_3^*$} & \multirow{
2}{*}{$s_4=s_3-x_3^*$}\\\cline{2-6}
& $x_3=1$ &$x_3=2$ &$x_3=3$ &$x_3=4$ &$x_3=5$ & & & \\\hline
2 & 40+10 & - & - & -&-&50&1&1\\\hline
3 & 40+20 & 60+10 & - & -&-&70&2&1\\\hline
4 & 40+30 & 60+20 & 80+10 & -&-&90&3&1\\\hline
5 & 40+40 & 60+30 & 80+20 & 100+10&-&110&4&1\\\hline
6 & 40+50 & 60+40 & 80+30 & 100+20&1
S********y
发帖数: 182
7
多谢,不过table中所有的线都变成粗线了。我只是想让最上面和最下面的边框用粗线
,别的地方还是细线,怎么弄?
\begin{table} [b]
\centering\caption{Bla,bla}\label{tab:ps.rg}
\begin{center}
\begin{tabular}{ccccc}
\hline \hline
Mw & 65 & 123 & 400 & 650 \\
\hline
Rg(nm) & 6.8 & 9.4 & 17.0 & 21.7 \\
\hline\hline
\end{tabular}
\end{center}
\end{table}
T*******n
发帖数: 493
8
来自主题: TeX版 - About table
Try the following; note the distinction between
\tabularnewline (to start a new row in the table)
and \\ (to break lines within thesame row).
\usepackage{array}
\begin{tabular}{|>{\centering}p{2in}|}
\hline
text to be centered in a column \tabularnewline
\hline
more text to be centered \tabularnewline
\hline
text\\centered\\on four lines\\in one row \tabularnewline
\hline
\end{tabular}
a**e
发帖数: 5794
9
来自主题: TeX版 - 图表混排的问题
\begin{figure}[htb]
\begin{minipage}[b]{0.5\linewidth}
\centering
\includegraphics[width=0.8\linewidth]{graphic}
\caption{This is a Figure by a Table}
\label{fig:by:table}
\end{minipage}%
\begin{minipage}[b]{0.5\linewidth}
\centering
\begin{tabular}{|c|c|} \hline
Day & Data \\ \hline\hline
Monday & 14.6 \\
Tuesday & 14.3 \\
Wednesday & 14.2 \\
Thursday & 14.5 \\
Friday & 14.9 \\ \hline
\end{tabular}
\captionof{table}{This is a Table by a Figure}
\label{table:by:fig}
\end{minipage}
\end{figure}
s******e
发帖数: 285
10
Is this what you want?
\begin{table}[t]
\begin{center}
\begin{tabular}{|c|c|c|}
\cline{2-3}
\multicolumn{1}{c|}{} & {a} & {b}\\
\hline
ttt & 0.2 & 0.5\\
\hline
ttt1 & 0.09 & 0.24\\
\hline
ttt1 & 0.05 & 0.13\\
\hline
\end{tabular}
\caption{temp.}
\label{table:temp}
\end{center}
\end{table}

textbf
g*****d
发帖数: 35
11
Hi,
I am using the floatflt package. It offers floating figures and tables.
However, for the floating table, I can only put the caption below the table
but not above. How to make it above the table? Thank you very much. I list the
normal usage that may be useful for others also.
\usepackage{floatflt}
The following works for appending the caption below the table
\begin{floatingtable} [r]
{
\begin{tabular}[c]{|l|l|l|l|l|}
\hline
Application & column0 & c1 & c2& c3\\
\hline\hline
good1 & 8 & 7 & 6
r*********s
发帖数: 2157
12
\slashbox should work, please try this one:
\begin{tabular}{|l|l|l|}
\hline {}\slashbox {} & {}&{}\\\hline {}&{}&{}\\\hline
\end{tabular}
c****d
发帖数: 116
13
来自主题: TeX版 - help on subtable label
When I refer the table with \ref{tab:something}, the number is correct, eg.
table 4. However, when I refer the subtable with \ref{tab:20}, the table
number becomes 5(b). What is wrong? Thanks for your help.
\begin{table}[hbt]
\centering
\caption {
XXXXXX
}
\subtable[X1]
{
\label{tab:10}
\begin{tabular}{lccc}\hline
& AAA & BB & CC \\
& & XXX & XXX \\ \hline
XXX & 5.35 & 5.44 & 5.15 \\ \hline
\end{tabular}
}\\
\subtable[X2]
{
T*******n
发帖数: 493
14
\documentclass{article}
\begin{document}
\begin{tabular}{p{1in}|p{1in}}
\hline
\multicolumn{2}{c}{the first row} \\
\hline
row 2 col 1 & row 2 col 2 \\
\hline
\end{tabular}
\end{document}
T*******n
发帖数: 493
15
\documentclass{article}
\newcommand{\mc}[0]{\multicolumn}
\begin{document}
A vertical line belongs to the column to its left, except that the
left most vertical line belongs to the first column, so the first
column controls two vertical lines. You can then use
\verb|\multicolumn{}{}{}| to change things.
\begin{center}
\begin{tabular}{|c|c|c|}
\hline
x & y & z \\ \hline
\mc{1}{c|}{x} & y & z \\ \hline
\mc{1}{|c}{x} & y &
S********y
发帖数: 182
16
\hline 太细了。\hline\hline的双细线也不合要求。
T*******n
发帖数: 493
17
\usepackage{array}
\newcolumntype{I}{!{\vrule width 1pt}}
\newcommand*{\Hline}[0]{%
\noalign{\global\setlength{\arrayrulewidth}{1pt}}%
\hline
\noalign{\global\setlength{\arrayrulewidth}{0.4pt}}%
}
\newcommand*{\Cline}[1]{%
\noalign{\global\setlength{\arrayrulewidth}{1pt}}%
\cline{#1}%
\noalign{\global\setlength{\arrayrulewidth}{0.4pt}}%
}
\begin{tabular}{Ic|c|cI}
\Hline
x & x & x \\
\cline{1-1}\Cline{2-2}\cline{3-3}
x & \multicolumn{1}{IcI}{x} & x \\
\cline{1-1}\Cline{2-2}\cline{3-3}
b*********n
发帖数: 173
18
来自主题: TeX版 - 急问一表格问题
\usepackage{multirow}
\begin{tabular}{|c|c|c|p{2cm}|p{2cm}|p{2cm}|c|}
\hline
\multirow{3}{2cm}{} & \multicolumn{2}{c}{} & \multicolumn{3}{|c|}{}& \
multirow{3}{2.5cm}{} \\
\cline{2-6}
& \multirow{2}{1cm}{} & \multirow{2}{1cm}{} & \
multicolumn{2}{|c|}{} & &\\
\cline{4-5}
& & & & & & \\
\hline
&&&&&&\\
\hline
\end{tabular}
Reference:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=multirow
http://andrewjpage.com/index.php?/archives/43-Mul
s****l
发帖数: 78
19
\begin{tabular}{|c|c|}
\hline
aaa & bbb \\
\hline
ccc & ddd1 \\
& ddd2 \\
\hline
\end{tabular}
t*******y
发帖数: 637
20
用了这个command好像还是不行
显示的还是希腊数字
大虾帮忙看一下 thx
\begin{table}[h!b!p!]
\renewcommand{\thetable}{\arabic{table}}
\caption{xxxxxxxxxxxxxxxxxxxxxx}
\begin{tabular}{cccccc}
\hline
\\[3pt]
A & B & C & D & E & F \\[3pt]
\hline
\\[3pt]
1 & 0 & 0 & 0 & 0 & 0 \\
\hline
\end{tabular}
\label{table1}
\end{table}
F****I
发帖数: 270
21
来自主题: TeX版 - 问一下调整表格
我有一个表格,数据比较多,默认显示会挤出屏幕。
在不横向显示的前提下,我用\hspace{-2cm}把所有数据左移,这样装下了。但是\
hline部分没有没有左移。于是看上去像
---------
1 1 1 1 1
---------
怎么能够左移\hline呢?\hspace{-2cm}\hline 会报错
谢谢
b*******t
发帖数: 33714
22
\documentclass{letter}
\begin{document}
\begin{tabular}{|c|c|c|}\hline
a & b & c\\\hline
d & e & f\\\hline
\end{tabular}
\end{document}
r*********I
发帖数: 615
23
来自主题: TeX版 - 关于插入table
http://en.wikibooks.org/wiki/LaTeX/Tables
Rows spanning multiple columns
The command for this looks like this: \multicolumn{'num_cols'}{'alignment'}{
'contents'}. num_cols is the number of subsequent columns to merge; alignmen
t is either l, c, r, or to have text wrapping specify a width p{5.0cm} . And
contents is simply the actual data you want to be contained within that cel
l. A simple example:
\begin{tabular}{ |l|l| }
\hline
\multicolumn{2}{|c|}{Team sheet} \\
\hline
GK & Paul Robins... 阅读全帖
T*******e
发帖数: 47
24
来自主题: TeX版 - 怎么控制表格里行的高度?
I think what he meant is like this:
\begin{table}
\begin{tabular}[c]{|c|c|}
\hline
test & test \\[3mm]
\hline
\end{tabular}
\end{table}
everything is ok, except the text is not align vertical in the center of the
cell.
T*******e
发帖数: 47
25
来自主题: TeX版 - 怎么控制表格里行的高度?
I also tried:
\begin{table}
\begin{tabular}[c]{|c|c|}
\hline&\\[0mm]
test & test \\[5mm]
\hline
\end{tabular}
\end{table}
it works, but the number in [] is hard to adjust so that the text is aligned
in center vertically.
T*******n
发帖数: 493
26
来自主题: TeX版 - 怎么控制表格里行的高度?
Is this what you want? The "m" type columns center text vertically, but
since it allows multiple lines of text, you need to set the column width.
Remove the >{\centering} if you want double-flushed text, or change to
>{\raggedright} for left justification only.
\documentclass{article}
\usepackage{array}
\begin{document}
\begin{tabular}{|>{\centering}m{72pt}|m{72pt}|}
\hline
The long text that is in the first column. &
Second column. \\
\hline
\end{tabular}
\end{document}
a*****r
发帖数: 443
27
谢谢您的传道授业解惑
我还有一个问题
就是使用supertabular的时候
和我的IEEEtran的sty冲突了
因为如果单单使用supertabular,在article style情况下,table的caption是居中的,
但是当我使用IEEEtran代替article的style的时候,table的caption变成靠左对齐了,
请问这种情况如何解决呢?再次感谢!!
\documentclass{IEEEtran}
%\documentclass{article}
\usepackage{supertabular}
\begin{document}
\begin{center}
\tablecaption{Talbe}\footnotesize
\begin{supertabular}
{|c|} \hline $1$\\\hline
\end{supertabular}
\end{center}
\end{document}
j*******a
发帖数: 45
28
来自主题: TeX版 - how to use longtable in latex?
【 以下文字转载自 EE 讨论区 】
发信人: jinghanna (benben), 信区: EE
标 题: how to use longtable in latex?
发信站: BBS 未名空间站 (Tue Sep 20 17:23:31 2005), 转信
I have a very long table. It can not be put within one page. I tried to use
longtable to separate the table and show it on a few pages, but I failed.
What I have done is as follows,
\usepackage{longtable}
\begin{table}
\begin{center}
\begin{tabular}{c|cc}\hline
segment & \textit{EEG1} & \textit{EEG2} \\\hline
A & 1679900 & 407110 \\
B & 576260 & 47203 \\
z**o
发帖数: 4
29
来自主题: TeX版 - 如何使表格左对齐?
\begin{table}[hbp]
\begin{center}
\caption{SIMULATION PARAMETERS.} \label{table I}
\begin{tabular}{|r|l|} \hline
Number of nodes & 50 \\
Topology dimensions & 1000m x 1000m \\
Traffic pattern & TCP\\
Data payload size & 32-1060 bytes/packet\\ \hline
\end{tabular}
\end{center}
\end{table}
想使其中的第一列左对齐,第二列中央对齐。该如何操作?
多谢了
a*****r
发帖数: 443
30
来自主题: TeX版 - 请教一个表格问题。
\begin{tabular}
{ccccc} \hline \raisebox{-1.50ex}[0cm][0cm]{cur\_sta}&
\multicolumn{3}{p{90pt}}{\centering{next\_sta}} &
\raisebox{-1.50ex}[0cm][0cm]{output} \\
\cline{2-4}
&
$x=1$& $x=2$& $x=3$& \\\hline
\end{tabular}
C*N
发帖数: 1792
31
我用的是
\[
\rightarrow
\begin{tabular}{|c|}
\hline
text \\
\hline
\end{tabular}
\rightarrow
\]
但是 rightarrow 和中间的方框之间有空间, 不好看, 能有什么办法去掉这个间隔么
l**e
发帖数: 6
32
来自主题: TeX版 - 如何在table里面插入图?
试了一下,用psfig 可以
\documentclass{article}
\usepackage{amssymb,amsmath}
\usepackage[dvips]{epsfig}
\begin{document}
\begin{table}
\begin{tabular}{cc} \hline
XXXXX & ZZZZZZZZ \\
YYYYY & \psfig{file=image.ps,height=0.8in,angle=0} \\
\hline
\end{tabular}
\end{table}
\end{document}
w****h
发帖数: 212
33
请问撰写表格table时,如果栏数太多一行无法全部显示,该如何解决?
有种办法是把若干栏分多行显示,但问题是如何设置换行呢?
比如想把“Traffic Type”栏所有行都显示为两行,如何做?
\begin{table*}[h]
\caption{Traffic Parameters}\label{table:tabtrades}
\begin{center}
\begin{tabular}{l|l|l|l|l|l|l|l}
\hline
$Traffic Type$&$Burst Size$&$Peak Rate$&$Lower \, Rate$&$Number of flows$&$
Initial Time$&$Finishing Time$&$e2e Delay Bound$\\
\hline
0 (Audio) &10kbits &96kbps &32kbps &200 &0s &45s &40ms\\
1 (Stored Video) &800kbits&5000kbps&1000kbps&15 &0s &100s&60ms\\
2
g*********t
发帖数: 24
34
以下是LNCS提供的表格templet,由于自己是新手,直接套用时遇到了几个问题:
1. 如题。由于自己的表格caption太长,自动换行后左对齐显示,请问如何使其居中?
2. 如何将表中的内容也全部居中显示?
3. 怎样显示表中文字间的空格,如其中某栏的项目名称为dynamic power?
谢谢了!
\begin{table}
\begin{center}
\caption{Critical $N$ values}
\begin{tabular}{llllll}
\hline\noalign{\smallskip}
${\mathrm M}_\odot$ & $\beta_{0}$ & $T_{\mathrm c6}$ & $\gamma$
& $N_{\mathrm{crit}}^{\mathrm L}$
& $N_{\mathrm{crit}}^{\mathrm{Te}}$\\
\noalign{\smallskip}
\hline
\noalign{\smallskip}
30 & 0.82 & 38.4 & 35.7 & 154 & 320 \\
60 & 0.67 & 4
T*******n
发帖数: 493
35
来自主题: TeX版 - a bulleted list in a table?
\begin{document}
\begin{itemize}
\item a
\item b
\end{itemize}
\begin{tabular}{|c|}
\hline
\begin{minipage}{1in}
\begin{itemize}
\item \strut a
\item b
\strut
\end{itemize}
\end{minipage}
\\\hline
\end{tabular}
\end{document}
w*****9
发帖数: 346
36
我改成以下这样,都对了,但是那最上面一条水平线还是显示不出。。。怎么回事呀~
谢谢!!您看看在您那显示得出么~
\vspace{-0.1in} {\noindent
\begin{table}[b]
\footnotesize \center \caption{Benchmark task sets}
{\centering\small
\begin{tabular}{|c|c|c|c|} \cline{2-4}
\rowcolor [gray] {.8} \multicolumn{1}{c|}{} & \textbf{Task 1} & \textbf{
Task 2} & \textbf{Task 3} \\ \hline
\multicolumn{1}{|c|}{\cellcolor [gray] {0.8} \textbf{Task Set 1}} & epic* &
pegwit* & rawcaudio* \\ \hline
\multicolumn{1}{|c|}{\cellcolor [gray] {0.8} \textbf{Task Set 2}} & cjpeg*
b*******t
发帖数: 33714
37
\begin{tabular}{|c|p{2cm}|}
\hline
abcdefg & hijklmn \newline opqrst\\
\hline
\end{tabular}
我先睡啦,有问题明天早上来看
b*******t
发帖数: 33714
38
来自主题: TeX版 - latex 表格自动排版的问题
\documentclass{article}
\usepackage{lipsum} % dummy random text
\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}
}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m
{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}
m{#1}}
\begin{document}
\begin{tabular}{| c | c | c | L{4cm} | C{4cm} | R{4cm} |}
\hline
0& 1& 0& \lipsum[1]& \lipsum[1]& \lipsum[1]\\
\hline
\end{tabula... 阅读全帖
z***n
发帖数: 3
39
这样貌似可以,和lz一样画两条线,但是只有一个legend
x=linspace(0,2*pi,100);
y=sin(x);
xx=[pi/2,3/2*pi];
yy=sin(xx);
hline=plot(x,y,'b');
hold on
hdots=plot(xx,yy,'r*');
hg=hggroup;
set(hline,'parent',hg);
set(hdots,'parent',hg);
set(get(get(hg,'Annotation'),'LegendInformation'),'IconDisplayStyle','on');
hLegend=legend(hg,'extremes');
j******d
发帖数: 70
40
来自主题: TeX版 - 怎么控制表格里行的高度?
好像不行啊.
用 \hline\\[1mm] blabla...
就算定义成 \begin{tabular}[c]{cc|cc},也无法让blabla在该行垂直中央(靠底部了).
还有,分隔竖线 | 不够高,那 1mm 没有分隔线.
i******e
发帖数: 171
41
来自主题: TeX版 - 怎么控制表格里行的高度?
yeah, this way works if he wanna change the row height for one or few r
ows.
I think he can make it at vertical center by putting different positive
or negtive values after "test" and upper and lower \hline.
\arraystretch might be what he wants actually, so he can change the heights
for all rows.
T*******n
发帖数: 493
42
Depending on whether you want to preserve line justification
within the cell, you can use either \linebreak (justification)
or \newline (no justification). Run the example below for
illustration.
\usepackage{array}
\begin{tabular}{|p{1in}|p{1in}|p{1in}|}
\hline
one two three four five six seven eight nine ten &
one two three\linebreak
four five\linebreak
six seven eight\linebreak
nine ten &
one two three\newline
four five\newline
six seven eight\newline
nine ten \\
\hlin
f********h
发帖数: 149
43
depends how many words in the paragraph, you can either use fbox, or
use a tabular enviroment with only one column, just put \hline and | around it
.
c****e
发帖数: 3522
44
\begin{table}[tbh]
\begin{center}
\begin{tabular}{|l|l|l|l|l|l|}
\hline

好像这个tbh, to be here,没啥用
g*********h
发帖数: 21
45
but seems tabular also not work
\begin{tabular}{|c|}
%
after \\: \hline or \cline{col1-col2} \cline{col3-col4} ...
\begin{figure}

% Requires \usepackage{graphicx}

\includegraphics[width=3in]{./Chapter-3/Figures/fusion_psnr.eps}

\end{figure}
\end{tabular}
s******e
发帖数: 285
46
try use \cline instead of \hline for manipulating the horizontal
line. For the vertical line, try \multicolumn.
d*****y
发帖数: 140
47
if you prefer display style, you can achieve this by the array:
\[\begin{array}{cr} & 3\\ \times & 5 \\ \hline & 15\end{array}\]
v****c
发帖数: 32
48
由 \vline \hline 的又没有45度的线呢?先谢谢。
1 (共1页)