Questions tagged [hline]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
2answers
58 views

Tables : \toprule and \midrule contents overlap and space needed above and below \hline

In my table the following problems arise : Toprule contents overlap with midrule contents. I need a little space above and below the horizontal lines used in the middle of the table. Here's the ...
6
votes
1answer
208 views

Why should \hline be the first instruction in a tabular row?

While debugging a macro, I've spotted this weird behavior (by weird, I mean I don't have the skill to understand why it is that way, and if it's a bug or a feature...). This MWE compiles: \...
2
votes
1answer
48 views

Redefine \hrule without affecting \hline

I can produce two versions from a single latex source. In one version I want to ignore the instances of \hrule. Simply redefining it produces a problem with \hline. Hence the MWE below throws an error,...
0
votes
2answers
46 views

How to draw a double horizontal line after head in all longtables?

I want to create a latex style, which would enable to draw a double horizontal line after longtable heads automatically. An important point I already have a lot of documents which contains longtables ...
2
votes
0answers
33 views

Extending hline within a colorbox environment

I am trying to extend the hlines of the following table such that they span the entire width of the colorbox, but can't seem to figure out how. The current Latex code looks like this: \documentclass[...
5
votes
1answer
91 views

Misplaced \noalign error with \input in a table after the 2020 fall LaTeX release

With the 2020 fall update, the behaviour of \input{} changed. Before, I would have a main latex document (main.tex) and then the table contents in another file (table.tex) . Importantly, the file ...
1
vote
1answer
28 views

vertical line not spanning all the way

I'm trying to have the vertical line to span until the horizontal line (marked), and not having the gap I'm currently facing. The tabular rule is {l@{~}c@{~}c@{~}|c@{~}c@{~}}, thus it is hard for me ...
1
vote
1answer
28 views

How can I add a \hline on a macro created table

I'm trying to create a table dynamically by adding rows to it. The idea is that the table has to be used/created before the rows are appended using a macro. I modified the method described here In ...
1
vote
1answer
56 views

Longtable With Multirow and Multicolumn

First of all, thank you for trying to help! This is the problem that I have: I am trying to create a table that will list a bunch of commands and their description. For that, I need to be able to use ...
1
vote
1answer
24 views

Isolated or duplicated hlines in a longtable

I am working with the following longtable on Overleaf : \begin{longtable}{lllll} \hline \multicolumn{1}{|l|}{\textbf{DM}} & \multicolumn{1}{...
2
votes
3answers
118 views

Text around \hline and \cline gets very congested!

In table, when I use \hline and \cline, line gets very close to the text which looks congested. For example, in following example, G is almost touching the line above it. This looks very congested. ...
7
votes
2answers
412 views

Problems with \input{table.tex}\hline after 2020 fall LaTeX release

Since updating to the 2020 Fall release (MikTeX on Windows but also tested with TeXLive), I can no longer compile files where tables are imported from an external file using \input and followed by \...
0
votes
0answers
24 views

Nesting tables to format Canvas rubrics — extra vertical space in first column

I'm trying to format Canvas rubrics in LaTeX. I'm using a tabulary inside of a tabular (using tabular inside of tabular has the same behavior). The problem is that the table insists on putting an ...
2
votes
2answers
398 views

\hline not working inside tables

I want horizontal lines between each row in the table. I use this code for the table. However, it shows only vertical lines. Here is my code(Please ignore the values inside table) \begin{table}[h] \...
0
votes
2answers
62 views

How not cross out headings of table after using the merge row command multiline?

Hi latex and texmaker experts I am currently still new to latex and struggling to add horizontal lines to a table after using the multirow function in latex without crossing the headings of the table ...
2
votes
2answers
59 views

\linewidth plus \cline plus centering using tabularx does not work out

I am trying to create a table using tabularx to stretch a table to over the full page width. Usually, it would not need the full width but I like it better if it's like this. In my table, I have some ...
1
vote
2answers
151 views

I cannot get a bottom horizontal line on my table

I have tried both \hline and \bottom rule, but for some reason I cannot get a bottom horizontal line on my table. \documentclass{report} \usepackage{amsmath} \begin{document} \begin{center} \...
1
vote
1answer
36 views

Why are lines missing when using multicolumn? [duplicate]

Lines are missing between healthy and total column \documentclass{article} \usepackage[table]{xcolor} \usepackage{multirow} \usepackage{makecell} \begin{document} \begin{table} \centering \begin{...
0
votes
2answers
107 views

Misplaced \noalign when working with tabular and tabularx and \hline

I am constantly getting the error "Misplaced \noalign" at the end of my tabularx. I already read a lot about it online for example that you need to put \\ before \hline. I did this but i am still ...
0
votes
0answers
14 views

Various errors when adding new row or horizontal line to table [duplicate]

I'm trying to replicate the table from Annex A of the ISO/IEC 27001 standard: Here is my MWE: \usepackage{array,longtable} \begin{longtable}{| l | >{\raggedright}p{0.2\textwidth} | >{\...
2
votes
1answer
93 views

How to get a bold horizontal line in a long table using xltabular

I have a long table going over several pages and I need the last horizontal line of this table on each page to be bold. However, I only get the horizontal line on the very last page to be bold. Is ...
0
votes
1answer
1k views

\hline produces “undefined control sequence”

I'm at a loss why the proper code like this one would produce "undefined control sequence" at every \hline: \begin{center} \begin{tabular}{ |c|c|c| } \hline cell1 & cell2 & cell3 \\ ...
1
vote
1answer
374 views

How to reduce space between a text line and differents \hline in a table - trying to use negative \vspace value

On the following figure, I try to make decrease the space betwen the line "Nombre de bins : (Y1) :5 ..." and the two \hlines above. More over, you can see that line "Nombre de bins : (Y1) :5 ..." is ...
2
votes
2answers
419 views

Dissapearing of table/cell borders with coloured cells in the PDF viewer depending on the zoom

I have a problem with the coloured tables that I want to include in my master thesis, so it is a very important issue for me. I generate the tables with tablesgenerator.com, and in the LaTeX viewer ...
2
votes
3answers
1k views

Solution for disappearing table/cell borders with \rowcolor in the PDF viewer depending on zoom?

We are currently trying to convert some documents (with our corporate design) from InDesign to LaTeX. These documents are supposed to be available on the Homepage as PDF and also print out nicely. The ...
0
votes
1answer
590 views

Table with partial line on the top

I would like to mimecry the following table in LateX: I have tried the following code but I am having hard time to get the partial line on the top (the content is not important, only the top line to ...
1
vote
1answer
136 views

A table with `\hline`s in a tikzposter block

I would like to have a table with \hlines fit inside of a tikzposter block, but the lines stretch outside of the block, as shown in the following image: \documentclass[25pt, a0paper, portrait]{...
2
votes
2answers
401 views

Errors with table [duplicate]

I am very new to the latex community (1 week) and writing my thesis with latex. I am trying to built a table using the following code: \begin{center} \begin{longtable} [c] { |m{3cm}|m{2cm}|m{2cm}|m{...
0
votes
2answers
178 views

Discontinuous table border line appearing while using tabular

I was trying to increase the thickness of the cell by giving extra space at the bottom of cell but that gives me discontinuos line at the table border. How can I get rid of this. Solution using only ...
3
votes
2answers
128 views

Combine rectangle split with array

I want to draw a "complicated" figure, like shown below. What is need to be done: Enlarge the \hdashline to fit the hole width (drawn in red) Remove the dashed line (:) from the first row (done per ...
1
vote
1answer
539 views

horizontal line in table does not cover full width

Below I have the code to create a table in latex, but the horizontal dashed line is not drawn over the full width of the table. \begin{table}[H] \caption{Aggregated sales data of all products} % ...
4
votes
1answer
361 views

A midrule line under each column, separated by white space

How can we draw a horizontal line in a table with white space between each column? A MWE, using booktabs's \midrule and \cmidrule: \documentclass[11pt,twoside,a4paper]{article} \usepackage{booktabs}...
4
votes
1answer
2k views

horizontal line Specific Row [duplicate]

How can I remove a hline in a specific column? I wish the first line did not have the hline \begin{table}[h!] \resizebox{\columnwidth}{!}{% \centering \begin{tabular} {|c|c|c|c|c|c|c|c|c|c|c|c|c|} ...
2
votes
1answer
148 views

How to add an argument to a \cline-like macro?

I want utility macros that allow me to change (a) the thickness and/or (b) color of \hlines or \clines in tabulars. I want to do so without redefining \arrayrulewidth but rather by modifying the ...
1
vote
1answer
81 views

Tabularx: Reason why customized \hrule exceeds \textwidth?

Any ideas on why my self configured \hrule exceeds the specified \textwidth of my page layout? Minimum Working Example (MWE): \documentclass{article} \usepackage{xcolor,colortbl} \usepackage{...