I tried to insert on a document a table (tabular
) but the rendering of the code is a table without padding. Where is the error?
code:
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.77]{geometry}
\usepackage{multicol}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{graphicx}
\pagestyle{fancy}
\fancyhf{}
...
\cvitemwithcomment{}{
\begin{tabular}{@{}llll@{}}
\toprule
XXXXXXXXXX & MMMMMM & XXXXXXXXXXX & MMMMMMMM \\ \midrule
Lorem & Ipsum & dolor & sit \\
amet, & consectetur & adipiscing & elit. \\
Aenean & a & lacus & sit \\ \bottomrule
\end{tabular}
}
{}
the result is:
\cvitemwithcomment{}
macro is defined. Please also tell us which commands you execute -- or which font-related package(s) you load -- to switch to a sans-serif font. And, do tell us if the length parameter\tabcolsep
is reset (to zero length...) anywhere in your document.\tabcolsep
was somewhere reset to 0pt. You can try\tabcolsep=1ex\relax
just prior to\begin{tabular}
to see if it has an effect.@{}