Questions tagged [cline]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
34 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
21 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
22 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
110 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
49 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
13 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
175 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
355 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
44 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 &...
3
votes
2answers
154 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
86 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
369 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
91 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
22 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. ...
1
vote
1answer
82 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
85 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
29 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} \...
1
vote
2answers
90 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
203 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
58 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
110 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
183 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
62 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
476 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
160 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 ...
2
votes
1answer
170 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
123 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
191 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
467 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
302 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} \...
1
vote
0answers
155 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
198 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
537 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
119 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
167 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
267 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
251 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
273 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
810 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
728 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 ...
1
vote
1answer
663 views

How to add a line on top and bottom of a text in a table?

I am trying to add a line to the top and bottom of a column in my table. Is there a specific command for that? I tried using \cline but it only adds one line to the bottom.
2
votes
2answers
544 views

How to insert a horizontal line in align env with some text at the end of the line

I'd like to have some math induction showing as below.(In an align environment \begin{align*}...\end{align*}) How can I have the "by addition" text at the end of the line? I tried with \cline but ...
3
votes
1answer
84 views

How to remove unwanted blank margin at the end of the row?

Inspired by this, here is an MWE that show a visible margin between the end of the row and the right hand side of the table. That's annoying. Any idea how to remove that? \documentclass[12pt]{article}...
1
vote
1answer
174 views

Cline multi-page table

I have a single table over more pages and when I use \cline at the end of the last row in a page, the line appears only at the end of the page but not in the begin of the new page at the first row of ...
2
votes
2answers
961 views

I can't get the last column line in my table

\begin{center} \begin{tabular} {|c|c|c|c|c|} \cline{1-4} & & \multicolumn{3}{c}{Player 1} \\ \cline{1-4} & & $\alpha$ & $\beta$ \\ \cline{1-4} \multirow{2}{*}{Player 2} & $\...
3
votes
1answer
19k views

Making stats table with /multicolumn and /cline

I'm trying to make a table like the one above but with 5 variables under Females and Males instead of 2. Also under Treatment, I have more than those 3, but it's not that important. My codes keep ...
0
votes
1answer
368 views

Problem with tabularx's vertical spacing

I have a problem with the way tabularx (or is it booktabs?) is handling vertical spacing between horizontal lines and the cell content / background color. MWE: \documentclass[paper=a4,fontsize=12pt]{...
0
votes
1answer
630 views

How to fit merged columns/rows content to the appropriate cell width?

What is the best way to make the red text fit the width of the merged cells/rows and automatically break the line instead of causing overflow to the next cell and cells content ? PS: I never used ...
4
votes
1answer
146 views

How to create a table with this layout?

Before requesting help I tried to find the way myself using \cline \multicolumns and \multirows without success. How do I get the table with the layout below ? EDIT: my attempt: \documentclass[...
2
votes
1answer
123 views

Use arithmetic of counters inside \cline

I have a custom counter \myCounter set to, say 3. I need to produce such a table: The following code does not work: \documentclass{article} \newcounter{myCounter} \setcounter{myCounter}{3} \begin{...