Questions tagged [cline]

The tag has no usage guidance.

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

Internal cline in a table cell with wrapped text

I want a result like right one below: The left one is what I get currently coding as follows: \begin{tabularx}{0.9\textwidth} {r<{:}>{\centering\arraybackslash}X} foo & bar \\ \cline{2-...
3
votes
2answers
75 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 ...
3
votes
2answers
57 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 ...
5
votes
3answers
158 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\\\...
2
votes
1answer
88 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 ...
2
votes
3answers
189 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. ...
6
votes
3answers
132 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 ...
1
vote
2answers
59 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 ...
5
votes
3answers
279 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{...
1
vote
1answer
45 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\...
2
votes
2answers
80 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
1answer
260 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{...
0
votes
1answer
58 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 ...
5
votes
3answers
132 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 ...
0
votes
1answer
58 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 ...
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
2answers
522 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{...
1
vote
2answers
867 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. ...
1
vote
1answer
76 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 &...
4
votes
3answers
350 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. ...
1
vote
3answers
163 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[...
2
votes
2answers
1k 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&...
0
votes
2answers
197 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,...
1
vote
1answer
36 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. ...
2
votes
2answers
127 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 ...
4
votes
1answer
115 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 ...
0
votes
0answers
31 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} \...
2
votes
3answers
166 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} \...
4
votes
3answers
353 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{...
3
votes
1answer
97 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 ...
2
votes
1answer
165 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
2answers
283 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: \...
1
vote
1answer
152 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 ...
2
votes
1answer
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 ...
0
votes
2answers
245 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 ...
3
votes
2answers
325 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{...
0
votes
1answer
222 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:...
1
vote
1answer
269 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! \...
2
votes
2answers
535 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} ...
0
votes
0answers
435 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} \...
2
votes
0answers
199 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 ...
5
votes
2answers
223 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}, ...
2
votes
1answer
568 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} \...
1
vote
1answer
153 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} \...
1
vote
1answer
209 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} & ...
0
votes
1answer
324 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 ...
1
vote
1answer
322 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 +...
0
votes
1answer
440 views

Cline wrong width in table

I would like to create a table with different \vline and \hline width. But, when I use \cline in this table it draws wrong lines in places, where \setlength used in header of tabular. How can I fix it?...
3
votes
2answers
1k views

\cline overshoots table using tabularx

I'm having the problem that \cline overshoots the end column of my table after forcing it to have \textwidth. Is there a way to force it to end in the same place as \hline? \begin{table}[h] \...
2
votes
1answer
1k views

Decrease space between rows with \cline?

I added \cline to a couple of columns of the table. However, that seems to be adding space to the entire row and it looks weird. How can i decrease it? (i tried using \vspace but it didnt work. Here ...