2

I'm trying to have a table that uses the entire page width in 3 columns and use a bullet point in each item. I came up with the following code

\begin{tabularx}{\textwidth}{Y Y Y}

$\bullet$ Item A & $\bullet$ Item B & $\bullet$ Item C \\
\end{tabularx}

However every time I compile it, I get a series of erros on the same line, as shown in the attached picture.

Problem

Here is a minimum example that reproduces the error

\documentclass{article}
\usepackage[brazilian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tabularx}
\newcolumntype{Y}{>{\left\arraybackslash}X}

\usepackage{geometry}
\geometry{
    a4paper,
    total={170mm,267mm},
    left=20mm,
    top=20mm,
}
\begin{document}

\begin{tabularx}{\textwidth}{Y Y Y}

    $\bullet$ Item A & $\bullet$ Item B & $\bullet$ Item C \\


\end{tabularx}
\end{document} 
  • 1
    Please give us a mwe (tex.meta.stackexchange.com/questions/228/…) – flav Nov 28 '17 at 14:17
  • 1
    Welcome to TeX.SE! Please tell us how the Y column type is defined. – Mico Nov 28 '17 at 14:19
  • Hi guys, just edited the post to reply your comments – victorpbr Nov 28 '17 at 17:11
  • What's the \left doing in the definition of Y? – Torbjørn T. Nov 28 '17 at 17:13
  • If you want to have left alignment, then \raggedright is the command to use, not \left, which is a command for math material. – egreg Nov 28 '17 at 18:36
2

If your aim is to make columns with left alignment, then do

\newcolumntype{Y}{>{\raggedright\arraybackslash}X}

The command \left has a completely different meaning.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.