Skip to main content

Questions tagged [cline]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
3 answers
35 views

cline over multicolum and \cellcolor

I want to fix this cline over muticolumn-\cellcolor envirnoment. I have read some previous similar questions but I cant still fix it. I have used \nicetabular, hhline, threeparttable... but nothing ...
Ander de Marcos's user avatar
2 votes
2 answers
94 views

Problem with cline being to short

I tried to build a Table which shows a multiclass confusion matrix. \documentclass{article} \usepackage{multirow} \usepackage{graphicx} \begin{document} \begin{table}[!ht] \centering \renewcommand{...
Jaran's user avatar
  • 123
4 votes
3 answers
173 views

Table Question: How do I stop the color in a cell from blocking a cline?

I have a table with four columns that group into two larger columns. I am using the package tabularx. When I input \cline{2-5} to place a line above those columns, it is visible when the table is ...
Mitchell Redd's user avatar
1 vote
2 answers
141 views

Error while using \cline

for a certain table layout, I am forced to use \cline, but I keep encountering errors and I can't find the cause. Existing forum posts that have similar problems could not help me with my problem. I ...
alpa's user avatar
  • 21
7 votes
2 answers
179 views

Break a hline between two slide

sorry if this topic exists somewhere, I didn't find it. I'm making some slides with beamer and I'm struggling to break a tabular between two slides. This is the best I can get : \documentclass[xcolor=...
Cla-Jan's user avatar
  • 151
1 vote
1 answer
66 views

Combination of \cline and p-type column in table seems to break make4ht

I am trying to convert a .tex file into .odt using make4ht. This is the MWE that is able to generate the error that I face: \documentclass[a4paper,12pt]{article} \usepackage{multirow} \usepackage{...
Miloop's user avatar
  • 978
0 votes
0 answers
37 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
138 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
238 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
147 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
  • 849
1 vote
1 answer
91 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
269 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
98 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
81 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
  • 809
1 vote
0 answers
130 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
  • 325
0 votes
2 answers
128 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
133 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
484 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
8 votes
2 answers
888 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
845 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,737
3 votes
2 answers
178 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
454 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
  • 857
2 votes
1 answer
239 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,974
2 votes
3 answers
2k 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
  • 587
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
198 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
  • 304
1 vote
1 answer
169 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
  • 8,095
2 votes
2 answers
483 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
2k 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
148 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
218 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
87 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
1k 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
177 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
651 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
346 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
  • 315
2 votes
2 answers
4k 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
348 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,285
1 vote
1 answer
110 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. ...
Siegfriedenberghofen's user avatar
2 votes
2 answers
688 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
579 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
362 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
  • 20.3k
4 votes
3 answers
910 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,344
3 votes
1 answer
376 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
318 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