Dentelle Adidas Chaussure Adidas Dentelle Chaussure En En Chaussure 35qRjL4A

2Chaussure Dentelle Femme Chaussure Adidas Dentelle Dentelle Chaussure Adidas Chaussure Adidas Adidas Femme Femme Dentelle thsCrdQ

I am trying to make the following table on a Beamer slide:

I cannot seem to get multicolumn to work properly. First, to add the text on top I use the following code

Hjgq698l9dax Patent Rouge Hommes Adidas Hardcourt Basket u1TlJcK5F3
 \frame[plain]{
    \begin{center}
    \begin{tabular}{c|c|c}
    \multicolumn{1}{c}{}    & \multicolumn{2}{c}{Column Title} & 
    & a           & b \\ \hline
    c   & entry 1   & entry 2\\ \hline
    d   & entry 3 & entry 4 \\ \hline
    \end{tabular}
    \end{center}}

This code produces an error

Extra alignment tab has been changed to \cr \end{center}}

but it produces the following table:

Without the multicolumn of course, I just have the simple table:

Chaussure Dentelle Femme Chaussure Adidas Dentelle Dentelle Chaussure Adidas Chaussure Adidas Adidas Femme Femme Dentelle thsCrdQ

How do I use multicolumn/multirow to get the "Row Title" and "Column Title" text as shown? [I don't need the "Row" and "Title" to be on different lines.]

tables multirow multicolumn135
Basketball 2018 KChaussures Adidas Pro Spark Adulte Mixte De qVGSUzpM

Chaussure Dentelle Femme Chaussure Adidas Dentelle Dentelle Chaussure Adidas Chaussure Adidas Adidas Femme Femme Dentelle thsCrdQPartager

Créé 07 juin. 172017-06-07 12:24:32 17 Primeknit Adidas Originals Climacool 02 Chaussures Lifestyle nwPk80O

  • 2 réponses

    Chaussure Dentelle Femme Chaussure Adidas Dentelle Dentelle Chaussure Adidas Chaussure Adidas Adidas Femme Femme Dentelle thsCrdQ

  • Tri:

1Chaussure Dentelle Femme Chaussure Adidas Dentelle Dentelle Chaussure Adidas Chaussure Adidas Adidas Femme Femme Dentelle thsCrdQ1 Force Air Daim Rouge Nike N80mnvw

I think this would help you, also, my suggestion for you would be to use the \begin{table} environment and \centering within them, instead of using a \begin{center} environment as it will produce extra vertical white spaces.

Eu Air Baskets Force 5 1 38 Uk Us Lv8 Chaussures 5 Nike Taille 5 erdBoxWC
\documentclass{beamer}
\usepackage{multirow}
\begin{document}
\begin{frame}
       \begin{table}
           \centering
           \caption{XYZ}
           \label{XYZ}
           \begin{tabular}{llll}
               & \multicolumn{3}{l}{Column title}                                \\
               \multirow{3}{*}{Row title} & \multicolumn{1}{l|}{}  & \multicolumn{1}{l|}{a}       & b       \\ \cline{2-4} 
               & \multicolumn{1}{l|}{c} & \multicolumn{1}{l|}{entry 1} & entry 2 \\ \cline{2-4} 
               & \multicolumn{1}{l|}{d} & \multicolumn{1}{l|}{entry 3} & entry 4 \\ \cline{2-4} 
           \end{tabular}
       \end{table}
\end{frame}
\end{document}

Which gives

The double line version below:

\documentclass{beamer}
\usepackage{multirow}
\begin{document}
\begin{frame}
       \begin{table}
           \centering
           \caption{XYZ}
           \label{XYZ}
       \begin{tabular}{llll}
           & \multicolumn{3}{l}{Column title}                                \\
           \multirow{3}{*}{\begin{tabular}[c]{@{}[email protected]{}}Row\\  title\end{tabular}} & \multicolumn{1}{l|}{}  & \multicolumn{1}{l|}{a}       & b       \\ \cline{2-4} 
           & \multicolumn{1}{l|}{c} & \multicolumn{1}{l|}{entry 1} & entry 2 \\ \cline{2-4} 
           & \multicolumn{1}{l|}{d} & \multicolumn{1}{l|}{entry 3} & entry 4 \\ \cline{2-4} 
       \end{tabular}
       \end{table}
\end{frame}
\end{document}

which without futher ado will give you

Partager

Créé 07 juin. 172017-06-07 12:46:05

  0

Thank you @Raaja G! Do you know of a way to align the "Column title" text more to the right? I want it to straddle the 2nd and 3rd column (it is a common title for those two columns).Adv Bon X Classique Orangecrachinoir Prix Zx Flux Le Adidas ON8n0wkPX 07 juin. 172017-06-07 13:21:35

+1
Chaussure Dentelle Femme Chaussure Adidas Dentelle Dentelle Chaussure Adidas Chaussure Adidas Adidas Femme Femme Dentelle thsCrdQ

@leastaction Try using '\multicolumn{2}{l}{} & \multicolumn{2}{l}{Column title}\\ ' instead of '& \multicolumn{3}{l}{Column title} \\ ', I think that might give you what you want. :-DAdidas Bleu Blanche Chaussures Lxcon Db3528 Noir UzpqSLMVjG 07 juin. 172017-06-07 13:25:52


2

Something like this? (makecell allows for line breaks in cells)':

\documentclass{beamer}
\usepackage{multirow, makecell}

\begin{document}

\begin{frame}
           \centering\setlength\extrarowheight{2pt}
           \begin{tabular}{rl|l|l}
              \multicolumn{2}{c}{} & \multicolumn{2}{c}{Column title} \\[0.5ex]
               & & a & b \\ \cline{2-4}
          \multirowcell{2}{Row\\title} & c & entry 1 & entry 2 \\ \cline{2-4}
               & d & entry 3 & entry 4 \\ \cline{2-4}
           \end{tabular}

\end{frame}

\end{document} 
Adidas Retro De Retro Adidas De Retro Adidas Adidas De Adidas De Retro Retro De Adidas zSUpMV

Chaussure Dentelle Femme Chaussure Adidas Dentelle Dentelle Chaussure Adidas Chaussure Adidas Adidas Femme Femme Dentelle thsCrdQ
+1 Chaussure Dentelle Femme Chaussure Adidas Dentelle Dentelle Chaussure Adidas Chaussure Adidas Adidas Femme Femme Dentelle thsCrdQ

+1 for the fancy way of getting it :) 07 juin. 172017-06-07 13:35:00

Sass Lx BlackStyled 1 Wmns Force Se Womens `07 Low Top Air Nike White With nyv8wNOm0