Tagged Questions
4
votes
2answers
60 views
Tabular with automatic \hline
Is there a package or simple command that will insert an \hline after every line in a tabular environment? It is rather annoying to do it all manually, and it seems like there should be a simple way ...
2
votes
1answer
76 views
\hline with \only (or \onslide) in Beamer
In a table in beamer, I would like to remove \hline after X number of slides using
\only<1>{\hline}
But this always results in an error message:
Misplaced \noalign
What can I do to ...
1
vote
2answers
73 views
Table Line above?
\begin{center}
\captionof{table}{Register Table} \label{tab:title}
\begin{tabulary}{1.2\textwidth}{| p{3cm} || C | p{3cm} | C | C p{1cm} | }
Procedure & Expected Outcome & Pass ...
3
votes
1answer
48 views
Breaking Horizontal Rule Running Across Adjacent Columns in a Table
Is there any way to force a break in the horizontal rule running across two adjacent cells of a table. To be more precise, here is what I'm looking for:
Notice how I wish the lines to fall short of ...
5
votes
1answer
53 views
Table - remove row lines in column to furthest right
How do I remove row lines in the column to furthest to the right.
I have seen examples where they do it the left. I would like the "powers" from the table here to be on the right side instead of the ...
1
vote
1answer
93 views
How to create a dashed line in tabularx environment
I've been looking into this, and I have encountered two main "solutions":
\usepackage{arydshln}
As decribed here.
And this one:
\usepackage{dashrule}
As described in this other post.
However, ...
2
votes
2answers
98 views
\hhline doesnt work
I wonder you can help me why LaTeX can't draw a \hhline in my table??
(I would put a picture but I need at least 10 reputation...)
Here is the code:
\documentclass[12pt,titlepage]{report}
...
1
vote
1answer
113 views
Horizontal line through table cell
I have a very long, thin table that I'm folding onto itself to make a wider, shorter version. The table has a couple horizontal rules to separate data categories. For example, the original table is ...
5
votes
1answer
105 views
How to trim the length of \toprule? [duplicate]
How to trim \toprule (from booktabs package)?
It is probably something basic I'm missing, but I need it and it's nowhere to be found.
1
vote
0answers
105 views
Missing vertical line in table [closed]
I'm new to LaTeX and learning quite quickly thanks to this site, among others that teach me quick fixes for my mistakes, but I can't seem to find a fix for this, I'm not able to draw the right border ...
2
votes
1answer
92 views
Top aligned tabular: \cline equivalent of \firsthline
When aligning tabular environments with the [t] option, one can use \firsthline (from the array package) instead of \hline when a line is required at the top of the table. Like so:
...
3
votes
1answer
180 views
Colored tables and cline/hhline
How to write \clines (or \hhline) in colored tables so that the color of the cell does not hide the line?
Here are two solutions but neither of them works fine.
\documentclass[a4paper,11pt]{article} ...
4
votes
1answer
89 views
How to 'shorten' \cline so that multiple groups in a table become visible?
I would like to construct a table which looks like a booktabs table (but
without using the package booktabs). Instead of \cmidrule, I used \cline,
which comes pretty close (see below), but the lines ...
2
votes
1answer
45 views
How to delete borders (rules) in a table defined with the cals package?
I recently discovered the less known cals package for defining tables HTML-style.
Here is all documentation I found:
http://www.ctan.org/tex-archive/macros/latex/contrib/cals (demo & doc)
...
2
votes
2answers
92 views
How to eliminate certain vertical lines in tables
I'd appreciate if somebody could help me with this. I'd like to eliminate the vertical lines of the 8th row. I haven't been able to get it.
\begin{table}
\footnotesize
\begin{tabular}{| ...
6
votes
1answer
166 views
Nice-looking tables with thick rules
I want to make a table with rules that are thicker than the default. It's pretty straightforward to do, however the result looks bad: the lines have gaps in them (see image below). There must be a ...
0
votes
1answer
128 views
In a table how do I add vertical lines between each column?
I have this as my current table which is fine, but I would like there to be vertical lines too just to make it look that bit neater.
I'd also like horizontal lines between each row but this would ...
3
votes
2answers
364 views
Problems with \toprule and \midrule in a table
Having the following siunitx table code in LyX, for each occurrence of \toprule and \midrule I obtain an error message:
The control sequence at the end of the top line of your error message
was ...
0
votes
1answer
83 views
Rule between environments (no spacing!)
I want to place a rule between two centered tabulars like the following example.
But I am not able to control the correct spacing of 2mm in between the rule.
Can somebody maybe explain :-) what should ...
3
votes
1answer
57 views
Problem with \hline and reference
I am trying to end my table with a \hline.
My tex is as follows
\begin{center}
\begin{tabular}{ l | c || r }
\hline
1 & 2 & 3 \\ \hline
4 & 5 & 6 \\ \hline
7 & 8 & 9 \\
...
8
votes
1answer
215 views
Vertical table lines are discontinuous with booktabs
I created a table in LaTeX, but there are some problems with the borders. The borders remain open whereas I want them closed. Also, in the last row, I want the vertical line gone, ie I want just one ...
10
votes
2answers
108 views
How to render a double bottom border on a single table cell?
How to render a double bottom border on a single table cell? In the example table,
\begin{table}[htbp]
\begin{tabular}{|l|r|r|}
\hline
Item & Sales & Total \\ \hline
Item 1 & 10 & ...
6
votes
2answers
148 views
Adding borders to an entire row in a table
I have a table with multiple rows (a regression table). I would like to add a coloured border highlighting one particular variable. I have found a way to border one cell at a time but is there a way ...
11
votes
2answers
975 views
Highlight table cells using thick, colored border
I'd like to highlight certain cells of my table. In particular, I'd like to set the border of these sells colored and thick. These cells should also have a background color.
Here's a minimal example ...
6
votes
2answers
1k views
\hhline adds white line where no line is intended
In a table, containing colored cells, i want to have a \hline dividing only some cells, similar to \cline but compatible with coloring single cells with \cellcolor, which is possible by using \hhline ...
3
votes
2answers
1k views
\cellcolor overwrites table lines
I have a table which I want to fill with multiple colors, each cell possibly different from another. Which means, I can't make use of e.g. \columncolor (as in this post).
While the table without any ...
6
votes
1answer
1k views
Remove border of top left table cell
I want to remove the border of the top left table cell (top-border and left border of this cell). My table looks like this:
\begin{table}[!ht]
\centering
\begin{tabular}{|c|c|c|c|} ...
4
votes
1answer
168 views
Weird imperfect table, horizontal line overflow
I've this weird problem where the horizontal lines in a table are overflowing. It might be due to one of the many packages, I'm not sure. Is there a way to forcefully fix the table border.
The latex ...
4
votes
2answers
148 views
pdfpages doesn't allow me to draw a thick horizontal line in “tabular”
I have the following code:
\documentclass{article}
\usepackage{amssymb}
\usepackage{caption,sansmath}
\usepackage{array}
\DeclareCaptionFont{sansmath}{\sansmath}
\captionsetup{textfont={sf,sansmath}}
...
1
vote
0answers
68 views
Table with horizontal line that doesn't span all columns [duplicate]
Possible Duplicate:
How can I draw a horizontal line spanning only some of the table cells?
I need to recreate table 12 of this document manually (because unfortunately this automatic ...
2
votes
1answer
276 views
Tabular: set a line between each row in \newenvironment
I have created a particular table with 3 columns using \newenvironment.
Now I want to put a line between each row and from the 2th to the 3th column.
I know it is possible to add \cmidrule{2-3} at the ...
2
votes
2answers
868 views
Bold \hlines for longtable
I've searched the topic and found the following two answers.
Answer 1. LaTeX tables: How do I make bold horizontal lines (typically \hline)?
The best answer suggests to use booktabs. However ...
1
vote
1answer
473 views
Table vertical line [duplicate]
Possible Duplicate:
Too long vertical lines in table
In the following table, the first vertical line is higher than
the second. How do I correct this?
...
4
votes
2answers
1k views
Too long vertical lines in table
Ok, I've looked at this code too long and need some fresh eyes and ideas.
Question: Why do I get too long vertical lines on my LaTeX table?
Please note that I've not experiencing any problems with ...
5
votes
1answer
411 views
Vertical line left out in tabular
The code
\documentclass[a4paper]{article}
\usepackage{multirow}
\begin{document}
\begin{tabular}{|l|l|l|l|l|l|l|}
\hline
\multirow{2}{*}{Color Type} & \multirow{2}{*}{Channels} & ...
25
votes
2answers
5k views
How can I reproduce this table with thick lines?
I'm trying to reproduce this table:
(apologies for the terrible cameraphone pic)
I don't know how to get the slightly thicker leftmost and topmost line.
Here's a minimal example of what I have so ...
2
votes
1answer
210 views
Why the horizontal line behaves differently in supertabular and tabular?
I have a problem using the supertabular package. Basically the horizontal lines, instead of stopping at the end of the table, continue until the end of the page.
This is a self-explaining ...
10
votes
2answers
5k views
How to change line color in tabular?
How can I change the color of the lines (the frame) in a tabular environment? In the following MWE:
\begin{tabular}{c|c|c}
a&b&c \\ \hline
d&e&f \\ \hline
g&h&i
\end{tabular}
...
24
votes
3answers
3k views
Why not use vertical lines ('|') in a tabular?
My question is a follow-up to the answer to a follow-up question, to be found here. ;)
I'd like to know why one would advise against using vertical lines (via |) in a tabular (i.e. in ...
4
votes
2answers
2k views
\cline doesn't work
I'd like to draw a partial horizontal line just below of 'first second third' row, but \cline doesn't work. Any suggestion?
\documentclass[table]{beamer}
\usepackage[T1]{fontenc}
...
3
votes
2answers
298 views
How to just show a part of lines inside a tabular
I am drawing a matrix as follows:
\[\begin{tabular}{l|lllll|ll}
& 0 & i & j & k & $\ldots$ & x & y \\ \hline
0 & 0 & $\ldots$ & $\ldots$ & $\ldots$ ...
3
votes
1answer
2k views
tabular - \cline not working
I have this table
\begin{tabular}{ | p{2cm} | p{4cm} | p{4cm} | p{4cm} | }
\hline
Název & \multicolumn{3}{ l }{vypsatZapojeniResiteluDoProjektu} \vline\\
\hline
Popis & \multicolumn{3}{ l ...
6
votes
1answer
190 views
booktabs's horizontal rules aren't displayed with cifa document class
There seems to be a problem between the CIFA document class
and the booktabs package.
When I compile the following code, the horizontal lines are not displayed:
\documentclass{cifa}
...
4
votes
2answers
368 views
Is there a command similar to \cline{i-j} but works with vertical line? [duplicate]
Possible Duplicate:
Create a vertical line in a table that spans a range of rows but not all rows
The \cline command draws horizontal lines across the columns specified, beginning in column ...
1
vote
2answers
498 views
Incomplete vertical line while creating a table
My code is as below. Last column line is splitted when I leave space between the rows. How can I get a solid vertical line? Please reply
\begin{table}[h!]
\caption{\textbf{$\alpha=10; U=1; ...
6
votes
2answers
2k views
Horizontal rule with adjustable height behaving like \cline{n-m}
How can I produce \noalign{\hrule height 1pt} only through a certain number of columns just like with \cline{n-m} (or basically \cline with adjustable thickness)?
Fig. 1: The approximate objective ...
3
votes
1answer
2k views
Multirow and lines - how to draw line going through selected columns
I was wondering if it is possible to draw line which goes through some columns in table(not all columns). I have a table which looks like that
\begin{longtable}{|c|c|c|c|c|c|c|c|c|c|c|c|}
...
1
vote
2answers
259 views
Changing thinness and form of a vertical line in a table
I am trying to create a cover page, where in the middle of the page i use tabularx (tabular could have been just as well) to split the width of the page in to two parts.
I would like to know how ...
2
votes
1answer
151 views
longtable - strange lines at the end of table
I have strange problem with longtable package. Almost all my tables looks great but some of have strange lines at the end of tables. Please take a look at the picture
I create the table like that
...
16
votes
1answer
7k views
Can a table include a horizontal dashed line?
In a normal table, you can use the \hline command to draw a horizontal line. I am trying to make this line a dashed horizontal line.
I have found the package dashrule via this answer, but this only ...
