Graphics, Figures & TablesLong and wide table with a long sentence in a cell

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
lorellan
Posts: 1
Joined: Sat Aug 28, 2021 11:22 am

Long and wide table with a long sentence in a cell

Post by lorellan »

Hi everyone :) I'm new to the forum.

I'm trying to represent this table in LaTeX.
table.jpg
table.jpg (106.87 KiB) Viewed 2788 times
but the result is awful (as you can see the first cell in the second row is too wide and I don't know how to start a new line autmatically:
result.jpg
result.jpg (18.15 KiB) Viewed 2788 times
Here is a Minimum Working Example of the code I've used:

Code: Select all

\documentclass{article}
\usepackage{rotating}
\usepackage{pdflscape}
\usepackage{rotating}
\usepackage{trig}
\usepackage{tabu}
\usepackage{caption}
\usepackage{pdflscape}
\usepackage{tabulary}
\usepackage{array}

\begin{document}

\begin{sidewaystable}
\begin{tabular}{lllllllllllllllllll}

\hline
& \begin{sideways}Atkinson (1998)\end{sideways} & \begin{sideways}Atkinson et al. (1997)\end{sideways} & \begin{sideways}Bititci et al (1997)\end{sideways} & \begin{sideways}Bourne et al (2002)\end{sideways} & \begin{sideways}Forza \& Salvador (2000)\end{sideways} & \begin{sideways}Gates (1999)\end{sideways} & \begin{sideways}Ittner et al (2003)\end{sideways} & \begin{sideways}Kaplan \& Norton (1996)\end{sideways} & \begin{sideways}Kerssens-van Drongelen \& Fisscher (2003)\end{sideways} & \begin{sideways}Lebas (1995)\end{sideways} &  \begin{sideways}Lynch \& Cross (1990)\end{sideways} & \begin{sideways}Maisel (2001)\end{sideways} & \begin{sideways}McGee (1992)\end{sideways} & \begin{sideways}Neely (1998)\end{sideways} & \begin{sideways}Neely et al. (1995)\end{sideways} & \begin{sideways}Otley (1999)\end{sideways} & \begin{sideways}Rogers (1990)\end{sideways} & \begin{sideways}PERCENTUALE SUL TOTALE\end{sideways} \\
\hline
Metriche di performance (multidimensionali, di efficienza/efficacia, interne/esterne, verticalmente e orizzontalmente integrate, multilivello) & & & & X & & & X & & X & & X & X & & X & X & X & X & 53\\ 
\hline
\end{tabular}
\end{sidewaystable} 
\end{document}
Last edited by Stefan Kottwitz on Sat Aug 28, 2021 12:36 pm, edited 1 time in total.
Reason: code tag fixed

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Long and wide table with a long sentence in a cell

Post by Bartman »

Please read in a LaTeX introduction (e.g. in the linked one), which column types there are.

OT:

It is enough to load a package once.

Instead of using a big X to mark the cells, you could also use the \texttimes command or a symbol from the Comprehensive LaTeX Symbol List.
Post Reply