Re: Errore Beamer

#90515
Up
0
Down
::

ema” post=90030Ciao a tutti,

come il titolo lascia intendere, vi scrivo a causa di un errore che ottengo nella compilazione di alcune slides con Beamer nel momento in cui inserisco una tabella ottenuta da un altro programma, ma sempre in formato tex. Il fatto strano è che con un altra tabella, per lo più identica, non ottengo lo stesso errore.
Francamente, non riesco proprio a capirne il motivo: le 2 tabelle non differiscono che per delle sfumature!

Di seguito il codice delle slides e le due tabelle, ma se credete, posso metterle in allegato!

Grazie a tutti in anticipo!

Il file originale delle slides:

\begin{frame}{Institutions in the Gravity Model}
\begin{table}
\resizebox{10cm}{!}{
\input{“/Users/johannesbuggle/Dropbox/project_johannes/outreg/inst.tex”}
}
\end{table}
\end{frame}

Tabella non funzionante:

\begin{tabular}{lcccccc} \hline
& (1) & (2) & (3) & (4) & (5) & (6) \\\
VARIABLES & lx & lnbexp & lsha & lx & lnbexp & lsha \\\ \hline
& & & & & & \\\
lyo & 0.431*** & -0.019 & 0.447*** & 0.459*** & -0.041 & 0.496*** \\\
& (0.088) & (0.041) & (0.076) & (0.086) & (0.043) & (0.072) \\\
lyd & 0.471*** & 0.350*** & 0.124** & 0.445*** & 0.367*** & 0.082 \\\
& (0.070) & (0.043) & (0.052) & (0.069) & (0.042) & (0.051) \\\
ld & -1.977*** & -1.476*** & -0.505*** & -1.961*** & -1.482*** & -0.483*** \\\
& (0.033) & (0.025) & (0.018) & (0.033) & (0.024) & (0.018) \\\
wgi\_o & 0.170 & -0.261 & 0.427 & & & \\\
& (0.552) & (0.279) & (0.476) & & & \\\
wgi\_d & 0.394 & 0.178 & 0.203 & & & \\\
& (0.448) & (0.270) & (0.328) & & & \\\
inst\_distance\_abs & & & & -0.442*** & 0.142 & -0.576*** \\\
& & & & (0.149) & (0.102) & (0.093) \\\
& & & & & & \\\
Observations & 31,569 & 31,569 & 31,569 & 31,569 & 31,569 & 31,569 \\\
R-squared & 0.748 & 0.824 & 0.401 & 0.748 & 0.824 & 0.403 \\\ \hline
\multicolumn{7}{c}{ All regressions include country and time dummies.} \\\
\multicolumn{7}{c}{ Robust st. errors clustered at the country-pair level.} \\\
\end{tabular}

Tabella funzionante:

\begin{tabular}{lccccccccc} \hline
& (1) & (2) & (3) & (4) & (5) & (6) & (7) & (8) & (9) \\
VARIABLES & lx & lnbexp & lsha & lx & lnbexp & lsha & lx & lnbexp & lsha \\ \hline
& & & & & & & & & \\
lyo & 0.457*** & -0.032 & 0.488*** & 0.450*** & -0.014 & 0.462*** & 0.469*** & -0.042 & 0.509*** \\
& (0.088) & (0.043) & (0.073) & (0.089) & (0.042) & (0.077) & (0.087) & (0.043) & (0.073) \\
lyd & 0.470*** & 0.350*** & 0.123** & 0.458*** & 0.346*** & 0.114** & 0.443*** & 0.374*** & 0.071 \\
& (0.070) & (0.043) & (0.051) & (0.071) & (0.043) & (0.052) & (0.069) & (0.043) & (0.051) \\
ld & -1.900*** & -1.421*** & -0.483*** & -1.901*** & -1.421*** & -0.483*** & -1.895*** & -1.426*** & -0.473*** \\
& (0.035) & (0.025) & (0.020) & (0.035) & (0.025) & (0.020) & (0.035) & (0.024) & (0.020) \\
wgi\_o & & & & 0.092 & -0.268 & 0.362 & & & \\
& & & & (0.563) & (0.284) & (0.487) & & & \\
wgi\_d & & & & 0.451 & 0.146 & 0.298 & & & \\
& & & & (0.455) & (0.274) & (0.331) & & & \\
log\_distance\_weighted & -0.098*** & -0.084*** & -0.014 & -0.098*** & -0.084*** & -0.014 & -0.086*** & -0.095*** & 0.009 \\
& (0.029) & (0.019) & (0.017) & (0.029) & (0.019) & (0.017) & (0.030) & (0.019) & (0.018) \\
inst\_distance\_abs & & & & & & & -0.340** & 0.303*** & -0.634*** \\
& & & & & & & (0.157) & (0.104) & (0.099) \\
& & & & & & & & & \\
Observations & 30,588 & 30,588 & 30,588 & 30,588 & 30,588 & 30,588 & 30,588 & 30,588 & 30,588 \\
R-squared & 0.752 & 0.828 & 0.403 & 0.752 & 0.828 & 0.403 & 0.753 & 0.828 & 0.405 \\ \hline
\multicolumn{10}{c}{ All regressions include country and time dummies.} \\
\multicolumn{10}{c}{ Robust st. errors clustered at the country-pair level.} \\
\end{tabular}

Beh, probabilmente sono sfumature importanti.

Detto questo, potresti includere il codice fra i tag [code] [/code ] (senza l’ultimo spazio finale e la parentesi) e creare un esempio minimo (con documentclass, pacchetti rilevanti e \end{document})?

Ciao
Claudio

Go to top