由买买提看人间百态

topics

全部话题 - 话题: tabular
1 2 3 4 下页 末页 (共4页)
b****t
发帖数: 29
1
来自主题: TeX版 - 可以在Tabular里面加list麽
我想在tabular里面加list
\begin{tabular}{cc}
abc
& \begin{itemize}
\item asdfs
\item asdfds
\end{itemize}
\\
\end{tabular}
但是编译就是不通过,大家有啥办法麽?
T*******n
发帖数: 493
2
\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}
p******n
发帖数: 12
3
来自主题: TeX版 - 可以在Tabular里面加list麽
How about this?
\begin{tabular}{cc}
abc & \begin{minipage}{2.0in}
\begin{itemize}
\item asdfs
\item asdfds
\end{itemize}
\end{minipage} \\
\end{tabular}
C*N
发帖数: 1792
4
我用的是
\[
\rightarrow
\begin{tabular}{|c|}
\hline
text \\
\hline
\end{tabular}
\rightarrow
\]
但是 rightarrow 和中间的方框之间有空间, 不好看, 能有什么办法去掉这个间隔么
s****l
发帖数: 78
5
\begin{tabular}{|c|c|}
\hline
aaa & bbb \\
\hline
ccc & ddd1 \\
& ddd2 \\
\hline
\end{tabular}
s******e
发帖数: 285
6
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
k***5
发帖数: 856
7
一个table里面3个tabular,默认是居中,这样每一个tabular左右的空白就不一样了,
请教如何能够像word里面那样分散对齐。谢谢
b*********l
发帖数: 466
8
How to produce tabular format table without using proc tabulate?
Tabular format is like the following:
|--------+-------------+--------------+--------+-----------+------------|
|lbtest| aaaaaa | bbbbbb |ccccc |ddddd |eeeeee |
|--------+-------------+--------------+--------+-----------+------------|
b*********l
发帖数: 466
9
Just want to produce a tabular table.
If use proc report. is there any options to add the tabular format?
T*******n
发帖数: 493
10
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
T*******n
发帖数: 493
11
\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 &
t**i
发帖数: 688
12
我有一个tabular,最后一列的内容较多,希望能在同一个cell里面自动换行。
我知道如何用multirow来实现一个格子里面有多行。想问的是,能不能不用multirow来
实现?
s****l
发帖数: 78
13
http://web.mit.edu/rsi/www/2007/tech/latex/#faq5
5. How do I get table cells to auto-wrap?
Use p{dimen} as the column specification. That wraps them to that width spec
ified by dimen. Example:
\begin{tabular}{|l|l|r|p{2in}|}
w*****9
发帖数: 346
14
晕了 看了网上一些材料还是搞不定 现在的问题是最最上面一条线死活显示不出来,最
左边一条vertical line的左上角cell还是显示着 最左列里面的horizontal line都消
失了。。。
\vspace{-0.1in} {\noindent
\begin{table}[b]
\footnotesize \center \caption{XXX} \vspace{0.05in}
{\centering\small
\begin{tabular}{|c|c|c|c|} \cline{2-4}
\rowcolor [gray] {.8} {\cellcolor [gray] {1.0}} & \textbf{Task 1} & \textbf
{Task 2} & \textbf{Task 3} \\ \cline{1-4}
\multicolumn{1}{|c|}{\cellcolor [gray] {0.8} \textbf{Task Set 1}} & epic &
pegwit & rawcaudio \\ \cline{1-4}
\multicolumn{1}{|c|
w*****9
发帖数: 346
15
我改成以下这样,都对了,但是那最上面一条水平线还是显示不出。。。怎么回事呀~
谢谢!!您看看在您那显示得出么~
\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*
d**********o
发帖数: 1321
16
来自主题: 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
17
来自主题: 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... 阅读全帖
n*********u
发帖数: 34
18
来自主题: TeX版 - latex插图求助
latex 中间插图源码如下:
\begin{figure}[]
\centering
\begin{parbox}{
\begin{tabular}{cc}\\
\includegraphics[width=6cm]{CP5_figs/girl_happy.eps} &
\includegraphics[width=6cm]{CP5_figs/girl_mouth.eps} \\
(a)& (b)
\end{tabular}
}\end{parbox}\\
\begin{parbox}[h]{0.72/linewidth}{
\begin{tabular} {cc}
\includegraphics[width=6cm]{CP5_figs/girl_smile.eps} &
\includegraphics[width=6cm]{CP5_figs/girl_waa.eps} \\
(c)& (d)
\end{tabular}
}\end{parbox}
\caption{The first group input pictures for
distance-based metam
o******e
发帖数: 10
19
来自主题: TeX版 - Lyx Table format
Thanks.
I have figured out an easier way.
I redefine the tabular environment in the preamble. Most of the times I want
the table to be as wide as 1\textwidth;
\renewenvironment{tabular}
{%
\begin{tabular*}{1\textwidth}
}
{%
\end{tabular*}%
}
Then add the \extracolsep{\fill}} to the tex argument in the first column of
each table. This way, I don't have to manually assign the width of a column
. The rubber space should take care of it.
F**p
发帖数: 1046
20
来自主题: TeX版 - 如何在table里面插入图?
table里面可不可以插入图片?我直接把文字替换成 \includegraphics, 好像不work.
自己顶一下吧:
一个简单的table:
\begin{tabular}{|c|c|}
1 & 2 \\
3 & 4 \\
\end{tabular}
插入一个简单的图片:
\begin{tabular}{|c|c|}
\includegraphics[width=0.25\linewidth]{Fig/fig123.eps} & 2 \\
3 & 4 \\
\end{tabular}
我原来加上了\begin{figure} \end{figure}, 始终也compile不过。
a**e
发帖数: 5794
21
来自主题: TeX版 - Table 分两个 column 的问题
\documentclass{article}
\usepackage{multicol}
\begin{document}
\begin{multicols}{2}
\begin{tabular}{ll}
abc & abc \\
abc & abc \\
\end{tabular}
\columnbreak
\begin{tabular}{ll}
abc & abc \\
abc & abc \\
\end{tabular}
\end{multicols}
\end{document}
T*******n
发帖数: 493
22
I've never used floatflt, but after quickly reading the user manual for it, it
appears that this is a limitation of the package.
Note that you had to enclose the tabular environment in a pair of {}; this is
done to pass the entire tabular environment as an argument to the
floatingtable
environment. Also note that unlike the floatingfigure environment, you don't
specify a width for floatingtable. So the floatingtable environment takes the
tabular environment as an argument, typesets it and mea
T*******n
发帖数: 493
23
Change the font size before beginning the tabular environment, e.g.:
\begin{table}
\centering
\caption{...}
\begingroup % equivalent to {, to delimit scope of font size change
\tiny
\begin{tabular}{...}
...
\end{tabular}
\endgroup % equivalent to }
\end{table}
I never heard of \squeeztable.
g*********h
发帖数: 21
24
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}
T*******n
发帖数: 493
25
\begin{table}
\begin{tabular}{|c|}
\includegraphics{...}
\end{tabular}
\end{table}
If you don't want the "tabular" to float, don't put "table" around it.
L******r
发帖数: 199
26
来自主题: 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}
a****9
发帖数: 418
27
如果你table可以不要caption的话
可以这样
\begin{figure}
\begin{tabular}
here goes your table
\end{tabular}\\
\includegraphics{fig.eps}
\caption{the table and the figure}
\end{figure}
这样就是一个figure环境里放了一个tabular和一个图片, 他们share一个caption
如果两个都需要caption
我觉得最好用minipage环境, 然后把两个都放到minipage里面
b*******t
发帖数: 33714
28
来自主题: TeX版 - 问一个排版图片的问题
最简单的办法是直接
\begin{center}
\includegraphics[width=8cm]{figure1}\\
\includegraphics[width=4cm]{figure2}\includegraphics[width=4cm]{figure3}\\
\end{center}
tabular的话
\begin{tabular}{c}
\includegraphics[width=8cm]{figure1}\\
\includegraphics[width=4cm]{figure2}\includegraphics[width=4cm]{figure3}\\
\end{tabular}
不过我自己的话会用subfig,label和caption支持更好一点。
ftp://ctan.tug.org/tex-archive/macros/latex/contrib/subfig/subfig.pdf
b*******g
发帖数: 513
29
试了才知道,用latex的话,如果想让标题放在表格的上方就把caption加在\begin{
table}和\begin{tabular}之间,如果想把标题放在表格下方,就把caption放在\end{
table}和\end{tabular}之间。想在表格下方加以段话的话,就在\end{tabular}和\end
{table}直接加一句话,有时候要用\newline,有时候不用。但加的这段注释有时候是
doublespace的,想变singlespace,加一句\linespread{1}就行了。

, 该怎么办?怎么加这个解释。多谢!
b*******t
发帖数: 33714
30
来自主题: TeX版 - latex 表格自动排版的问题
use fixed width columns in tabular
\begin{tabular}{|c|c|c|}
->
\begin{tabular}{|p{}|p{}|p{}|}
M*******s
发帖数: 1210
31
来自主题: ebiz版 - 有会latex的吗
原来用过table:
\begin{tabular} {r 1}
\end{tabular}
details:
http://www.andy-roberts.net/misc/latex/latextutorial10.html

\m
3,
)+
_{
[t
mathbf{
c**********8
发帖数: 26
32
来自主题: Faculty版 - 请问这图在latex里怎么加的?
如图所示,请问在latex里是怎么做到的,需要加哪些命令和调整?多谢指导。
\begin{figure}[]
\begin{tabular}{c}
\epsfig{file= circle1.eps,height=3.25cm} \
\end{tabular}
\end{figure}
b****u
发帖数: 1027
33
来自主题: BuildingWeb版 - 怎样才能设计漂亮的网页
1. there's a difference of using table to present data and use table for
layout purposes. what I'm talking about is the latter. table layout is not
the html standard. as stated by w3c, table should be used for presenting
tabular data only. layout is not tabular data, it's not even data. table has
served its purposes in 1999. but modern browsers are designed to work
faster and more consistently with div layout. cross browser support is one
big reason of why one should use div layout. different cs
n****1
发帖数: 1136
34
版上无数大佬声称OOP比FP更加符合人类的思维方式,俺个土鳖来唱个反调.
所有的程序,不管采用什么模式,架构, 其最终目的都是IO+persistence, 70%以上的应
用仅仅是CRUD外加个包装而已. 大多数应用的persistence是tabular database, 这包
括mysql这类ACID数据库, 也包括big table/cassandra这类的分布式数据库. 当然也有
OO database, 但普及率/接收度/性能都不如前者.
我们不妨回想在电脑诞生之前, 人类对一个复杂问题是如何建模与解决的.复杂问题千
奇百怪,比如生物学家要对物种进行门纲目科属种的划分, 这种划分能够体现各物种之
间的异同程度. 再举个例子,统计学家要做个人口普查,那就要建立个大表格,每一行都
对应一个人, 行中记录包括生日/性别/籍贯等等各种信息,这样我们从一个表里就可以
得到籍贯分布,人口年龄结构,地域与受教育程度的关联等等.
事实上在OOP普及以前,人类对事物种类的划分是有限的, 因为现实中存在的东西就那么
几样, 人们也不大需要过研究什么抽象物体. 可OOP发明后就不一样了, 程序... 阅读全帖
c***a
发帖数: 655
35
【 以下文字转载自 Linux 讨论区 】
发信人: yymemory (yymemory), 信区: Linux
标 题: Re: LaTeX table可以缩小一点么? (转载)
发信站: BBS 未名空间站 (Fri Jul 29 15:14:21 2005), 转信
把你的
\begin{tabular}{ccc}之类的换成
\begin{tabular}{p{1cm}p{2cm}p{3cm}}, 自己可以调宽度.
T*******e
发帖数: 47
36
来自主题: 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
37
来自主题: 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
38
来自主题: 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}
r*****d
发帖数: 54
39
来自主题: TeX版 - Auto wrap in the Table
I want to put some text in the table, but the table doesn't wrap the end
of the sentence corretly. For example
the code
\begin{tabular}{l|l}
CDL is the killer& HL is the innocent victim. \\
\end{tabular}
If the sentence reached the right side of the page, I expect to see
CDL is the killer HL is the innocent
victim.
but instead, what I saw is
CDL is the killer HL is the innocent
Latex eat the second half of the second sentence, anybody has any idea
about it? Also, it is great
r*********s
发帖数: 2157
40
\slashbox should work, please try this one:
\begin{tabular}{|l|l|l|}
\hline {}\slashbox {} & {}&{}\\\hline {}&{}&{}\\\hline
\end{tabular}
z**o
发帖数: 4
41
来自主题: 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
42
来自主题: 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}
T*******n
发帖数: 493
43
来自主题: 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}
c****d
发帖数: 116
44
来自主题: 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]
{
s***t
发帖数: 195
45
来自主题: TeX版 - Beamer: resizing figure and table
don't quite understand your questions.
1) why has \includegraphics anything to do with \textheight? just specify
height=xxx.
2) doesn't this work?
{ \tiny \begin{tabular} ... \end{tabular} }
d****i
发帖数: 4809
46
来自主题: TeX版 - 怎么改变table的大小?
比如我有如下的表格,我想缩小到原来尺寸的70%
\begin{table}
\caption{ABC}
\begin{tabular}
............
\end{tabular}
\end{table}
o******e
发帖数: 10
47
来自主题: TeX版 - Lyx Table format
I have a table with the following tex code
\begin{tabular*}{1\textwidth}{ccc}
1 & 2 & 3 \\
1 & 2 & 3 \\
\end{tabular*}
i.e., I want to format the table so that the width of the table is equal to
1 textwidth.
Now I use windows lyx. How can I format this in lyx?
Thanks
o******e
发帖数: 10
48
来自主题: TeX版 - Lyx Table format
sorry, I meant
\begin{tabular*}{1\textwidth}{@{\extracolsep{\fill}}ccc}
1 & 2 & 3 \\
1 & 2 & 3 \\
\end{tabular*}

to
T*******n
发帖数: 493
49
来自主题: TeX版 - table里面的line spacing?
Try
\begingroup
\renewcommand{\baselinestretch}{1}
\normalfont
\begin{tabular}{p{4cm}...}
...
\end{tabular}
\endgroup
S********y
发帖数: 182
50
多谢,不过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}
1 2 3 4 下页 末页 (共4页)