0
votes
0answers
56 views

LaTeX table rules disappear when using Adobe Reader [duplicate]

I created a PDF document using LaTeX (TeXShop on a Mac) and used the LaTeX command \cellcolor to create colored cells in tables. When I view the document with the Adobe Reader some table rules of ...
3
votes
1answer
44 views

Reducing height of multicol separator line

I am bodging a table using multicol and rule so that I can have cells of dynamic sizes and populate it using a macro rather than manually. It mostly works, however I would like to reduce height of ...
1
vote
0answers
39 views

Add horizontal lines for selected shaded cells

I was trying to add a thicker horizontal line for columns 2-13 (above columns A, B, and C in the following example). My code did not not work for shaded columns. Any suggestions? Thanks in advance. ...
4
votes
2answers
130 views

LaTeX table adjustments

I am typing the following table in LaTeX: \begin{center} \setlength\extrarowheight{5pt} %\renewcommand{\arraystretch}{1.2} \begin{tabular*}{3.4in}{@{\extracolsep{\fill} } | c | c | c | c | c | c | c ...
4
votes
3answers
63 views

Changing height of vertical line in tabular

Is there any way of changing the height of the vertical lines of a tabular environment? Here is my MWE: \begin{tabular}{|c|c|} \multicolumn{2}{|c|}{Header 1}\\ Subheader 1 & Subheader 2 \\ ...
1
vote
2answers
85 views

Latex Recall and Precision Table [closed]

I want to draw follow table on a latex but I have spend over a day now but yet to get anything close to it. I am attaching a screen short it would be great if I can get latex command to build this ...
3
votes
1answer
39 views

Problem with hhline with tables having more than 9 columns

I found out that the hhline does not print lines when the argument is greater than 9 as in \hhline{|*14{-}|}. It works well when doing instead \hhline{|*9{-}*5{-}|} as the following file shows: ...
4
votes
2answers
261 views

How to draw two \hline and two vertical line?

I want to draw a table with two \hline and two vertical line. But as shown in the figure, the first vertical line do not cross the two hline. How to solve this problem? \documentclass{article} ...
6
votes
1answer
117 views

Adding vertical rule into tabu

Community, :) I know it might sound like some noobish' question, but I have some trouble adding the last vertical rule into my tabu. I've retrieved the code from here: How to Create Comparison Tables ...
5
votes
1answer
60 views

Bottom hline in a tabularx wrapper environment

I want to define a wrapper environment for a table where one of the columns stretches to fill the available width. I'm using the tabularx package and its X column for that. As mentioned here and in ...
12
votes
1answer
368 views

Use of \midrule in booktabs table

Are there any formal guidelines/suggestions on the use of \midrule inside a booktabs table with just rows of identically formatted data? The booktabs manual is very specific about vertical rules, ...
3
votes
1answer
65 views

\cline Not Working with Customized Column Padding

When I reduce the table's horizontal padding using @{}, the \cline command does not work properly anymore. It is shown in the MWE below. \documentclass{article} \begin{document} ...
5
votes
1answer
105 views

`hhline` adding a strange vertical line distortion

I am using horizontal and vertical lines in a longtable environment to create a kind of tree-like internal structure. Since I need to color some cells with the colortbl package, I can't use \cline, so ...
1
vote
1answer
174 views

\hhline double line imperfection

Using the \hhline command i found some imperfection in the double line. How can i fix it? Imperfection Table \documentclass[11pt]{amsart} \usepackage{amssymb} \usepackage{hhline} ...
6
votes
2answers
170 views

color a column red in a table

When I try to color a column red, it seems that white lines begin to emerge. Additionally the \hline changes width depending on how you zoom into the document in pdf format. It look as if the color ...
7
votes
3answers
436 views

Using vertical line column separator in tabular between JUST TWO cells

I'm trying to do long division using tabular environment. Here is the code: \documentclass[11pt]{book} \usepackage{multirow} \begin{document} \begin{center} \begin{tabular}{c@{} c@{} c@{} c@{} c@{} ...
2
votes
2answers
103 views

Switch off booktabs for one table only

I am using the booktabs package in basically all my papers to present tables with results or descriptive statistics. However, I need to show a schematic choice in a table, and for that I need a proper ...
2
votes
1answer
714 views

Is it possible to use \cline multiple times when using multirow?

\documentclass{article} \usepackage{multirow} \begin{document} \begin{table}[ht] \begin{center} \begin{tabular}{|c|c|c|c|c|c|c|c|}\cline{3-8} ...
6
votes
1answer
3k views

How to draw a double \hline in a table without interrupting vertical lines

I need to draw a double line after the first row in a table, but when using \hline twice, this interrupts the vertical lines: \documentclass{article} \begin{document} \begin{tabular}{|c|c|c|} \hline ...
3
votes
1answer
43 views

Use the content of a counter in cline

consider the following example: \newcounter{cnt} \setcounter{cnt}{3} \begin{tabular}{l|l|l|} \cline{2-3} a & b & c \end{tabular} I have a package that generates tables with a ...
4
votes
1answer
215 views

How to create this table for multi-line rotated text and thick vertical lines?

I want to create the table below and I am not sure how to do it. I also want the lines that say, "Long line of text really long" to be wrapped, and take up 2 instead of 1 so that the table isn't as ...
5
votes
1answer
95 views

No horizontal bar in table for space between column

I'm trying to create a table with underlined column groupings. I have an extra space between the groupings using @{\hskip 1cm}, but I don't want the underlining to extend over this extra space. Is ...
8
votes
2answers
1k views

Variable-width horizontal rules with \cline intrude cell text

I have come to learn how to make a variable-width horizontal rule with \hline from the LaTeX companion and with \cline from Horizontal rule with adjustable height behaving like \cline{n-m}. But the ...
5
votes
1answer
134 views

split a horizontal line into serveral lines in a table

I know \cline{i-j} to span a line from column i to j. But if in one line, I want a line only spanning from {1-1} and then {3-3} for example, how can I make it? | a | b | c | -- -- |d | e | f | ...
4
votes
2answers
211 views

How to color my (custom) lines/rules in a table contained by mdframed?

As a follow up to my recent question: Now I'd like to put some color on to that line/rule. In the MWE below, \arrayrulecolor{blue}\mycline{1-1} throws an error (undefined control sequence with respect ...
2
votes
4answers
166 views

Problem with custom vertical-alignment and/or length of lines/rules in tabular environment

As a follow-up to my previous question: In my table / tabular, \cline{1-1} gives me the correct vertical position but not the right horizontal length . In contrast, \rule{\mycustomlength}{0.4pt} ...
6
votes
2answers
527 views

How thick a rule does \hline produce?

How thick a rule does \hline produce (in a bog-standard tabular environment) ?
3
votes
1answer
248 views

Table with different rule widths

I wish to typeset a table with specific borders, where the the column rule separators are thicker, and also the first, second and last horizontal rules. I've tried using the tabu package and it ...
3
votes
1answer
138 views

Line under one column

Simple question that I couldn't find an answer to anywhere: I am using \cline to create discontinued lines in my tables. Sometimes I want to have a line just spanning over one column rather than ...
0
votes
1answer
81 views

Drawing the following table

How can i produce the above table in latex? The first column width i want to be small. The second and third and fourth i want to be of desired size. Is it possible to do it. Also I want thick lines ...
3
votes
1answer
594 views

Midrule that extends only over some of the columns in booktabs

I hope this isn't a silly question, the thing is that I want to create a table with a midrule applied in just some cells, I mean something like that (just between Item, Animal and Description): ...
4
votes
2answers
288 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 ...
3
votes
1answer
640 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
86 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
166 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
198 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 ...
2
votes
1answer
324 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
577 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
258 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
316 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
460 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
307 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: ...
4
votes
2answers
1k 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
435 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 ...
5
votes
2answers
120 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
150 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
260 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
335 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 ...
5
votes
2answers
5k 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
99 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 ...