Questions tagged [hline]
The hline tag has no usage guidance.
65
questions
2
votes
2
answers
57
views
Tabularray. Need a partial vertical line at the beginning of the table
I'm trying to format a table to have an empty space in the first two rows and first column. That means no vertical line at row{1}, but the other must have. Haven't figured out how to do that.
Here is ...
0
votes
0
answers
30
views
Using \hdashline in csvreader&longtable
I'm currently setting up a longtable for a client, which will take its input from a csv file via csvreader. Ive finally gotten everything to work, but I now want to format the table, especially have ...
0
votes
1
answer
141
views
How to correctly add a "tabular" table inside a "longtblr" table ? (Issues on table lines and centering)
Problem & MWE
I would like to add a simple tabular table (as described in Overleaf), inside a longtblr table (as proposed/built up by @CarLaTeX in another stack exchange question).
As shown in the ...
2
votes
2
answers
71
views
\hiderowcolors causes \noalign error
Specifically
\hiderowcolors ->\noalign
{\global \@rowcolorsfalse \@norowcolor }
This is my current code (edited to fit requirements). I started using NiceTabular because hlines ...
1
vote
1
answer
55
views
Create a no break cline
I have a LaTeX longtable with joined cells and thus with a cline.
The longtable is automatically generated so I cannot manually insert commands because it would be too much work.
I don't want the ...
0
votes
1
answer
72
views
Horizontal and Vertical Analysis Financial Statement Formatting
I am working creating a horizontal and vertical analysis chart. For the sake of demonstration, here are my minimal working examples:
\documentclass[12pt]{article}
\usepackage{float}
\begin{document} ...
1
vote
1
answer
136
views
Width border problem tabularray environment
after I got great help the last time, I´m new to latex and already tried to figure it out for some time... I hope you can help me with my problem.
I try to design a table in a style like that (white ...
3
votes
2
answers
65
views
Problem with vertical centering and Lines within tabular in tabularx environment
I am new to latex and have some troubles with a table...
I want to vertically center column A and B to the table. I use a command to vertically center all cells. But when I include another tabular in ...
2
votes
2
answers
141
views
Generate tabular data dynamically including `\hline`
My question is same as this question but with this different that I need an \hline after every row in \tabledata. How can I do it?
Currently my code is as below:
\documentclass{article}
\usepackage{...
1
vote
1
answer
51
views
extending \hline across the full width of nested tabular
So I'm trying to figure out how to extend the horizontal line in the last column across the full width. I'm using nested tabular but can't seem to use \hfil or anything similar to get it to work. Is ...
0
votes
2
answers
61
views
gaps between horizontal lines in table
Hello I would like to replicate this table
I already made something that looks like this:
There are a few things that bother me
My caption is longer than horizontal lines
gaps between the first row ...
0
votes
1
answer
245
views
Longtable \hline at top produces \noalign error
I got a longtable for my project with the caption at the bottom. Creating the table alone works perfectly fine, but as soon as I try to add a toprule it throws a ! Misplaced \noalign.\hline ->\...
0
votes
2
answers
88
views
Command inside tabular with automatic \hline placement
I am trying to define a command that simplifies building tables. I want the last entry to be automatically preceded by a horizontal line. I tried to do a minimal working example, and it worked (...
0
votes
0
answers
22
views
line gaps visible in table [duplicate]
I am having some gaps when I use hline or cline in latex, here are examples of my code:
\begin{table}[ht]
\centering %{*4l}
\begin{tabular}{|c|c|c|c|c|}%{p{0.22\textwidth}p{0.15\textwidth}p{0....
0
votes
0
answers
146
views
Default \hline after every row
I have a long table inside a longtable environment. I don't want to put \hline everywhere. How do I tell LaTeX to do it for me?
I need \hline after every row and also before the first row.
2
votes
1
answer
325
views
Include \hrule within tabular rows generated using \foreach
This question extends the solution from Generate rows in table using \multido (or something similar). Based on the solution to the linked question, I understand how to use a \foreach loop to build ...
0
votes
1
answer
56
views
Table with an extra column (comments) without horizontal line-layout
I would like to comment only some rows of a table.
Is there a way to realize a table with an extra column for comments without overshooting of horizontal lines?
Working example:
\documentclass{article}...
0
votes
1
answer
69
views
hline does not show up in the output
I have some long and large Microsoft word tables that I have to fit in my LaTeX document. I converted them with the Libreoffice extension, and it was easy enough. The most difficult part will be to ...
1
vote
0
answers
34
views
Compilation errors when using \input inside tabular environment [duplicate]
I would like to include a table stored an external tex file in a latex document via \input inside a \begin{tabular}...\end{tabular} environment. This way the column alignment definitions and ...
1
vote
1
answer
326
views
Double vertical line column type in tabular
I need a column type with 2 vertical lines but I want the horizontal line to not go trought it.
The result would be like this :
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
...
3
votes
1
answer
286
views
Issue with \input combined with \hline [duplicate]
I have always believed that \input was strictly equivalent to copy-pasting some code in a master latex file. But I currently experience this strange behaviour. Here is a minimal example.
My main file ...
0
votes
1
answer
51
views
Creating a table with a vertically separated header row and \hhline produces horizontal line distortion
I want to create a table which marks some cells either with $\times$ or they simply stay empty.
I have two header rows of which I would like to separate the first header row visually. I use \hhline{~==...
0
votes
2
answers
94
views
How do I prevent \hline from overrunning the edge of my table?
Here is my minimal working example :
\documentclass{article}
\usepackage{tabularx}
\usepackage{pdflscape}
\begin{document}
\small
\begin{tabularx}{1.33\textwidth}{ |c|c|c|c| }
\hline
Date ...
2
votes
1
answer
90
views
Why after latest update to TL, tex4ht no longer shows \hline in tables
After I updated Tex Live 2021 last night, I am finding that tex4ht no longer shows horizontal lines in tables.
Why is that, and how to get them to show again?
Here is MWE
\documentclass[12pt]{book}
\...
2
votes
2
answers
109
views
Unwanted space around hline introduces gaps in the table
I am using a latex template of a journal on Overleaf to prepare an article. The template adds spaces around the \hline so that the following code:
\documentclass[draft]{agujournal2019}
\begin{...
0
votes
1
answer
75
views
\hdashline in tikzpicture-environment
I've a trouble with this code.
I'd like a \hdashline, but Overleaf gives me an error, why?
My code
\documentclass{article}
\usepackage[italian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[a4paper,...
0
votes
1
answer
309
views
Table alignments. How to make a \hline in the middle of a table
I was wondering how to create these tables in LaTeX. How to have the title adjusted to the left of the table. And how to color a \hline and how to put it in the middle of a table. It almost seems like ...
3
votes
1
answer
106
views
my \begin won't work
when I try to use a \begin{left} and \begin{right}, they get mixed up. this is my code
\begin{left}
\begin{tabular}{l|c|c}
Monophthongs & Front & Back \\
\hline
...
3
votes
2
answers
563
views
Partial cline in table only for some fraction
Example:
\begin{tabular}{|c|c|}
\hline
1 & 2 \\
\cline{1-1}\cline{2-2}
3 & 4 \\
\hline
\end{tabular}
I want cline to cover only e.g. half of a cell of a table. Or maybe I can specify an ...
1
vote
0
answers
18
views
Longtable & \input - Misplaced \noalign and \omit [duplicate]
SOLVED! (see below)
I'm trying to create a longtable that uses a generated input file.
This is my main file:
\documentclass[a4paper]{article}
\usepackage[left=1cm, right=1cm, top=2cm, bottom=2cm]{...
2
votes
2
answers
967
views
Drawing `\hline` partially in a table
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{ragged2e}
\usepackage{tabularx}
\usepackage{graphicx}
\begin{document}
\begin{...
3
votes
2
answers
328
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
1
answer
219
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
1
answer
90
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,...
1
vote
2
answers
271
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
0
answers
96
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[...
7
votes
1
answer
1k
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
1
answer
207
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
1
answer
48
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
1
answer
716
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
1
answer
57
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
3
answers
1k
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. ...
16
votes
2
answers
3k
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 \...
2
votes
2
answers
2k
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
2
answers
657
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
2
answers
356
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
2
answers
875
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
1
answer
400
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{...
1
vote
2
answers
493
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
0
answers
15
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} | >{\...