# Tag Info

## Hot answers tagged cline

6


4

You almost achieve what you like to have :-) \documentclass[a4paper]{report} \usepackage{multirow} \usepackage{array} \begin{document} \begin{table}[h] \centering \renewcommand{\arraystretch}{2} \begin{tabular}{|m{2cm}|m{2cm}|m{3cm}|m{2cm}|m{2cm}|} \hline \multirow{2}*{text} & \multirow{2}*{text} & \multirow{2}*{text} & \multicolumn{2}{c|}{text}\...

4

\documentclass{article} \usepackage{multirow} \begin{document} \begin{center} \renewcommand{\arraystretch}{1.2} \begin{tabular}{|c|c|c|c|} \hline \multicolumn{2}{|c|}{} & \multicolumn{2}{c|}{Player 1} \\ \cline{3-4} \multicolumn{2}{|c|}{} & $\alpha$ & $\beta$ \\ \...

4

\multicolumn{3}{c|}{Player 1} to add the line to the right and \multicolumn{1}{c}{} in the previous cell to remove the one on the left.

4

Boldline, and the bold lines from makecell have problems with colour in tables. For lines of variable widths, you can load booktabs and neutralise locally the padding added around the rules, or use the \specialrule command, which lets you set the width, padding above and padding below: \documentclass[12pt]{article} \usepackage{longtable} \usepackage[table]{...

4

The reason for the misalignment is the & between \cline{2-4} & \cline{4-6}. Moreover, don't put \\ after a \hline, and you don't need an empty row to create a gap between the lines. However, the look of your table could be improved using booktabs package and its rules. You have a lot of empty space, I used makecell to put the headers into more ...

4

One option is to use a tikz matrix of nodes. it is possible to use fairly intuitive syntax so that you can produce something like: using code like: \documentclass[a4paper]{article} \usepackage[dvipsnames,table]{xcolor} % »table« optons loads »colortbl« package \usepackage{tikz} \usetikzlibrary{matrix} \parindent=0pt \begin{document} \begin{...

4

with array: \documentclass{article} \usepackage{lipsum} \begin{document} \lipsum[22] $\renewcommand\arraystretch{1.5} \begin{array}{r|rrrr} &3 &-5 &0 &4 \\ 2 & &6 &2 &4 \\ \cline{1-5} &3 &1 &2 &\multicolumn{1}{|c}{}8 \\ \cline{5-5} \end{array}$ \lipsum[33] \end{document}

4

You need to restore the colour in the same cell, so: \documentclass{article} \usepackage{xcolor} \makeatletter \def\clineThicknessColor#1#2#3{\@ClineThicknessColor#1\@nil{#2}{#3}} % Example usage: \clineThicknessColor{2-3}{1.5pt}{blue} \def\@ClineThicknessColor#1-#2\@nil#3#4{% \omit \@multicnt#1% \advance\@multispan\m@ne \ifnum\@multicnt=\...

4


2

The problem comes a misunderstanding of >{\hsize=0.6\hsize}X: it is made for X columns of unequal lengths and the values work as barycentric coordinates: their sum must be equal to the number of columns (4, here). Their sum is equal to 2.4 instead! As all your columns have equal widths, remove this specification and it will be fine: \documentclass[12pt]...

2

You can have what you want incorporating cline{2-4} to \endhead. I suppose you inserted some empty rows to give vertical padding to cell contents. I made padding it automatic. Also I used the (redefined) X column type to make the table full width. \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{booktabs} \usepackage{ltablex} \...

Only top voted, non community-wiki answers of a minimum length are eligible