0

I'm trying to build a table using tabularx but I'm get the following error:

! Undefined control sequence.
<template> ...centering \arraybackslash \compress 
                                              \ignorespaces 

Can anyone explain why I'm getting this?

Here's my code

\documentclass{article}

\usepackage[letterpaper, landscape, margin=1in]{geometry}
\usepackage[default,osf]{sourceserifpro}
\usepackage{booktabs}%For tables
\usepackage{enumitem}%For lists
\usepackage{tabularx}%For tables

\begin{document}

% Table
\begin{table*}[t]
\footnotesize
\setlength\tabcolsep{3pt}
\setlist[itemize]{leftmargin=3pt, itemsep=1pt, label=$\bullet$}
\setlist[itemize,1]{itemindent=12pt, topsep=0pt}
\setlist[itemize,2]{itemindent=30pt, topsep=0pt}
\setlength{\extrarowheight}{2pt}
  \begin{tabularx}{\linewidth}{*{3}{>{\centering\arraybackslash\compress}X}}
    \toprule
    \textbf{Disease modeling} & \textbf{Drug Screening} & \textbf{Personalized Medicine}\\
    \midrule[\heavyrulewidth]
    \begin{itemize}
        \item Metastasis modeling
        \begin{itemize}
            \item Invasion/intravasation
            \item Survival/dormancy
            \item Extravasation
            \item Metastatic niche
            \item Epithelial-mesenchymal transition
        \end{itemize}
        \item Tumor heterogeneity/evolution
        \item Mechanical forces
        \item Tumor-ECM interactions
        \item Tumor-stromal interactions
        \item Organ-specific microenvironments
        \item Immuno-oncology studies
        \item Species-specific models
    \end{itemize}
    &
    \begin{itemize}
        \item PK-PD modeling
        \begin{itemize}
            \item Absorption
            \item Distribution
            \item Metabolism
            \item Excretion
        \end{itemize}
        \item Toxicity
        \item High-throughput designs
        \item Efficacy testing
        \item Novel compound validation
        \item Tumor resistance/sensitivity
        \item Mechanistic studies
    \end{itemize}
    & 
    \begin{itemize}
        \item Incorporation of primary cells
        \begin{itemize}
            \item Induced pluripotent stem (iPS) cells
            \item Adult tissue resident stem cells
            \item Biopsy-, blood- or tissue-derived cells
            \item Cancer stem cells
            \item Patient-derived organoids
            \item Genetically modified cells
        \end{itemize}
        \item Integration with Big Data
        \begin{itemize}
            \item `Omics' signatures/readouts
            \item Genome wide association studies (GWAS)
            \item Computational modeling
        \end{itemize}
        \item Biomarker discovery/validation
        \item Individualized trials-on-chip
        \item Tailored clinical management
    \end{itemize} \\
    \bottomrule
  \end{tabularx}
\caption{Applications of Tumor Chip Technology}
\label{tab:1}
\end{table*}

\end{document}
  • 2
    \compress isn't defined by latex or by any package that comes to mind, what do you want it to do, where did you see it documented? – David Carlisle Jun 20 at 18:43
  • 1
    Try adding \makeatletter\newcommand*{\compress}{\@minipagetrue}\makeatother to your preamble. This \compress command seems to be a thing here in TeX.SX: tex.stackexchange.com/a/442442/134574 tex.stackexchange.com/a/489185/134574 tex.stackexchange.com/a/114287/134574... – Phelype Oleinik Jun 20 at 18:46
  • 2
    @PhelypeOleinik searching the site for answers again? It'll never catch on:-) – David Carlisle Jun 20 at 18:47
  • 1
    It is a command which is used to remove the vertical spacing added to a list in a tabular cell. – Bernard Jun 20 at 18:49
  • 1
    @agf1997 If TeX tells you Undefined control sequence, the undefined command is always the one at the end of the first line of error which, in this case, is the \compress, which Bernard just explained. – Phelype Oleinik Jun 20 at 18:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.