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}  &amp; Windows Forms &amp; PDF &amp; Windows Forms/GDI+ &amp; Windows Media Player &amp; Direct3D &amp; \textbf{WPF} \\ \hline \multicolumn{1}{|c|}{Grafické rozhranie} &amp; X &amp;  &amp;  &amp;  &amp;  &amp; \textbf{X} \\ \hline \multicolumn{1}{|c|}{Dokumenty na obrazovke} &amp; X &amp;  &amp;  &amp;  &amp;  &amp; \textbf{X} \\ \hline \multicolumn{1}{|c|}{Dokumenty s pevným,formátom} &amp;  &amp; X &amp;  &amp;  &amp;  &amp; \textbf{X} \\ \hline \multicolumn{1}{|c|}{Obrázky} &amp;  &amp;  &amp; X &amp;  &amp;  &amp; \textbf{X} \\ \hline \multicolumn{1}{|c|}{Video a zvuk} &amp;  &amp;  &amp;  &amp; X &amp;  &amp; \textbf{X} \\ \hline \multicolumn{1}{|c|}{2D grafika} &amp;  &amp;  &amp; X &amp;  &amp;  &amp; \textbf{X} \\ \hline \multicolumn{1}{|c|}{3D grafika} &amp;  &amp;  &amp;  &amp;  &amp; X &amp; \textbf{X} \\ \hline \end{tabular} \end{table}`   and I have this error      File ended while scanning use of \@cline   Can you help me pls?
63264
I tried to use the Slovak language with the booktabs package.    Let's see a couple of cases.   slovak is included in the options to babel     \usepackage[english,slovak]{babel}   or    \usepackage[slovak,english]{babel}   or    \usepackage[slovak]{babel}`  "slovak" is NOT included in the options to babel  \usepackage[english]{babel}    Similarly two cases for \cmidrule  A. \cmidrule{2-3} is included in the table    B. \cmidrule{2-3} is NOT included in the table    If both (slovak+\cmidrule) are included (case 1A), then following error occurrs  Paragraph ended before \@@@cmidrule was complete   (and a lot of other errors)  In the other cases (1B, 2A and 2B) (NO slovak or NO \cmidrule), then pdflatex is succesful  Does anybody know why 1A is wrong?    And how to use slovak and \cmidrule together (case 1A)?  \documentclass[10pt]{book} \usepackage[english,slovak]{babel} \usepackage{booktabs}  \begin{document}  \begin{tabular}{ccc} A &amp; B &amp; C \\ %\cmidrule{2-3} A &amp; B &amp; C \\ \end{tabular}  \end{document}   I have Win7, TeXstudio 2.5.2
22184
I want to create a table like this using Latex        ---------------------------------       |               sets            |       ---------------------------------       | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | --------------------------------------- | I1  | * |   | * | * |   | * |   | * | ---------------------------------------   Here is what I wrote  \begin{table} \caption{Multiprogram sets} \label{multiprogram}  \begin{tabular}{| c | c | c | c | c | c | c | c | c |}   \cline{3-9}   \multicolumn{8}{}{}    &amp;   Sets  \\   \hline   \multicolumn{1}{}{}   &amp; 1 &amp; 2 &amp;  3 &amp; 4 &amp; 5 &amp;  6 &amp; 7  &amp; 8 \\   \hline    astar         &amp;  &amp; * &amp;  &amp; * &amp;  &amp;  &amp; * &amp;   \\   \hline  \end{tabular} \end{table}   But it doesn't work! The output look like            -----------------------------                                  sets | ---------------------------------------         1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | --------------------------------------- | I1  | * |   | * | * |   | * |   | * | ---------------------------------------   Any way to fix that?
62360
I used some of the solution proposed in this post:    and my code is as follows:  \documentclass{standalone} \begin{document}  \begin{tabular}{c*{11}{@{\,}c}}       2&amp;:&amp;7&amp;=&amp;0&amp;,&amp;$\overline{2}$&amp;$\overline{8}$&amp;$\overline{5}$&amp;$\overline{7}$&amp; $\overline{1}$&amp;$\overline{4}$       \\       {\color{red} 2} &amp;{\color{red} 0 } &amp; &amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp; \\       1 &amp; 4 &amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;  \\  \cline{1-2}        &amp; 6&amp; 0 &amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;  \\        &amp; 5 &amp; 6 &amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;  \\   \cline{2-3}        &amp;  &amp; 4 &amp; 0 &amp;&amp;&amp;&amp;&amp;&amp;&amp;  \\        &amp;  &amp; 3 &amp; 5 &amp;&amp;&amp;&amp;&amp;&amp;&amp;  \\  \cline{3-4}        &amp;  &amp;      &amp; 5 &amp; 0 &amp;&amp;&amp;&amp;&amp;&amp; \\        &amp;  &amp;      &amp; 4 &amp; 9 &amp;&amp;&amp;&amp;&amp;&amp;  \\  \cline{4-5}        &amp;  &amp;      &amp;   &amp; 1 &amp; 0 &amp;&amp;&amp;&amp;&amp; \\        &amp;  &amp;      &amp;   &amp;   &amp; 7 &amp;&amp;&amp;&amp;&amp; \\ \cline{5-6}        &amp;  &amp;      &amp;   &amp;   &amp; 3 &amp; 0 &amp;&amp;&amp;&amp; \\        &amp;  &amp;      &amp;   &amp;   &amp; 2 &amp; 8 &amp;&amp;&amp;&amp; \\  \cline{6-7}        &amp;  &amp;      &amp;   &amp;   &amp;   &amp; { \color{red} 2} &amp;{\color{red} 0} &amp;&amp;&amp;     \end{tabular} \end{document}   The goal is to show the repeating decimal part with overline over the repeating decimals. The code does that, but each decimal is overlined in isolation, but I want a continuous overline!  But that does seem to infer with the mechanics of tabular ...
86975
I have the following code which produces the first attached Table. But as you can see in the table, both the table label and the caption all fall on the same line: \documentclass[10pt,journal,compsoc]{IEEEtran}  % *** CITATION PACKAGES *** % \ifCLASSOPTIONcompsoc   % IEEE Computer Society needs nocompress option   % requires cite.sty v4.0 or later (November 2003)   \usepackage[nocompress]{cite} \else   % normal IEEE   \usepackage{cite} \fi  \usepackage{subcaption} %\usepackage{subfig} %\usepackage{subcaption} \usepackage[draft]{graphicx} \usepackage{algorithm,algpseudocode} \usepackage{mathtools} \usepackage{filecontents} \usepackage{lipsum} \usepackage[flushleft]{threeparttable} \usepackage{cite} \usepackage{amssymb} \usepackage{algpseudocode}% http://ctan.org/pkg/algorithmicx \usepackage{mathtools, cases} \usepackage{amsmath,empheq} \usepackage{eqparbox} % for the second example \usepackage{verbatim} \usepackage{varwidth}% http://ctan.org/pkg/varwidth \usepackage{color} \usepackage{xcolor} \usepackage[export]{adjustbox} \usepackage{multirow}  \newcommand{\meq}[2]{%   \eqmakebox[#1][s]{$\displaystyle#2$}% }   % correct bad hyphenation here \hyphenation{op-tical net-works semi-conduc-tor}  %\let\emptyset\varnothing \begin{document}  \begin{table}[!bp] \centering \caption{Evaluation of overall performances on both datasets} \label{tab:default} \resizebox{0.5\textwidth}{!}{% \begin{tabular}{|l|l|l|l|l|l|l|} \hline \multicolumn{7}{|c|}{Datasets}                                                                                  \\ \hline \multicolumn{3}{|c|}{In-House}                                                &amp; \multicolumn{4}{c|}{NSL-KDD}    \\ \hline DR                       &amp; ACC                      &amp; FPR                     &amp; K  &amp; DR      &amp; ACC     &amp; FPR    \\ \hline \multirow{8}{*}{99.75\%} &amp; \multirow{8}{*}{99.72\%} &amp; \multirow{8}{*}{0.06\%} &amp; 1  &amp; 90.53\% &amp; 96.14\% &amp; 0.00\% \\ \cline{4-7}                           &amp;                          &amp;                         &amp; 2  &amp; 94.22\% &amp; 97.65\% &amp; 0.00\% \\ \cline{4-7}                           &amp;                          &amp;                         &amp; 3  &amp; 95.47\% &amp; 98.16\% &amp; 0.00\% \\ \cline{4-7}                           &amp;                          &amp;                         &amp; 4  &amp; 96.10\% &amp; 98.41\% &amp; 0.00\% \\ \cline{4-7}                           &amp;                          &amp;                         &amp; 5  &amp; 96.48\% &amp; 98.57\% &amp; 0.00\% \\ \cline{4-7}                           &amp;                          &amp;                         &amp; 10 &amp; 97.25\% &amp; 98.87\% &amp; 0.02\% \\ \cline{4-7}                           &amp;                          &amp;                         &amp; 20 &amp; 97.57\% &amp; 98.88\% &amp; 0.22\% \\ \cline{4-7}                           &amp;                          &amp;                         &amp; 30 &amp; 97.68\% &amp; 98.40\% &amp; 1.11\% \\ \hline \end{tabular}% } \end{table}  \end{document}   But what I want is a table with the caption format below:  How do I achieve this? Any help will be appreciated.
103347
I'm trying to copy this table into TeX:    I have problems with the horizontal lines under "Gaussian" etc. When I specify three \cmidrule's, they are not separated but are combined into one big \midrule or \cline.  It would be great if someone could show me how to narrow down such a \cmidrule. Thanks in advance!  Here's the (spaghetti) code I use:  \documentclass[bibtotoc,liststotoc,BCOR5mm,DIV12]{scrbook}  \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{colortbl,array} % für farbige cells \usepackage{multirow,bigdelim} \usepackage{booktabs}  \begin{document}  \begin{table}[htb] \resizebox{\textwidth}{!}{ \begin{tabular}{lr rrrrrr rrrrrr rrrr} \toprule $f$ &amp; $n$ &amp; \multicolumn{6}{l}{Gaussian} &amp;  \multicolumn{6}{l}{Binomial Logit} &amp; \multicolumn{4}{l}{Survival} \\ \cmidrule{3-8} \cmidrule{9-14} \cmidrule{15-18}  &amp; &amp; \multicolumn{2}{l}{FP}  &amp; \multicolumn{2}{l}{GCV} &amp; \multicolumn{2}{l}{REML} &amp; \multicolumn{2}{l}{FP} &amp; \multicolumn{2}{l}{GCV} &amp; \multicolumn{2}{l}{REML} &amp; \multicolumn{2}{l}{FP} &amp; AIC &amp; REML \\   &amp;  &amp; \makebox[1cm][l]{FP2}  &amp; \makebox[1cm][l]{FP4} &amp; \makebox[1cm][l]{LRSS} &amp; \makebox[1cm][l]{PS} &amp; \makebox[1cm][l]{LRSS} &amp; \makebox[1cm][l]{PS} &amp; \makebox[1cm][l]{FP2} &amp; \makebox[1cm][l]{FP4} &amp; \makebox[1cm][l]{LRSS} &amp; \makebox[1cm][l]{PS} &amp; \makebox[1cm][l]{LRSS}  &amp; \makebox[1cm][l]{PS} &amp; \makebox[1cm][l]{FP2} &amp; \makebox[1cm][l]{FP4} &amp; \makebox[1cm][l]{PS} &amp; \makebox[1cm][l]{PS} \\ \midrule  &amp; 100 &amp; \cellcolor[gray]{0.8} 0.012 &amp; \cellcolor[gray]{0.8} 0.012 &amp; 0.021 &amp; 0.025 &amp; 0.018 &amp; 0.018 &amp; 0.043 &amp; \cellcolor[gray]{0.8} 0.042 &amp; 0.146 &amp; 0.194 &amp; 0.074 &amp; 0.076 &amp; \cellcolor[gray]{0.8} 0.015 &amp; 0.016 &amp; 0.427 &amp; 0.019 \\  $f_1$ &amp; 500 &amp; 0.004 &amp; \cellcolor[gray]{0.8} 0.002 &amp; 0.006 &amp; 0.006 &amp; 0.004 &amp; 0.004 &amp; 0.014 &amp; \cellcolor[gray]{0.8} 0.011 &amp; 0.030 &amp; 0.034 &amp; 0.028 &amp; 0.028 &amp; 0.020 &amp; 0.007 &amp; 0.024 &amp; \cellcolor[gray]{0.8} 0.005  \end{tabular} } \end{table}  \end{document}
28788
The following code gives me an error:  \documentclass[12pt]{article} \usepackage[margin=2cm]{geometry} \usepackage [english]{babel} \usepackage{amsmath, amssymb} \usepackage{enumitem, array} \begin{document} {\begin{minipage}[t]{\textwidth} \begin{enumerate}[label=(\roman*)] {\setlength\itemindent{10pt}\item  \begin{equation*} \begin{array}{&gt;{\centering\arraybackslash}m{1.5cm}&gt;{\centering\arraybackslash}m{1.5cm}&gt;{\centering\arraybackslash}m{1.5cm}&gt;{\centering\arraybackslash}m{1.5cm}&gt;{\centering\arraybackslash}m{1.5cm}}  \hline x &amp; l_{[x]} &amp; d_{[x]} &amp; l_{x+1} &amp; \mathring{e}_{[x]} \\ \hline \end{array} \end{equation*}} \end{enumerate} \end{minipage}} \end{document}   Note: for various reasons, I have to keep minipage there. For some reason, this code gives me an error when it compiles. It gives the following output:     The errors either say there is a } missing or a $ missing. My eyes don't see such a thing!
57111
\begin{figure}     %\centering         \begin{minipage}[h]{0.58\textwidth}         \centering         \includegraphics[scale=0.4,trim=12mm 15mm 12mm 15mm]{fig1}         \end{minipage}         \begin{minipage}[h]{0.38\textwidth}         \centering         \include{fig2}         \end{minipage} \end{figure}   I get the fig1 nicely placed in the center of the left side BUT fig2 'sank' at the bottom of the right side. I dont really know what's wrong with the code. Actually fig2 is a table which i store as a tex file with codes only, something like:  \begin{tabular}{|c|c|}     \hline     aa  &amp; bb  \\ \hline     0 &amp; 10 \\ \hline     1 &amp; 2 \\ \hline \end{tabular}   Hope someone will help me fix this. Thanks in advance.
26286
How do I code a table to look like this? I'm not the best at LaTeX and can't seem to wrap my head around \multirow. I checked other examples prior to posting but they used \multicolumn and it just confused me even more. Thanks in advance!    \begin{center} \begin{tabular}{ |c|c|c|c|c|}   \hline  TextA &amp; TextB &amp; TextC &amp; TextD &amp; TextE\\  \hline  A &amp; TextF &amp; TextG &amp; TextH &amp; TextI\\  B &amp; TextJ &amp; TextK &amp; TextL &amp; TextM\\  C &amp; \multirow{2}*{TextF} &amp; TextG &amp; TextH &amp; TextI\\  \cline{3-3}  &amp; TextJ &amp; TextK \\ \hline \end{tabular} \end{center}   I was trying something like this.. I'm starting to have problems as I'm trying to multirow within a multirow? I'm not sure of the process here. I would like TextG to be split into 2 and TextH and TextI to be the cells which are split in 3 but not sure how to go about it. Will then TextJ and TextK be the contents of the split TextG cell?
66985
When I run the attached code I get this error:  ************************************ Missing \endcsname inserted. &lt;to be read again&gt;                     \c@float@type  l.23 \end{algorithm} ************************************   Any help would be highly appreciated.  \documentclass[aip, amsmath, amssymb, reprint]{revtex4-1}  \usepackage{graphicx} \usepackage{dcolumn} \usepackage{bm} \usepackage{float} \usepackage{algorithm} \usepackage{algpseudocode}  \begin{document}  \begin{algorithm*}   \caption{Hello}   \label{EPSA}    \begin{algorithmic}[1]    \State $T_m= \min\limits_k (T_c(k)),  k_m= \arg\min\limits_k (T_c(k))$    \end{algorithmic} \end{algorithm*}  \end{document}
44937
I have produced this table in LaTeX:     \begin{table}[hbt]                     \begin{center}                         \begin{tabular}{|l|l|l|l|}                             \hline &amp; \multicolumn{3}{c|}{Examples}\\                             \cline{2-4}                             &amp; description &amp; $M$ &amp; \textbf{u}\\                             \hline translation &amp; through vector $\begin{pmatrix}6\\7\end{pmatrix}$ &amp; $\begin{pmatrix}                                 1 &amp; 0 \\ 0 &amp; 1                             \end{pmatrix}$ &amp; $\begin{pmatrix}6\\7\end{pmatrix}$\\                             \hline reflection &amp; in line $x=2$ &amp; $\begin{pmatrix}                             -1 &amp; 0 \\ 0 &amp; 1                             \end{pmatrix}$ &amp; $\begin{pmatrix}4\\0\end{pmatrix}$\\                             \hline rotation &amp; about \textbf{0} through $\pi$ radians &amp; $\begin{pmatrix}                             -1 &amp; 0 \\ 0 &amp; -1                             \end{pmatrix}$ &amp; $\begin{pmatrix}0\\0\end{pmatrix}$\\                             \hline glide reflection &amp; in line $y=x$, then through $\begin{pmatrix}1\\1\end{pmatrix}$ &amp; $\begin{pmatrix}                             0 &amp; 1 \\ 1 &amp; 0                             \end{pmatrix}$ &amp; $\begin{pmatrix}1\\1\end{pmatrix}$\\                             \hline                             \end{tabular}                             \caption{Examples of Euclidean Transformations} \label{tab1}                     \end{center}                     \end{table}   How do I remove the two external lines from the top left empty corner cell? I want lines only around the other parts.  Also it looks a bit cramped, is there a way I can present it more nicely?
4846
There's something wrong with this code:  \newenvironment{Tbl} {\begin{tabularx}{\textwidth}{|l|X|} \hline} {\end{tabularx}}   but this is fine:  \newenvironment{Tbl} {\begin{tabular}{|l|l|} \hline} {\end{tabular}}   Why? And how can I get the first to work?  Here is the full LaTeX file:  \documentclass[a4paper, 12pt]{article} \usepackage{tabularx}  \newenvironment{Tbl} {\begin{tabularx}{\textwidth}{|l|X|} \hline} {\end{tabularx}}  \begin{document}  \begin{Tbl} \end{Tbl}  \end{document}      latex test.tex   produces:  This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)  %&amp;-line parsing enabled. entering extended mode (./test.tex LaTeX2e &lt;2005/12/01&gt; Babel &lt;v3.8h&gt; and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ng erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish,  french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibyc us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, por tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish,  turkish, ukenglish, ukrainian, loaded. (/usr/share/texmf/tex/latex/base/article.cls Document Class: article 2005/09/16 v1.4f Standard LaTeX document class (/usr/share/texmf/tex/latex/base/size12.clo)) (/usr/share/texmf/tex/latex/tools/tabularx.sty (/usr/share/texmf/tex/latex/tools/array.sty)) (./test.aux)) Runaway argument?  \par  ! File ended while scanning use of \TX@get@body. &lt;inserted text&gt;                  \par  &lt;*&gt; test.tex  ?
81303
I have a code that prints a table with 2 rows. I want to keep format of it and change 2 rows into 3.   \documentclass[conference]{IEEEtran}  \usepackage{pgfplots} \usepackage{siunitx} \usepackage{multirow} \begin{document}  \begin{table}[h] \caption{Family data set results} \label{tbl::Fam} \centering \begin{tabular}{|l|l|c|c|c!{\vrule width 2pt}l|l|c|c|c|} %\noalign{\hrule height 2pt} \hline \textbf{Column}&amp;\textbf{Algorithm}&amp;\textbf{min}&amp;\textbf{max}&amp;\textbf{std}l&amp;\textbf{Column}&amp;\textbf{Algorithm}&amp;\textbf{min}&amp;\textbf{max}&amp;\textbf{std}\\\hline \multirow{2}{*}{age}&amp;Original&amp;9&amp;2.8&amp;100&amp;\multirow{2}{*}{employer\_type}&amp;Original&amp;13&amp;2&amp;10\\ \cline{2-5} \cline{7-10}&amp;PrivBayes&amp;2&amp;95&amp;96&amp;&amp;PrivBayes&amp;2&amp;100&amp;100\\\hline \multirow{2}{*}{education\_level}&amp;Original&amp;7&amp;2&amp;98&amp;\multirow{2}{*}{marital\_status}&amp;Original&amp;10&amp;2&amp;100\\ \cline{2-5} \cline{7-10}&amp;PrivBayes&amp;2&amp;6&amp;96&amp;&amp;PrivBayes&amp;2&amp;6&amp;100\\\hline \hline %\noalign{\hrule height 2pt} \end{tabular} \end{table}  \end{document}   In this picture, I have 2 algorithms {Original, PrivBayes}. I want to change 2 algorithms into 3 algorithms with keeping the format of table. Can you please help me to do it?
68567
\begin{table}     \begin{tabular}{|c|c|c|c|c|}     \hline     \multicolumn{5}{|c|}{\textbf{Table 1:}Unfiltered Water}\\     Concentration of analyte in sample   &amp; Avg &amp; Std Dev &amp;  RSD &amp; 90\% CI \\      \hline     Total hardness (ppm $CaCo_3$ equiv)  &amp; 97  &amp;    2   &amp;  2\%  &amp; \pm 5   \\     Calcium hardness (ppm $Ca^{2+}$)     &amp; 57  &amp;    3   &amp;  5\%  &amp;  \pm 5   \\     Magnesium hardness( ppm $Mg^{2+}$)   &amp; 40  &amp;    3   &amp; 7.5\% &amp;  \pm 5 \\     \hline     \end{tabular}   This table is giving me an error. That says   ! Missing $ inserted. &lt;inserted text&gt; $ l.41 ...Co_3 equiv\) &amp; 97 &amp; 2 &amp; 2\% &amp; \pm 5 \I've inserted a begin-math/end-math symbol since I think   you left one out. Proceed, with fingers crossed.  What is the cause of this error?  I can't seem to find any thing that is mismatched.
52724
In my table, in order to have texts centered in each cell, I am using  \newcolumntype{P}[1]{&gt;{\centering\arraybackslash}p{#1}}    and instead of a simple p{1.5cm}, I am using   &gt;{\centering\arraybackslash}p{1.5cm}    I am also using \toprule, \midrule, and \bottomrule along with \usepackage{booktabs}.  My code is the following:  \documentclass[12pt]{article}    \newcolumntype{P}[1]{&gt;{\centering\arraybackslash}p{#1}} \usepackage{multicol} \usepackage{multirow} \usepackage{booktabs}   \begin{document}   \begin{table}[h] \centering \begin{tabular}{| &gt;{\centering\arraybackslash}p{1.5cm} | &gt;{\centering\arraybackslash}p{1.2cm} | &gt;{\centering\arraybackslash}p{1.2cm} |  &gt;{\centering\arraybackslash}p{1.2cm} | &gt;{\centering\arraybackslash}p{1.2cm} |&gt;{\centering\arraybackslash}p{1.2cm} | &gt;{\centering\arraybackslash}p{1.2cm} | &gt;{\centering\arraybackslash}p{1.2cm} | &gt;{\centering\arraybackslash}p{1.2cm}|} \toprule \multirow{2}{*}{} &amp; \multicolumn{4}{c|}{Payoffs} &amp;  \multicolumn{4}{c}{ROR} \\ \cline{2-9}  &amp; $\theta =1$ &amp; $\theta =2$ &amp; $E(P)$ &amp; $\sigma(P)$ &amp; $\theta =1$ &amp; $\theta =2$ &amp; $E(r)$ &amp; $\sigma(r)$ \\ \midrule Asset 1 &amp; 110 &amp; 95 &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   \\ Asset 2 &amp; 105 &amp; 90 &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   \\ Asset 3 &amp; 120 &amp; 90 &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   \\ \bottomrule \end{tabular} \end{table}    \end{document}    And my result looks very strange like this:    First, the far right vertical line is short; the first row is not closed on the right.  Second, all the vertical lines are cut.  Any thoughts?
14384
still working on that table. Here's my new question reguarding the table borders:  It appears, that i do something wrong setting boarders. Here is my code, and a screenshot:  \documentclass{article} \usepackage{multirow} % Used for the vertical cells \usepackage{rotating} % Used for the vertical cells  \usepackage{xcolor} % Used for cell-colors \usepackage{colortbl} % Used for cell-colors  \usepackage[a4paper]{geometry}% Used to set the pdf margins manually \newgeometry{left=2cm,bottom=0.1cm}  \definecolor{grey}{HTML}{F2F2F2} % Define grey for the cells \definecolor{red}{HTML}{FF0000} % Define red for testing  \begin{document} \scriptsize % Use a small font size  \begin{tabular}{|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0,6cm}|}  \cline{10-17}  \multicolumn{9}{|c|}{} &amp; \multicolumn{2}{p{\dimexpr (0.6cm)*2+2\arrayrulewidth+2\tabcolsep\relax}|}{\cellcolor{grey}Work to retired ratio} &amp; \multicolumn{4}{p{\dimexpr (0.6cm)*4+1\arrayrulewidth+2\tabcolsep\relax}|}{Health care sizing (per thousand)} &amp; \multicolumn{2}{p{\dimexpr (0.6cm)*2+1\arrayrulewidth+2\tabcolsep\relax}|}{\cellcolor{grey}Inverse dependency ratio}\\\cline{3-9}  \multicolumn{2}{|c|}{} &amp; \multicolumn{4}{c|}{\cellcolor{grey}Population (mio.)} &amp; \multicolumn{3}{c}{Workforce (1000)}  &amp; \multicolumn{2}{|c|}{\cellcolor{grey}} &amp; \multicolumn{2}{l|}{Physicians by} &amp; \multicolumn{2}{l}{Nurses by} &amp; \multicolumn{2}{|l|}{\cellcolor{grey}Old agers by}\\\hline  \multicolumn{2}{|c|}{} &amp; \begin{sideways}\cellcolor{grey}\parbox{4cm}{Overall}\end{sideways} &amp; \begin{sideways}\cellcolor{grey}\parbox{4cm}{Young age}\end{sideways} &amp; \begin{sideways}\cellcolor{grey}\parbox{4cm}{Working age}\end{sideways} &amp; \begin{sideways}\cellcolor{grey}\parbox{4cm}{Old age}\end{sideways} &amp; \begin{sideways}\parbox{4cm}{Overall}\end{sideways} &amp; \begin{sideways}\parbox{4cm}{Physicians (Proj: 2025)}\end{sideways} &amp; \begin{sideways}\parbox{4cm}{Nurses (Proj: 2030)}\end{sideways} &amp; \begin{sideways}\parbox{4cm}{\cellcolor{grey}Working age by Old age}\end{sideways} &amp; \begin{sideways}\parbox{4cm}{\cellcolor{grey}Work force by Old age}\end{sideways} &amp; \begin{sideways}\parbox{4cm}{Workforce}\end{sideways} &amp; \begin{sideways}\parbox{4cm}{Working age}\end{sideways} &amp; \begin{sideways}\parbox{4cm}{Workforce}\end{sideways} &amp; \begin{sideways}\parbox{4cm}{Working age}\end{sideways} &amp; \begin{sideways}\parbox{4cm}{\cellcolor{grey}1 physicians}\end{sideways} &amp; \begin{sideways}\parbox{4cm}{\cellcolor{grey}1 nurse}\end{sideways}\\\hline  \multicolumn{2}{|l}{USA} &amp; \multicolumn{4}{l}{\cellcolor{grey}} &amp; \multicolumn{3}{l}{} &amp; \multicolumn{2}{l}{\cellcolor{grey}} &amp; \multicolumn{4}{l}{} &amp; \multicolumn{2}{l|}{\cellcolor{grey}}\\\hline  1990/1 &amp; &amp; 248,6 &amp; 71,3 &amp; 146,1 &amp; 31,2 &amp; 127.500 &amp; 615,4 &amp; 1491,6 &amp; 4,68 &amp; 4,09 &amp; 4,83 &amp; 4,21 &amp; 11,70 &amp; 10,21 &amp; 50,7 &amp; 20,9\\\hline  1 &amp; 2 &amp; 3 \\\hline  \end{tabular}  \end{document}     On 1 the Top border of Population is not visible although i did used \\\cline{3-9}\cline{12-17} on that line.  In 2 both borders are pushed a bit to the right for no reason i can see.  And in 3 again the top borders are not visible despite using \cline{10-17} on that line. What did i do wrong?  Thanks!
112245
The following example works as expected:  \documentclass{article} \usepackage[table]{xcolor} \usepackage{makecell, multirow}     \renewcommand\theadfont{\normalsize\bfseries\color{white}}     \renewcommand{\theadgape}{} \usepackage{hhline}  \begin{document} \centering     \setlength\arrayrulewidth{2pt}     \arrayrulecolor{yellow}     \def\clinecolor{\hhline{&gt;{\arrayrulecolor{yellow}}--%                             &gt;{\arrayrulecolor{gray}}-}}     \setlength\extrarowheight{2pt} \begin{tabular}{ c | c | c }%     \rowcolor{gray} \multicolumn{2}{c|}{\thead{AAA -- BBBB}}    &amp;                                   \\     \clinecolor     \rowcolor{gray} \color{white} AAA   &amp;   \color{white} BBB   &amp;   \multirow{-2}{*}{\thead{CCC}}   \\     \hhline{&gt;{\arrayrulecolor{yellow}}-|-|-}     \rowcolor{gray!25} aaa                 &amp;   bbb                 &amp;   ccc                             \\     \hline     \rowcolor{gray!25} ddd             &amp;   eee                 &amp;   fff     \end{tabular} \end{document}     But the following not:  \documentclass[xcolor=table]{beamer} \usepackage{makecell, multirow}     \renewcommand\theadfont{\normalsize\bfseries\color{white}}     \renewcommand{\theadgape}{} \usepackage{hhline}  \begin{document} \begin{frame} \frametitle{test} \centering     \setlength\arrayrulewidth{2pt}     \arrayrulecolor{yellow}     \def\clinecolor{\hhline{&gt;{\arrayrulecolor{yellow}}--%                             &gt;{\arrayrulecolor{gray}}-}}     \setlength\extrarowheight{2pt} \begin{tabular}{ c | c | c }%     \rowcolor{gray} \multicolumn{2}{c|}{\thead{AAA -- BBBB}}    &amp;                                   \\     \clinecolor     \rowcolor{gray} \color{white} AAA   &amp;   \color{white} BBB   &amp;   \multirow{-2}{*}{\thead{CCC}}   \\     \hhline{&gt;{\arrayrulecolor{yellow}}-|-|-}     \rowcolor{gray!25} aaa                 &amp;   bbb                 &amp;   ccc                             \\     \hline     \rowcolor{gray!25} ddd             &amp;   eee                 &amp;   fff                             \\     \hhline{|-|-|-|}     \end{tabular} \end{frame} \end{document}     Why are the in beamer rules so strangely misplaced? Is there some workaround?
39978
I am trying to implement a table given in the snapshot.  Firstly, I just want to draw a multirow, as it is shown in the image.    \documentclass[12pt, a4paper,twoside]{memoir} \begin{document} \definecolor{c1}{rgb}{0.30980, 0.50588, 0.73725} \definecolor{c2}{rgb}{0.82353, 0.87843, 0.92941}  \setlength{\arrayrulewidth}{1pt} \setlength{\extrarowheight}{1.0pt} \begin{table}[H]   % added on 12172013 for caption and label \centering \caption{Table} \label{tb32b} %\arrayrulecolor{white} \begin{tabular}{|p{4.5em}|p{3.8cm}|p{7cm}|l|} \rowcolor{c1} \multirow{4}{*}{\textcolor{white}{Measure}}      &amp; \multicolumn{2}{l|}{\multirow{4}{*}{\textcolor{white}{Description}}} &amp;                                         \multirow{4}{*}{\textcolor{white}{NO.}}  \\ \hline  \arrayrulecolor{white}  \rowcolor{c2} \multirow{4}{*}{Orientation-based}  &amp; \multicolumn{2}{p{11.25cm}|}{The first orientatiofdsafsafsadfsdafdsfasdfdasfdsafasdfsdafdsaffsdafasdt.}    &amp; \multirow{2}{*}{$M_8$}    \\ \rowcolor{c2}  &amp; \multicolumn{2}{p{11.25cm}|}{The second osafdsafsdafasdfsda the sadfdsas of the misdafdsa points.}      &amp; \multirow{2}{*}{$M_9$} \\ \hline  \rowcolor{c2} \multirow{4}{*}{Pair-based} &amp; Equ1 &amp;  \multirow{4}{*}{sdafdsafasdfdsafasdfdsfasdfdsafdsafdsafasdfdsafasdfasdfsadfasdfsadfsadfasdfdsafdsafdsafdasfdsafdsafasdfasdfsadafdas}  &amp; \multirow{4}{*}{$M_{10\_13}$} \\ \cline{2-3} &amp; Equ2 &amp; &amp; \\ &amp; Equ3 &amp; &amp; \\ &amp;  Equ4 &amp; &amp; \\ \hline \end{tabular} \end{table} \end{document}   I found a thread but I cannot modifiy it successfully. The URL is   And then I have a new snapshot of my code. This one is closer to the expected table. But row line between M8 and M9 fail to display, and row colors of the last three rows were not showed.