Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cline]

The tag has no usage guidance.

5
votes
2answers
173 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}, ...
4
votes
3answers
134 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{...
4
votes
1answer
54 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 ...
3
votes
2answers
535 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] \...
3
votes
1answer
133 views

How do i get a table with this layout?

before i request help i already 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: \...
3
votes
1answer
11k 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 ...
3
votes
1answer
441 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 ...
3
votes
1answer
77 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}...
3
votes
1answer
2k views

How to fix error, File ended while scanning use of \@cline error [duplicate]

hi I have this code \begin{table}[h] \centering \caption{My caption} \label{my-label} \begin{tabular}{c|c|c|c|c|c|c|} \cline{2-7} & Windows Forms & PDF & Windows Forms/GDI+ & ...
2
votes
2answers
538 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} & $\...
2
votes
1answer
136 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 ...
2
votes
1answer
129 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{...
2
votes
1answer
30 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
62 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 ...
2
votes
2answers
297 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 ...
2
votes
2answers
232 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} ...
2
votes
1answer
385 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} \...
2
votes
1answer
163 views

How can I call \cline with a non-literal argument?

I'm trying to define my own version (\CLINE) of \cline, such that \CLINE{1-3,5-7} is equivalent to \cline{1-3}\cline{5-7}. I want therefore call \cline with a non-literal argument, like so: \def\arg{...
1
vote
2answers
69 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} \...
1
vote
1answer
30 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&...
1
vote
1answer
17 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
38 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 ...
1
vote
1answer
93 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} & ...
1
vote
1answer
181 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 +...
1
vote
1answer
39 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 ...
1
vote
1answer
119 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! \...
1
vote
1answer
302 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.
1
vote
1answer
130 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 ...
1
vote
1answer
90 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{...
1
vote
1answer
83 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
2answers
60 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
0answers
102 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 ...
0
votes
2answers
112 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 ...
0
votes
2answers
39 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,...
0
votes
1answer
73 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:...
0
votes
1answer
176 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 ...
0
votes
1answer
328 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
0answers
25 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} \...
0
votes
0answers
165 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} \...
0
votes
1answer
169 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?...
0
votes
1answer
546 views

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

Hi 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 confusion ? PS: i ...