Re: Problema centrare la tabella rispetto al documento

#89284
Up
0
Down
::


Con la gabbia usuale in un documento article su A4 ottengo il messaggio
`Overfull \hbox (123.25862pt too wide)`
La tua tabella sfora di oltre quattro centimetri e non ci sono santi. Con
`\documentclass[a4paper]{article}
\usepackage{booktabs}
\begin{document}
\begin{center}
\begin{tabular}{lcccc}
\toprule
\textbf{Course Name} & \textbf{Credit} & \textbf{Italian} & \textbf{US} & \textbf{English} \\
& \textbf{Hours} & \textbf{Grade} & \textbf{Grade} & \textbf{Grade} \\
\midrule
Advanced Financial Accounting & 5 & 28/30 & A & 0.65 \\
Advanced Microeconomics & 5 & 28/30 & A & 0.65 \\
Applied Econometrics & 8 & 29/30 & A & 0.67 \\
Applied Statistics For Finance & 6 & 30/30 & A & 0.73 \\
Corporate Finance & 8 & 29/30 & A & 0.67 \\
Derivative Securities Pricing & 8 & 25/30 & B & 0.57 \\
Foreign Language (Spanish) & 4 & 30/30 & A & 0.73 \\
Principles of Financial Regulation & 10 & 28/30 & A & 0.65 \\
Quantitative Methods For Finance & 8 & 27/30 & A & 0.63 \\
\midrule
\textbf{Academic Average} & & \textbf{28.07} & \textbf{3.87} & \textbf{0.66}\\
\bottomrule
\end{tabular}
\end{center}
\end{document}`
lo sforamento è di soli 0.22pt, almeno con questa impostazione, e non è un grave problema; inoltre dipende dalle tue impostazioni.

Alcune note.

(1) [tt]\arraystretch[/tt] definito a 0.5 produce un risultato orrendo.

(2) Usa solo i filetti di booktabs e mai doppi.

(3) Se intendi usare [tt]table[/tt] non dare la sola opzione [tt][h][/tt], perché significa andare in cerca di guai; meglio [tt][htp][/tt]. In questo caso la didascalia è obbligatoria.

Ciao
Enrico

Go to top