Results 1 to 3 of 3

Math Help - two sideways latex tables on one page, next to each other

  1. #1
    Newbie
    Joined
    Jun 2011
    Posts
    2

    two sideways latex tables on one page, next to each other

    Hi all,
    I'm a beginner Latex user. I managed to get my results into 2 tables, footnote size font, in sideways format (landscape) on 1 table a page. I'd like to have them on the landscape page layout both of them together (table one, under it table 2).

    This is the code for one of the tables (the other one is just a continuation; looks exactly like it but is right now automatically on the next page):

    % latex table generated in R 2.12.2 by xtable 1.5-6 package
    % Tue Jun 28 11:40:45 2011
    \begin{sidewaystable}[ht]
    \caption{\label{tab_results_1}Impact of Sectoral FDI on Human Rights in 11 Models - Part 1}
    \begin{center}
    \footnotesize \begin{tabular}{| r | l@{}ll | l@{}ll | l@{}ll | l@{}ll | l@{}ll | l@{}ll |}
    \hline
    & \multicolumn{3}{|c|}{Model 1} & \multicolumn{3}{|c|}{Model 2} & \multicolumn{3}{|c|}{Model 3} & \multicolumn{3}{|c|}{Model 4} & \multicolumn{3}{|c|}{Model 5} & \multicolumn{3}{|c|}{Model 6} \\
    \hline
    total\_FDI & 0.029 & & (0.041) & & & & & & & & & & & & & & & \\
    Petroleum & & & & 0.025 & & (0.067) & & & & & & & & & & & & \\
    Mining & & & & & & & -0.019 & & (0.051) & & & & & & & & & \\
    Food & & & & & & & & & & 0.026 & & (0.054) & & & & & & \\
    Fabricated Metals & & & & & & & & & & & & & 0.056 & & (0.05) & & & \\
    Chemical & & & & & & & & & & & & & & & & 0.036 & & (0.055) \\
    \hline
    lag(ciri, 1) & 0.429 & *** & (0.051) & 0.483 & *** & (0.067) & 0.089 & & (0.118) & 0.409 & *** & (0.059) & 0.448 & *** & (0.062) & 0.464 & *** & (0.055) \\
    polity\_4 & -0.006 & & (0.015) & -0.002 & & (0.023) & -0.005 & & (0.023) & -0.036 & . & (0.018) & -0.009 & & (0.019) & -0.006 & & (0.017) \\
    econ\_growth & 0.018 & & (0.018) & 0.023 & & (0.023) & 0.078 & & (0.055) & -0.006 & & (0.021) & 0.012 & & (0.023) & 0.012 & & (0.019) \\
    log\_trade & 0.121 & & (0.163) & 0.176 & & (0.191) & 0.069 & & (0.305) & 0.205 & & (0.185) & 0.247 & & (0.173) & 0.126 & & (0.153) \\
    LNPOP & -0.409 & *** & (0.08) & -0.363 & ** & (0.119) & -0.493 & ** & (0.162) & -0.427 & *** & (0.085) & -0.372 & *** & (0.095) & -0.396 & *** & (0.086) \\
    HRNGO & 0.015 & & (0.08) & 0.021 & & (0.14) & -0.177 & & (0.157) & 0.15 & & (0.092) & 0.077 & & (0.102) & 0.098 & & (0.091) \\
    CONFLICT & -0.784 & *** & (0.176) & -0.965 & *** & (0.281) & -1.66 & *** & (0.329) & -0.995 & *** & (0.2) & -0.805 & *** & (0.198) & -0.858 & *** & (0.181) \\
    rsq & 0.68 & & & 0.69 & & & 0.77 & & & 0.68 & & & 0.67 & & & 0.68 & & \\
    n & 27 & & & 25 & & & 20 & & & 26 & & & 27 & & & 27 & & \\
    N & 309 & & & 166 & & & 49 & & & 233 & & & 226 & & & 257 & & \\
    \hline
    \end{tabular}
    \end{center}
    \footnotesize rsq: R-squared; n=countries; N=observations; Significance: 0-0.001 (***), 0.001-0.01 (**), 0.01-0.05 (*), 0.05-0.1 (.), 0.1-1 ( ). Each model includes one form of FDI (Model 1: total FDI; Model 2: Petroleum etc.). The control variables (lower part of table) and independent variable (human rights) stay the same.
    \end{sidewaystable}


    This is what I'm using right now:
    --------------
    \documentclass{article}
    \usepackage{geometry}
    \geometry{letterpaper}
    \usepackage{graphicx}
    \usepackage{amssymb}
    \usepackage{amsmath}
    \usepackage{graphicx}
    \usepackage{rotating}

    Any help would greatly be appreciated!!!
    Thanks,
    Anja
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4

    Re: two sideways latex tables on one page, next to each other

    Quote Originally Posted by Anja2011 View Post
    Hi all,
    I'm a beginner Latex user. I managed to get my results into 2 tables, footnote size font, in sideways format (landscape) on 1 table a page. I'd like to have them on the landscape page layout both of them together (table one, under it table 2).

    This is the code for one of the tables (the other one is just a continuation; looks exactly like it but is right now automatically on the next page):

    % latex table generated in R 2.12.2 by xtable 1.5-6 package
    % Tue Jun 28 11:40:45 2011
    \begin{sidewaystable}[ht]
    \caption{\label{tab_results_1}Impact of Sectoral FDI on Human Rights in 11 Models - Part 1}
    \begin{center}
    \footnotesize \begin{tabular}{| r | l@{}ll | l@{}ll | l@{}ll | l@{}ll | l@{}ll | l@{}ll |}
    \hline
    & \multicolumn{3}{|c|}{Model 1} & \multicolumn{3}{|c|}{Model 2} & \multicolumn{3}{|c|}{Model 3} & \multicolumn{3}{|c|}{Model 4} & \multicolumn{3}{|c|}{Model 5} & \multicolumn{3}{|c|}{Model 6} \\
    \hline
    total\_FDI & 0.029 & & (0.041) & & & & & & & & & & & & & & & \\
    Petroleum & & & & 0.025 & & (0.067) & & & & & & & & & & & & \\
    Mining & & & & & & & -0.019 & & (0.051) & & & & & & & & & \\
    Food & & & & & & & & & & 0.026 & & (0.054) & & & & & & \\
    Fabricated Metals & & & & & & & & & & & & & 0.056 & & (0.05) & & & \\
    Chemical & & & & & & & & & & & & & & & & 0.036 & & (0.055) \\
    \hline
    lag(ciri, 1) & 0.429 & *** & (0.051) & 0.483 & *** & (0.067) & 0.089 & & (0.118) & 0.409 & *** & (0.059) & 0.448 & *** & (0.062) & 0.464 & *** & (0.055) \\
    polity\_4 & -0.006 & & (0.015) & -0.002 & & (0.023) & -0.005 & & (0.023) & -0.036 & . & (0.018) & -0.009 & & (0.019) & -0.006 & & (0.017) \\
    econ\_growth & 0.018 & & (0.018) & 0.023 & & (0.023) & 0.078 & & (0.055) & -0.006 & & (0.021) & 0.012 & & (0.023) & 0.012 & & (0.019) \\
    log\_trade & 0.121 & & (0.163) & 0.176 & & (0.191) & 0.069 & & (0.305) & 0.205 & & (0.185) & 0.247 & & (0.173) & 0.126 & & (0.153) \\
    LNPOP & -0.409 & *** & (0.08) & -0.363 & ** & (0.119) & -0.493 & ** & (0.162) & -0.427 & *** & (0.085) & -0.372 & *** & (0.095) & -0.396 & *** & (0.086) \\
    HRNGO & 0.015 & & (0.08) & 0.021 & & (0.14) & -0.177 & & (0.157) & 0.15 & & (0.092) & 0.077 & & (0.102) & 0.098 & & (0.091) \\
    CONFLICT & -0.784 & *** & (0.176) & -0.965 & *** & (0.281) & -1.66 & *** & (0.329) & -0.995 & *** & (0.2) & -0.805 & *** & (0.198) & -0.858 & *** & (0.181) \\
    rsq & 0.68 & & & 0.69 & & & 0.77 & & & 0.68 & & & 0.67 & & & 0.68 & & \\
    n & 27 & & & 25 & & & 20 & & & 26 & & & 27 & & & 27 & & \\
    N & 309 & & & 166 & & & 49 & & & 233 & & & 226 & & & 257 & & \\
    \hline
    \end{tabular}
    \end{center}
    \footnotesize rsq: R-squared; n=countries; N=observations; Significance: 0-0.001 (***), 0.001-0.01 (**), 0.01-0.05 (*), 0.05-0.1 (.), 0.1-1 ( ). Each model includes one form of FDI (Model 1: total FDI; Model 2: Petroleum etc.). The control variables (lower part of table) and independent variable (human rights) stay the same.
    \end{sidewaystable}


    This is what I'm using right now:
    --------------
    \documentclass{article}
    \usepackage{geometry}
    \geometry{letterpaper}
    \usepackage{graphicx}
    \usepackage{amssymb}
    \usepackage{amsmath}
    \usepackage{graphicx}
    \usepackage{rotating}

    Any help would greatly be appreciated!!!
    Thanks,
    Anja
    Frankly I would compose the two tables in a spreadsheet and save an oversized graphic file (probably a .png) for inclusion in the document.

    CB
    Follow Math Help Forum on Facebook and Google+

  3. #3
    MHF Contributor
    Joined
    Oct 2009
    Posts
    5,513
    Thanks
    769

    Re: two sideways latex tables on one page, next to each other

    You can simply place two tables inside \begin{sidewaystable}...\end{sidewaystable}.

    \begin{sidewaystable}[ht]
    \label{tab_results_1}
    \caption{First table}
    \begin{center}
    \footnotesize
    \begin{tabular}{...}
    ...
    \end{tabular}
    \end{center}
    \footnotesize Under first table

    \label{tab_results_2}
    \caption{Second table}
    \begin{center}
    \footnotesize
    \begin{tabular}{...}
    ...
    \end{tabular}
    \end{center}
    \footnotesize Under second table
    \end{sidewaystable}

    Strangely enough, two \captions are allowed inside one float.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Terrfic Web Page for editting LaTeX equations
    Posted in the LaTeX Help Forum
    Replies: 2
    Last Post: April 27th 2010, 10:36 AM
  2. Page formatting
    Posted in the LaTeX Help Forum
    Replies: 0
    Last Post: January 15th 2010, 02:05 PM
  3. Replies: 1
    Last Post: October 13th 2008, 05:14 PM

Search Tags


/mathhelpforum @mathhelpforum