Questions tagged [cline]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
33 views

Latex '\cline' command throwing error [duplicate]

I am writing a manuscript for Springer Nature. My Latex code is as follows. \documentclass[sn-mathphys,Numbered]{sn-jnl} \usepackage{graphicx} \usepackage{multirow} \usepackage{amsmath,amssymb,...
Debapriya's user avatar
1 vote
0 answers
64 views

\cline cant function properly

\documentclass[sn-mathphys,Numbered]{sn-jnl} \usepackage{multirow} begin{table*}[b] \centering \caption{Summary of Electrical and Mechanical Fault Detection Method} \label{Table:1} \begin{tabular}{ |...
TUAN SHARIFAH NUR FATIEHA TUAN's user avatar
0 votes
3 answers
126 views

Cline not working

I have this beautiful table: \documentclass \begin{table}[] \caption [Vyplněná instrukce pro ovládání suction cup]{Vyplněná instrukce pro ovládání suction cup} \label{tab:sucv} \catcode`\-=12 \begin{...
RadimNovak's user avatar
2 votes
1 answer
103 views

How to draw horizontal rules/lines beginning in column i and ending in column j (when using \longtable, \multirow and \rownum)?

MWE: I have tried several times to add \cline but without success...! \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{multirow, makecell, booktabs, tabularx, ...
Ommo's user avatar
  • 537
1 vote
1 answer
67 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 ...
P D's user avatar
  • 13
0 votes
1 answer
149 views

How to control the appearance of \cline in a table?

Below is a code for an example on polynomial long division. I have used the command \onslide<> to control the order in which certain things appear first. The only problem is the \cline. The ...
Square's user avatar
  • 3
1 vote
3 answers
84 views

multirow table alignments, centering in combination with self defined columntypes

I've read a lot of table related posts, but couldn't find a specific solution for my problem. I know there was a bug with the multirow vertical centering of the last column, but it didn't work for me ...
Felixzitrone's user avatar
0 votes
1 answer
50 views

How to format a book-style table with multicolumns and \cline?

I read lots of similar question but I did not manage to fit to my case. I need to get a table with 2 multicolumns. Here is my code: \documentclass{article} \usepackage{siunitx} \usepackage{booktabs} \...
g_don's user avatar
  • 779
1 vote
0 answers
72 views

add vertical space to table row (\rule{0pt}{4ex} not working properly)

\documentclass{article} \usepackage{amsmath} \usepackage{tabularx} \usepackage{booktabs} \begin{document} \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \...
Simon's user avatar
  • 251
0 votes
2 answers
101 views

\cline results in strange vertical "indentation" rather than each column beginning at the top

I'm currently trying to use \cline to help me replicate this mockup: I've been stumped for a while and the closest I've come to replicate it is the following: \documentclass{article} \usepackage[left=...
Dynexus's user avatar
1 vote
1 answer
105 views

\cline results in incomplete borders

I am trying to draw a table using multirow and multicolumn, and I would like to use borders around cells. When I use \cline, with the following \begin{table} \begin{center} \begin{adjustbox}{width=0....
tebu's user avatar
  • 11
9 votes
2 answers
359 views

\cline equivalent that allows `(lr)` trim on either side

I am looking for the equivalent of \cline{1-1} that does not affect the vertical spacing, but with the option to be able to apply a trim such as (lr) that \cmidrule allows. The MWE below produces: I ...
Peter Grill's user avatar
7 votes
2 answers
843 views

"Stairs" in Latex table, (some kind of vertical \cline)

I want to create such table: But the only thing I created is: Because I don't know how to make some kind of vertical \cline. Please, help.
Brian Brown's user avatar
1 vote
1 answer
102 views

how can I center the column titles in relative to the numbers below them

\documentclass[12pt]{article} \oddsidemargin 0.0in \textwidth 6.5in \headheight 0.0in \topmargin 0.0in \headsep 0.0in \textheight 9.0in \usepackage{rotating, graphicx} \usepackage{amsfonts} \...
Jonathan Peled's user avatar
3 votes
2 answers
609 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 ...
Albert's user avatar
  • 2,697
3 votes
2 answers
137 views

A small aesthetic problem in tables: conflict between \ cellcolor and \ cline commands

As you can see in the example below, the partial horizontal lines, for which I have used "\cline", are overwritten by the gray shading with "\cellcolor". I have seen several ...
Jesús Álvarez Lobo's user avatar
5 votes
3 answers
404 views

Align `\cline` with a double vertical line

Consider the following MWE: \documentclass{scrbook} \usepackage{array} \begin{document} \renewcommand{\tabcolsep}{2pt} \begin{tabular}{|c||c|c|c||c|} \firsthline 1&2&3&4&5\\\...
facetus's user avatar
  • 837
2 votes
1 answer
196 views

The problem is that Czech babel makes "-" an active character (whatever that means)

I write reports in Czech, so naturally, I use the Czech babel package. The problem is that Czech babel makes "-" an active character. I've found that problems arise when I use these ...
JardaFait's user avatar
  • 3,850
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. ...
pba's user avatar
  • 517
6 votes
3 answers
1k views

Cline not connecting fully in table with custom lines

I have a table with two thick lines (one horizontal and one vertical) and with multirow and multicolumn cells. Now one of the clines is not connecting where I want it to. This is what I have to create ...
Simon's user avatar
  • 63
1 vote
2 answers
165 views

alignment of heavy cline with usual width clines

I am trying to make a table with certain cells emphasized with a thickened border around those cells. My attempt with \arrayrulewidth was quite successful, except that the \cline thickened this way ...
Haochen Xie's user avatar
5 votes
3 answers
1k views

Adding arrayrulecolor command removes top rule

The code below results in the image below. \documentclass{beamer} \usetheme{Montpellier} \usecolortheme[named=gray]{structure} \usepackage{colortbl} \usepackage{array} \newcommand{\gr}[1]{\textcolor{...
JRN's user avatar
  • 294
1 vote
1 answer
147 views

Fitting longtable to textwidth causes a white space in cline

I fit longtable to textwidth following fit longtable to textwidth \documentclass{report} \usepackage{longtable} \usepackage{multirow} \begin{document} \begin{center} \begingroup \setlength\...
Viesturs's user avatar
  • 7,665
2 votes
2 answers
378 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 ...
starsnpixel's user avatar
1 vote
1 answer
1k views

How do I make double partial horizontal line in a table?

\begin{table} \begin{center} \begin{tabular}{ rcc|cc|cc } \multicolumn{1}{r}{} & \multicolumn{2}{c|}{$\sigma_1$} & \multicolumn{2}{c|}{$\sigma_2$} & \multicolumn{2}{c}{$\sigma_3$}\\ \cline{...
Upid's user avatar
  • 13
0 votes
1 answer
127 views

How to adjust the width in table using \cline command?

I would like to create a table with specific horizontal line width, when I use \cline and merge columns in this table , it's OK, but when I fill color to the merged cell, the horizontal line ...
GuoFeng Wang's user avatar
5 votes
3 answers
186 views

How to align text vertically in table

I have designed a table that is looking well except for one part, that is not aligned vertically to the center. I think it has to do with the line separating "Property at 27ºC" from the actual ...
aaa's user avatar
  • 161
0 votes
1 answer
81 views

how to position lists inside multirows and fix cline error with vertical lines

I am quite a newbie so please forgive my ignorance. Well they say 1 picture = 1000 words, so this is kind of what i want to achieve: Now my attempt through latex lead to this: So I guess my problems ...
maneedos's user avatar
0 votes
0 answers
16 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} | >{\...
08915bfe02's user avatar
2 votes
2 answers
991 views

Adjusting Table in Latex tabularx environment

I am having difficult time with adjusting the following table. I have the code as follows: \documentclass[dissertation,letterpaper,12pt]{utthesis} \usepackage{tabularx} \usepackages{multirow} \begin{...
tcokyasar's user avatar
  • 233
1 vote
2 answers
3k views

Split cells vertical and horizontal

I'm an absolute newby in Latex and I try to reproduce a table (see picture above) as an exercise in university. I need to split cells both vertically and horizontally, as can be seen in the picture. ...
constiii's user avatar
  • 113
1 vote
1 answer
166 views

\cline in combination with \multirow not the same thickness as \cline without \multirow

I have the following table: \begin{table}[h] \caption{\label{tab:}Model 1 - Model output} \centering \begin{tabular}{l|c|c|c|c|c|c|c} \hline & coefficient & Std. Error & t-value &...
Fabio's user avatar
  • 11
4 votes
3 answers
609 views

issue with hhline and cellcolor in table

I am trying to setup a table with \hhline and \cellcolor. After I got it so far, that I don't see \hhlines in the colored cells I am now missing the black \hhlines which should separate the cells. ...
madibat's user avatar
  • 93
1 vote
3 answers
313 views

Putting text in the middle of a line within a three part table

I am trying to put some text in the middle of a horizontal line that only spans a part of the table. Below is my table so far \documentclass{article} \usepackage{amssymb, amsmath, bm} \usepackage[...
Matthew's user avatar
  • 305
2 votes
2 answers
3k views

\cline not working properly

\begin{longtable}{|cc|c|c|c|c|c|} \caption{Result table} \cline{3-7} \multicolumn{2}{c}{}&\multicolumn{5}{|c|}{Name} \endfirsthead \multicolumn{2}{c}{}&\multicolumn{1}{|c|}{Line 3}&M&...
sameerk's user avatar
  • 55
0 votes
2 answers
343 views

How to get continuous vertical line without breaking inside array environment?

I am facing a problem in the following code, i found that there is a breaking in two vertical lines as shown in red mark when i used the command \cmidrule[1pt](r{-1.0em}){1-4} inside array environment,...
Biki Teron's user avatar
  • 3,275
1 vote
1 answer
103 views

Closing table cells in a tabular environment involving multirow and multicolumn

Is there a way to close the cells containing "Field A" and "Field B" only, i.e. with excluding the cell on the top left? Below is a minimal working environment. Thanks for your hints and suggestions. ...
preuss's user avatar
  • 1,607
2 votes
2 answers
459 views

Cline does not work with Template

Any advise on this would be appreciated. I have to use a template to write up my paper but I cannot use \cline to merge cells in a table. A simple code is below: \documentclass{cta-author}%%%%where ...
sayan's user avatar
  • 53
4 votes
1 answer
445 views

Colored cell removes line

I have a problem with coloring a cell in a table because it removes the upper line of the cell. I already found out that there are some issues with \cellcolor and \cline but I couldn't come up with a ...
Kaniee's user avatar
  • 85
0 votes
0 answers
33 views

! Extra alignment tab has been changed to \cr. <template> \endtemplate - cline [duplicate]

\documentclass{cta-author} \newtheorem{theorem}{Theorem}{} \newtheorem{corollary}{Corollary}{} \newtheorem{remark}{Remark}{} \usepackage{blindtext} \usepackage{enumitem} \usepackage{array} \...
Jerom's user avatar
  • 1
2 votes
3 answers
288 views

Suggested way to color a multirow table without package of colored tabulars

I have this code: \documentclass[a4paper,twocolumn]{article} \usepackage[margin=1in]{geometry} \usepackage{multirow,booktabs} \usepackage{amssymb} \usepackage[table]{xcolor} \usepackage{booktabs} \...
koleygr's user avatar
  • 20k
4 votes
3 answers
827 views

How do I resize rows in a table differently?

MWE \documentclass{article} \usepackage{amsmath,tabularx} \begin{document} \begin{table}[h!] \caption{Table}\label{tab:1} \centering \newcolumntype{C}{>{\centering\arraybackslash}X} \begin{...
Özgür's user avatar
  • 3,270
3 votes
1 answer
321 views

\color in a \cline-like macro causes extra line when after the last row

I have a macro, e.g., \clineThicknessColor{2-3}{1.5pt}{blue}, that is basically \cline plus a thickness and a color (thanks to Hood Chatham's answer to my earlier question). It's working fine, except ...
Jim Ratliff's user avatar
  • 1,049
2 votes
1 answer
288 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 ...
Jim Ratliff's user avatar
  • 1,049
2 votes
3 answers
519 views

How can I add extra space before \cline in a \multicolumn matrix cell?

I'm trying to make this matrix looks nicer. Currently the horizontal line coincides with the $A^\top$. How can I make it so $A^\top$ doesn't intersect with the horizontal line? This is what I have: \...
Calvin Kent's user avatar
1 vote
1 answer
223 views

Span rule disappear when using colors in table

Good day! Here my requirement is table columns in different color with respective span rule. When we using \cline{} it has disappeared and overridden by next row color. Please suggest me how to solve ...
Rajesh Kumar's user avatar
2 votes
1 answer
2k views

in longtable a Bold \cline and colored column

I have a longtable with some thick horizontal lines (I know and agree, lines are ugly, but I have to do it). Works good with package boldline and \clineB. But it interferes with colored Columns. Am I ...
Peter Miehle's user avatar
0 votes
2 answers
336 views

\clines in regression table misaligned

I used the stargazer package in R to export a regression table for LaTeX. I tried to edit the code to show grouping for male and female subsets, but the \cline commands are misaligned by about 15 ...
bdempe's user avatar
  • 103
3 votes
2 answers
464 views

How to draw multiple colored bars in a table?

For a calendar, I would like to draw multiple lines indicating things like school breaks into a table. A single calendar day is already multiple cells in the table, so I thought using \arrayrulecolor{...
yoshi's user avatar
  • 31
0 votes
1 answer
436 views

Compilation runs on forever when using \cline in a table [duplicate]

Im using texstudio and have this problem that whenever i use the \cline command and try to compile, it starts compiling and never finishes here is what im trying to compile. Im using this source https:...
user158419's user avatar