Graphics, Figures & Tableshorizontal lines in sidewaystable

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
m9819515
Posts: 2
Joined: Mon Feb 21, 2011 1:18 pm

horizontal lines in sidewaystable

Post by m9819515 »

Dear,

I want my horizontal lines to cover the whole table width of a 9-column sideways table, but fail to get there. I've already tried \hhline, \rule{} and \hrulefill but none of these commands have worked so far. Please find the important code of my table below:

Code: Select all

{
\def\sep{0.5em}
\resizebox{21cm}{!}{
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lccccccccc}
\hline\hline\noalign{\smallskip}
equation no.& \multicolumn{1}{c}{(1)\mbox{\ }} & \multicolumn{1}{c}{(2)\mbox{\ }} &	\multicolumn{1}{c}{(3)\mbox{\ }} &	\multicolumn{1}{c}{(4)}  &	\multicolumn{1}{c}{(5)}  &	\multicolumn{1}{c}{(6)}  &	\multicolumn{1}{c}{(7)} &	\multicolumn{1}{c}{(8)} &	\multicolumn{1}{c}{(9)}\\
\noalign{\smallskip}\hline\noalign{\smallskip}
variation & \multicolumn{1}{c}{base model} &	\multicolumn{1}{c}{sample I} &	\multicolumn{1}{c}{sample II} &	\multicolumn{1}{c}{bjornskov} &	\multicolumn{1}{c}{3-point var.} &	\multicolumn{1}{c}{probit} &	\multicolumn{1}{c}{ o. probit} &	\multicolumn{1}{c}{controls I} & \multicolumn{1}{c}{controls II} \\ 	
\noalign{\smallskip}\hline\noalign{\smallskip} 							
left-wing ideology &	.421 &	.598 &	.461 &-.400	&.237 	&	.874 &  &.432 & .504 \\
&	\raisebox{.7ex}[0pt]{\scriptsize (.232)$^{*}$} &	\raisebox{.7ex}[0pt]{\scriptsize (.328)$^{*}$} &	\raisebox{.7ex}[0pt]{\scriptsize (.230)$^{**}$} &	\raisebox{.7ex}[0pt]{\scriptsize (.216)$^{*}$}&	\raisebox{.7ex}[0pt]{\scriptsize (.121)$^{*}$}&	\raisebox{.7ex}[0pt]{\scriptsize (.358)$^{**}$} &	& \raisebox{.7ex}[0pt]{\scriptsize (.215)$^{**}$} & \raisebox{.7ex}[0pt]{\scriptsize (.251)$^{**}$} \\

ELF85 &.	&.	&.	&.	&.	&.	& . &	-.749 & -.506 \\
&	&	&	&	&	&	&	& \raisebox{.7ex}[0pt]{\scriptsize (.764)} &	\raisebox{.7ex}[0pt]{\scriptsize (.755)} \\
\emph{regional fixed effects} &	 \emph{yes} & \emph{yes}	& \emph{yes}	& \emph{yes} & \emph{yes} & \emph{yes} & \emph{yes}	 & \emph{yes} & \emph{yes} \\[\sep]
\emph{time fixed effects} &	 \emph{no} & \emph{no}	& \emph{no}	& \emph{no} & \emph{no} & \emph{no} & \emph{no}	& \emph{no}& \emph{yes} \\[\sep]
\hline\noalign{\smallskip} 
No. of uncensored observations &	182 &	115 &	215 &	161 &	182 &	177 & &	167 & 167 \\
No. of countries & 54 & 50 & 55 & 52 & 54 & 53 & -- & 52 & 52 \\
$R^2$ &	.209 &	.208 &	.131 &	.238 &	.21 &	.259 & & .211 & .359 \\
\hline\hline							
\end{tabular*}%							
}
}			
As said, the table is imported in a main tex document as such:

Code: Select all

\begin{sidewaystable} 
\caption{Heckman model, outcome equation; quality at entry as dependent variable}\bigskip
\input{LR_outcome_ii.tex}
\begin{flushleft}
\scriptsize * significance at 10\%; ** significance at 5\%; *** significance at 1\%; constant not reported. 
\end{flushleft}
\label{LR_outcome_ii}
\end{sidewaystable}
Many thanks!!

Lode

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply