2022 Developer Survey is open! Take survey.

Questions tagged [cline]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 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....
user avatar
  • 1
9 votes
2 answers
136 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 ...
user avatar
7 votes
2 answers
743 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.
user avatar
1 vote
1 answer
100 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} \...
user avatar
3 votes
2 answers
215 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 ...
user avatar
  • 2,417
3 votes
2 answers
96 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 ...
user avatar
5 votes
3 answers
263 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\\\...
user avatar
  • 743
2 votes
1 answer
118 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 ...
user avatar
  • 3,516
2 votes
3 answers
525 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. ...
user avatar
  • 517
6 votes
3 answers
422 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 ...
user avatar
  • 63
1 vote
2 answers
80 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 ...
user avatar
5 votes
3 answers
560 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{...
user avatar
1 vote
1 answer
83 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\...
user avatar
  • 6,803
2 votes
2 answers
157 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 ...
user avatar
1 vote
1 answer
564 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{...
user avatar
  • 13
0 votes
1 answer
94 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 ...
user avatar
5 votes
3 answers
136 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 ...
user avatar
  • 161
0 votes
1 answer
65 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 ...
user avatar
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} | >{\...
user avatar
2 votes
2 answers
770 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{...
user avatar
  • 223
1 vote
2 answers
1k 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. ...
user avatar
  • 113
1 vote
1 answer
116 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 &...
user avatar
  • 11
4 votes
3 answers
456 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. ...
user avatar
  • 93
1 vote
3 answers
213 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[...
user avatar
  • 195
2 votes
2 answers
2k 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&...
user avatar
  • 55
0 votes
2 answers
263 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,...
user avatar
  • 3,225
1 vote
1 answer
65 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. ...
user avatar
  • 1,445
2 votes
2 answers
147 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 ...
user avatar
  • 53
4 votes
1 answer
161 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 ...
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} \...
user avatar
  • 1
2 votes
3 answers
228 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} \...
user avatar
  • 18.8k
4 votes
3 answers
503 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{...
user avatar
  • 3,210
3 votes
1 answer
173 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 ...
user avatar
2 votes
1 answer
225 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 ...
user avatar
2 votes
3 answers
396 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: \...
user avatar
1 vote
1 answer
192 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 ...
user avatar
2 votes
1 answer
1k 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 ...
user avatar
0 votes
2 answers
280 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 ...
user avatar
  • 103
3 votes
2 answers
388 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{...
user avatar
  • 31
0 votes
1 answer
320 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:...
user avatar
1 vote
1 answer
333 views

Apa6 style use of \cline for single column

I am looking for a way to apply the \cline command for a single column headline in series. The first picture indicates current state, the second one the look be achieved. Thanks in advance! \...
user avatar
2 votes
2 answers
569 views

"Extra alignment tab has been changed to \cr.": Problem between class "cta-author" and cline?

There seems to be a problem between cta-author class and cline. Here is my MWE giving me back "Extra alignment tab has been changed to \cr.": \documentclass{cta-author} \begin{document} ...
user avatar
  • 23
0 votes
0 answers
561 views

Longtable and regular cline on pagebreak not working?

Besides having issues with forced nopagebreaks, a cline does not seem to work on a regular pagebreak. Only hline seems to work. How can I get clines to work on Longtables? \documentclass{article} \...
user avatar
  • 73
2 votes
0 answers
225 views

How to control table page breaking using \longtabu, \multirow, colortbl and \hhline

I have a probably quite specific LaTeX problem using tables, due to the needed specification of the table, which are (mainly): I need support for multiple pages I need a lot of multicolumns I need ...
user avatar
  • 121
5 votes
2 answers
240 views

Extra,unwanted, row set by \cline

I am trying to draw a kind of a table to be filled with Rufinni Method in the Spanish outlay. Everything works pretty good, but in order to get a \cline{5-5} in the end i have to type \\ \cline{5-5}, ...
user avatar
  • 253
2 votes
1 answer
580 views

multicolumn multirow table problem

As you can see in this table, I have a problem with the length of \cline. Can any one help me solve this problem? Thank you very much. I used this code \begin{table}[!h] \begin{center} \...
user avatar
1 vote
1 answer
205 views

Separate combined header with \cline in \multirow / \multicolumn environment

Hi I am a beginner with tables and I'm struggling to typeset a table beautifully. Here is the code: \documentclass[]{article} \usepackage{fullpage} \usepackage{tabularx} \usepackage{booktabs} \...
user avatar
  • 13
1 vote
1 answer
232 views

Horizontal cline lengths inside blkarray

Consider the following MWE using the blkarray package: \documentclass[11pt]{article} \usepackage{lmodern} \usepackage{blkarray} \begin{document} \[ \begin{blockarray}{[ccc|ccc|cc]c} \mathsf{x} & ...
user avatar
0 votes
1 answer
351 views

Width of table and text wrapping using tabularx, cline, multicolumn

I am having problems making a table fit my page. I have used the tabularx environment and the \linewidth parameter, which successfully shortens the width of the \cline, but doesn't force the text to ...
user avatar
1 vote
1 answer
367 views

Horizontal line in alignat* in beamer with overlays

Here is the MWE: \documentclass{beamer} \usepackage{amsmath} \begin{document} \setbeamertemplate{navigation symbols}{} \begin{frame}[shrink] \begin{alignat*}{5} \uncover<+->{t_n &= a +...
user avatar
  • 2,345