Re: Centrare il contenuto di una colonna X

#67614
Up
0
Down
::


Anche io mi trovo nella stessa situazione…. il codice è il seguente:

`

\begin{tabularx}{\columnwidth}{ l *{3}{>\centering X}}

\toprule

\multirow{3}*{\bf Tipo di utente} & \multicolumn{3}{c}{ \bf Insiemi di funzioni} \\

\cmidrule(lr){2-4}

& Caricamento dati & Consultazione dati privati & Consultazione dati pubblici\\

\midrule

Utente ROOT & \checkmark & & \checkmark \\

Utente comune & & \checkmark & \checkmark \\

Utente pubblico & & & \checkmark \\

\bottomrule

\end{tabularx}

`

ma mi da quest’errore:

`

! Misplaced \noalign.
\midrule ->\noalign
{\ifnum 0=`}\fi \@aboverulesep =\aboverulesep \global \@…
l.202 \end{tabularx}
I expect to see \noalign only after the \cr of
an alignment. Proceed, and I'll ignore this case.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.
! Misplaced \noalign.
\midrule ->\noalign
{\ifnum 0=`}\fi \@aboverulesep =\aboverulesep \global \@…
l.202 \end{tabularx}
I expect to see \noalign only after the \cr of
an alignment. Proceed, and I'll ignore this case.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.
! Misplaced \noalign.
\midrule ->\noalign
{\ifnum 0=`}\fi \@aboverulesep =\aboverulesep \global \@…
l.202 \end{tabularx}
I expect to see \noalign only after the \cr of
an alignment. Proceed, and I'll ignore this case.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.
! Extra alignment tab has been changed to \cr.
\endtemplate
l.202 \end{tabularx}
You have given more \span or & marks than there were
in the preamble to the \halign or \valign now in progress.
So I'll assume that you meant to type \cr instead.

`

come fare?

Go to top