TransWikia.com

Three Tables in Landscape model at equal distance from each other and the margins

TeX - LaTeX Asked on February 18, 2021

I have the following code:

afterpage{%
clearpage% Flush earlier floats (otherwise order might not be correct)
thispagestyle{empty}% empty page style (?)
begin{landscape}% Landscape page
    begin{table}
        begin{adjustwidth}{-1cm}{}
        begin{adjustbox}{width=20cm}
            tiny
            begin{tabular}{|| c | c ||} 
                hline
                textbf{DATABASE} & textbf{QUERY 1: QUERY USED PER DATABASE}  [0.5ex] 
                hline
                Scopus & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                EBSCO/CJA & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                CA/WoS & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ProQuest/IBSS & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                EBSCO/PsycINFO & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ProQuest/CJD & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ScienceDirect & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                Wiley & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                JSTOR & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                WorldCat & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
            end{tabular}
        end{adjustbox}
        bigskip
        begin{adjustbox}{width=20cm}
            tiny
            begin{tabular}{|| c | c ||} 
                hline
                textbf{DATABASE} & textbf{QUERY 2: QUERY USED PER DATABASE}  [0.5ex] 
                hline
                Scopus & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                EBSCO/CJA & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                CA/WoS & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ProQuest/IBSS & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                EBSCO/PsycINFO & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ProQuest/CJD & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ScienceDirect & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                Wiley & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                JSTOR & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                WorldCat & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
            end{tabular}
        end{adjustbox}
        bigskip
        begin{adjustbox}{width=20cm}
            tiny
            begin{tabular}{|| c | c ||} 
                hline
                textbf{DATABASE} & textbf{QUERY 3: QUERY USED PER DATABASE}  [0.5ex] 
                hline
                Scopus & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                EBSCO/CJA & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                CA/WoS & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ProQuest/IBSS & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                EBSCO/PsycINFO & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ProQuest/CJD & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ScienceDirect & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                Wiley & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                JSTOR & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                WorldCat & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
            end{tabular}
        end{adjustbox}
        end{adjustwidth}
        label{table:3}
    end{table}
end{landscape}
clearpage% Flush page

}

Which yields me the following picture:

enter image description here

Is there away to get rid of the bigger top margin? I have used vspace and vspace* in multiple ways but it doesn’t help and messes up the landscape mode (its in a normal mode document)

Any help would be much appreciated!

One Answer

Using geometry : newgeometry beginning a single page plus restoregeometry at the end.

(1) There is no need to change the font size.

(2) Note the empty line before each bigskip.

(3) Added some vertical stretching of the cells (from array).

xc

w

documentclass{article}

RequirePackage[margin=2in]{geometry}
RequirePackage{pdflscape}
RequirePackage{afterpage}
RequirePackage{array}  

RequirePackage{kantlipsum} % dummy text

begin{document}
    
1. kant[1-3]

afterpage{%
    newgeometry{margin=0.5in}  
    clearpage% Flush earlier floats (otherwise order might not be correct)
    thispagestyle{empty}% empty page style (?)
    begin{landscape}% Landscape page
        begin{table}
            renewcommand{arraystretch}{1.2}
            centering
            %        begin{adjustwidth}{-1cm}{}
            %        begin{adjustbox}{width=20cm}
            %            tiny
            begin{tabular}{|| c | c ||} 
                hline
                textbf{DATABASE 1} & textbf{QUERY 1: QUERY USED PER DATABASE}  [0.5ex] 
                hline
                Scopus & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                EBSCO/CJA & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                CA/WoS & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ProQuest/IBSS & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                EBSCO/PsycINFO & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ProQuest/CJD & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ScienceDirect & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                Wiley & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                JSTOR & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                WorldCat & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
            end{tabular}
            %        end{adjustbox}
            
            bigskip
            %        begin{adjustbox}{width=20cm}
            %            tiny
            begin{tabular}{|| c | c ||} 
                hline
                textbf{DATABASE 2} & textbf{QUERY 2: QUERY USED PER DATABASE}  [0.5ex] 
                hline
                Scopus & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                EBSCO/CJA & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                CA/WoS & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ProQuest/IBSS & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                EBSCO/PsycINFO & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ProQuest/CJD & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ScienceDirect & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                Wiley & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                JSTOR & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                WorldCat & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
            end{tabular}
            %        end{adjustbox}
            
            bigskip
            %        begin{adjustbox}{width=20cm}
            %            tiny
            begin{tabular}{|| c | c ||} 
                hline
                textbf{DATABASE 3} & textbf{QUERY 3: QUERY USED PER DATABASE}  [0.5ex] 
                hline
                Scopus & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                EBSCO/CJA & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                CA/WoS & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ProQuest/IBSS & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                EBSCO/PsycINFO & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ProQuest/CJD & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                ScienceDirect & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                Wiley & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                JSTOR & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
                WorldCat & (“police” OR “law enforcement”) AND (“response time?” OR “arrival time?”) 
                hline
            end{tabular}
            %        end{adjustbox}
            %        end{adjustwidth}
            label{table:3}
        end{table}
    end{landscape}
clearpage% Flush page
}

restoregeometry

2. kant[2-5]

end{document}

Correct answer by Simon Dispa on February 18, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP