Re: Problemi tabelle: sparizioni marcatori con righe colorate

#61449
Up
0
Down
::

Buongiorno
Ho un problema con una tabella in una presentazione fatta con beamer
La tabella appare perfetta se rimane bianca coi marcatori righe e colonne neri.
Appena ho colorato una colonna o tutta la tabella con il comando \rowcolor alcuni marcatori spariscono nella presentazione (sempre gli stessi)

Vi copio il codice:

`
\documentclass[aspectratio=1610, 9pt, xcolor=pdftex, dvipsnames, table]{beamer}
\usepackage[italian]{babel}
\usepackage[latin1]{inputenc}
\usepackage{ragged2e}
\usepackage{subfigure}
\usepackage{hyperref}

\begin{frame}
\begin{table}
\begin{center}
\begin{tiny}
\renewcommand\arraystretch{1.2}
%\rowcolors[]{1}{blue!20}{blue!10}
\begin{tabular}{||l|c|c|c|c||}
\hline
\hline \textbf{\emph{Parametri }\hspace{20mm} Modelli} & \textbf{1} – ID 3014760 & \textbf{2} – ID 3013476 & \textbf{3} – ID 3017248 & \textbf{4} – ID 3007074\\
\rowcolor{red!20} \hline \textit{Stellar Age (yr)} & \textbf{3.98e+5} & \textbf{1.73e+5} & \textbf{3.40e+5} & \textbf{7.17e+4}\\
\hline \textit{Stellar Mass (Msol)} & \textbf{0.31} & \textbf{0.18} & \textbf{0.24} & 0.11\\
\hline \textit{Stellar Radius (Rsol)} & \textbf{2.62} & \textbf{2.30} & \textbf{2.20} & \textbf{2.48}\\
\hline \textit{Stellar Temperature (K)} & \textbf{3391} & \textbf{3022} & \textbf{3186} & 2810\\
\hline \textit{Disk Mass (Msol)} & \textcolor[rgb]{0.98,0.00,0.00}{\textbf{1.16e-3}} & \textcolor[rgb]{0.98,0.00,0.00}{\textbf{5.08e-5}} & \textcolor[rgb]{0.98,0.00,0.00}{\textbf{9.61e-4}} & \textcolor[rgb]{0.98,0.00,0.00}{\textbf{2.83e-4}}\\
\hline \textit{Disk Accretion Rate (Msol/yr)} & 1.74e-10 & 1.77e-9 & 1.33e-9 & 2.85e-9\\
\hline \textit{Envelope Mass (Msol)} & \textbf{3.60e-2} & \textbf{1.01e-2} & \textbf{1.92e-2} & \textbf{1.74e-2}\\
\hline \textit{Envelope Accretion Rate (Msol/yr)} & \textbf{1.65e-6} & \textbf{9.29e-7} & \textbf{2.17e-6} & \textbf{1.89e-6}\\
\hline
\hline
\end{tabular}
\end{tiny}
\caption{Parametri dei 4 modelli che meglio si adattano ai dati}
\end{center}
\end{table}
\end{frame}
`

e il risultato con \rowcolor{red!20} a una riga: http://img715.imageshack.us/img715/1610/87842001.jpg

e con \rowcolors[]{1}{blue!20}{blue!10} a tutta la tabella: http://img8.imageshack.us/img8/5735/85341728.jpg

Da che può dipendere e come risolvo? E’ la mia presentazione di laurea e mi serve “urgentemente” 😯
Grazie dell’aiuto 🙂

Benvenuto/benvenuta!

Non ha alcun senso usare l’ambiente table in una presentazione. Né ha senso usare delimitatori verticali con le righe colorate; e anche senza: le righe verticali nelle tabelle non vanno usate mai.
`\begin{frame}
Parametri dei 4 modelli che meglio si adattano ai dati

\bigskip

\tiny
\renewcommand\arraystretch{1.2}
\rowcolors[]{1}{blue!20}{blue!10}
\begin{tabular}{lcccc}
\hline
& \multicolumn{4}{c}{\cellcolor{blue!20}\textbf{Modelli}} \\
\textbf{\emph{Parametri}} &
\textbf{1} – ID 3014760 &
\textbf{2} – ID 3013476 &
\textbf{3} – ID 3017248 &
\textbf{4} – ID 3007074\\
\hline
\rowcolor{red!20}
\textit{Stellar Age (yr)} &
\textbf{3.98e+5} &
\textbf{1.73e+5} &
\textbf{3.40e+5} &
\textbf{7.17e+4}\\
\textit{Stellar Mass (Msol)} & \textbf{0.31} & \textbf{0.18} & \textbf{0.24} & 0.11\\
\textit{Stellar Radius (Rsol)} & \textbf{2.62} & \textbf{2.30} & \textbf{2.20} & \textbf{2.48}\\
\textit{Stellar Temperature (K)} & \textbf{3391} & \textbf{3022} & \textbf{3186} & 2810\\
\textit{Disk Mass (Msol)} & \textcolor[rgb]{0.98,0.00,0.00}{\textbf{1.16e-3}} & \textcolor[rgb]{0.98,0.00,0.00}{\textbf{5.08e-5}} & \textcolor[rgb]{0.98,0.00,0.00}{\textbf{9.61e-4}} & \textcolor[rgb]{0.98,0.00,0.00}{\textbf{2.83e-4}}\\
\textit{Disk Accretion Rate (Msol/yr)} & 1.74e-10 & 1.77e-9 & 1.33e-9 & 2.85e-9\\
\textit{Envelope Mass (Msol)} & \textbf{3.60e-2} & \textbf{1.01e-2} & \textbf{1.92e-2} & \textbf{1.74e-2}\\
\textit{Envelope Accretion Rate (Msol/yr)} & \textbf{1.65e-6} & \textbf{9.29e-7} & \textbf{2.17e-6} & \textbf{1.89e-6}\\
\hline
\end{tabular}
\end{frame}`
Ciao
Enrico

Go to top