Aligning Tables and TiKz Pictures Vertically












3















I have the following codes.
I want to pull the tables to the top of the page
so that tables and the tikz picture are aligned
vertically at top of the page (as shown in the figure).
I need your help in this direction.



documentclass[12pt]{standalone}

usepackage{tikz}

begin{document}

begin{tabular}{|l|l|}
hline
% after \: hline or cline{col1-col2} cline{col3-col4} ...
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \
hline
end{tabular}
begin{tikzpicture}[scale=0.4]
draw[fill=white] (-45,-5) rectangle (45,65);
end{tikzpicture}
begin{tabular}{|l|l|}
hline
% after \: hline or cline{col1-col2} cline{col3-col4} ...
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \ hline
1 & A \
hline
end{tabular}

end{document}


enter image description here










share|improve this question



























    3















    I have the following codes.
    I want to pull the tables to the top of the page
    so that tables and the tikz picture are aligned
    vertically at top of the page (as shown in the figure).
    I need your help in this direction.



    documentclass[12pt]{standalone}

    usepackage{tikz}

    begin{document}

    begin{tabular}{|l|l|}
    hline
    % after \: hline or cline{col1-col2} cline{col3-col4} ...
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \
    hline
    end{tabular}
    begin{tikzpicture}[scale=0.4]
    draw[fill=white] (-45,-5) rectangle (45,65);
    end{tikzpicture}
    begin{tabular}{|l|l|}
    hline
    % after \: hline or cline{col1-col2} cline{col3-col4} ...
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \ hline
    1 & A \
    hline
    end{tabular}

    end{document}


    enter image description here










    share|improve this question

























      3












      3








      3








      I have the following codes.
      I want to pull the tables to the top of the page
      so that tables and the tikz picture are aligned
      vertically at top of the page (as shown in the figure).
      I need your help in this direction.



      documentclass[12pt]{standalone}

      usepackage{tikz}

      begin{document}

      begin{tabular}{|l|l|}
      hline
      % after \: hline or cline{col1-col2} cline{col3-col4} ...
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \
      hline
      end{tabular}
      begin{tikzpicture}[scale=0.4]
      draw[fill=white] (-45,-5) rectangle (45,65);
      end{tikzpicture}
      begin{tabular}{|l|l|}
      hline
      % after \: hline or cline{col1-col2} cline{col3-col4} ...
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \
      hline
      end{tabular}

      end{document}


      enter image description here










      share|improve this question














      I have the following codes.
      I want to pull the tables to the top of the page
      so that tables and the tikz picture are aligned
      vertically at top of the page (as shown in the figure).
      I need your help in this direction.



      documentclass[12pt]{standalone}

      usepackage{tikz}

      begin{document}

      begin{tabular}{|l|l|}
      hline
      % after \: hline or cline{col1-col2} cline{col3-col4} ...
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \
      hline
      end{tabular}
      begin{tikzpicture}[scale=0.4]
      draw[fill=white] (-45,-5) rectangle (45,65);
      end{tikzpicture}
      begin{tabular}{|l|l|}
      hline
      % after \: hline or cline{col1-col2} cline{col3-col4} ...
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \ hline
      1 & A \
      hline
      end{tabular}

      end{document}


      enter image description here







      tikz-pgf tables






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 21 '18 at 5:51









      bkarpuzbkarpuz

      1,01211323




      1,01211323






















          3 Answers
          3






          active

          oldest

          votes


















          1














          Any tikzpicture is considered as a simple char and it's aligned according it's baseline which by default is its south anchor (see page 124 in pgfmanual. Therefore, in your code the central point of both tabulars are aligned with tikzpicture's southern point.



          You can change this alignment with tikzpicture's option baseline. You can decide where to align the picture with baseline=(current bounding box.north) or baseline=(current bounding box.center) or similar expressions.



          About tabular you can also use the optional parameter to align them along it's top, center or bottom: begin{tabular}[t]{...}.



          One example aligning to center:



          documentclass[12pt]{standalone}

          usepackage{tikz}

          begin{document}

          begin{tabular}{|l|l|}
          hline
          % after \: hline or cline{col1-col2} cline{col3-col4} ...
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \
          hline
          end{tabular}
          begin{tikzpicture}[baseline=(current bounding box.center), scale=0.4]
          draw[fill=white] (-45,-5) rectangle (45,65);
          end{tikzpicture}
          begin{tabular}{|l|l|}
          hline
          % after \: hline or cline{col1-col2} cline{col3-col4} ...
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \
          hline
          end{tabular}
          end{document}


          enter image description here






          share|improve this answer
























          • [t] for the tabulars and [baseline=(current bounding box.north),scale=0.4] for the tikzpicture worked exactly as I wanted.

            – bkarpuz
            Dec 24 '18 at 12:37













          • How can I add a new table below of the figure (by preserving the previous two)?

            – bkarpuz
            Jan 11 at 13:58








          • 1





            @bkarpuz You can declare tabular inside tabular, so declare new tabular that contains pervious elements and the new tabular can be declared as the central element on the second row.

            – Ignasi
            Jan 11 at 17:18



















          5














          A simple way to achieve this is to make the tables part of the tikzpicture, i.e. to put them in nodes.



          documentclass[12pt]{standalone}

          usepackage{tikz}

          begin{document}


          begin{tikzpicture}[scale=0.4]
          draw[fill=white] (-45,-5) rectangle (45,65);
          node[anchor=north east] at (-45,65){begin{tabular}{|l|l|}
          hline
          % after \: hline or cline{col1-col2} cline{col3-col4} ...
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \
          hline
          end{tabular}};
          node[anchor=north west] at (45,65) {begin{tabular}{|l|l|}
          hline
          % after \: hline or cline{col1-col2} cline{col3-col4} ...
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \ hline
          1 & A \
          hline
          end{tabular}
          };
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer































            1














            I arrange it by brute force using minipages. It's a easy way to work with floats.



            documentclass[12pt]{standalone}
            usepackage{tikz}
            begin{document}
            noindent begin{minipage}{1.1cm}vspace*{-7cm}{
            begin{tabular}{|l|l|}
            hline
            % after \: hline or cline{col1-col2} cline{col3-col4} ...
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \
            hline
            end{tabular}
            }
            end{minipage}

            begin{minipage}{35.9cm}
            begin{tikzpicture}[scale=0.4]
            draw[fill=white] (-45,-5) rectangle (45,65);
            end{tikzpicture}
            end{minipage}

            begin{minipage}{1.2cm}vspace*{-7cm}{
            begin{tabular}{|l|l|}
            hline
            % after \: hline or cline{col1-col2} cline{col3-col4} ...
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \
            hline
            end{tabular}
            }
            end{minipage}
            end{document}





            share|improve this answer



















            • 1





              You do not use any float and minipage has, in fact, nothing to do with floats…

              – TeXnician
              Dec 21 '18 at 9:04











            • Well, the idea was to refer the minipage as 'floating' element. Sorry, if i didn't use the figure or table enviroment who does create a floating element.

              – kraDracsO
              Dec 22 '18 at 22:17











            • I just mentioned it because in terms of TeX floating is a very different concept than, say, in web design…

              – TeXnician
              Dec 23 '18 at 8:26











            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "85"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f466802%2faligning-tables-and-tikz-pictures-vertically%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Any tikzpicture is considered as a simple char and it's aligned according it's baseline which by default is its south anchor (see page 124 in pgfmanual. Therefore, in your code the central point of both tabulars are aligned with tikzpicture's southern point.



            You can change this alignment with tikzpicture's option baseline. You can decide where to align the picture with baseline=(current bounding box.north) or baseline=(current bounding box.center) or similar expressions.



            About tabular you can also use the optional parameter to align them along it's top, center or bottom: begin{tabular}[t]{...}.



            One example aligning to center:



            documentclass[12pt]{standalone}

            usepackage{tikz}

            begin{document}

            begin{tabular}{|l|l|}
            hline
            % after \: hline or cline{col1-col2} cline{col3-col4} ...
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \
            hline
            end{tabular}
            begin{tikzpicture}[baseline=(current bounding box.center), scale=0.4]
            draw[fill=white] (-45,-5) rectangle (45,65);
            end{tikzpicture}
            begin{tabular}{|l|l|}
            hline
            % after \: hline or cline{col1-col2} cline{col3-col4} ...
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \
            hline
            end{tabular}
            end{document}


            enter image description here






            share|improve this answer
























            • [t] for the tabulars and [baseline=(current bounding box.north),scale=0.4] for the tikzpicture worked exactly as I wanted.

              – bkarpuz
              Dec 24 '18 at 12:37













            • How can I add a new table below of the figure (by preserving the previous two)?

              – bkarpuz
              Jan 11 at 13:58








            • 1





              @bkarpuz You can declare tabular inside tabular, so declare new tabular that contains pervious elements and the new tabular can be declared as the central element on the second row.

              – Ignasi
              Jan 11 at 17:18
















            1














            Any tikzpicture is considered as a simple char and it's aligned according it's baseline which by default is its south anchor (see page 124 in pgfmanual. Therefore, in your code the central point of both tabulars are aligned with tikzpicture's southern point.



            You can change this alignment with tikzpicture's option baseline. You can decide where to align the picture with baseline=(current bounding box.north) or baseline=(current bounding box.center) or similar expressions.



            About tabular you can also use the optional parameter to align them along it's top, center or bottom: begin{tabular}[t]{...}.



            One example aligning to center:



            documentclass[12pt]{standalone}

            usepackage{tikz}

            begin{document}

            begin{tabular}{|l|l|}
            hline
            % after \: hline or cline{col1-col2} cline{col3-col4} ...
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \
            hline
            end{tabular}
            begin{tikzpicture}[baseline=(current bounding box.center), scale=0.4]
            draw[fill=white] (-45,-5) rectangle (45,65);
            end{tikzpicture}
            begin{tabular}{|l|l|}
            hline
            % after \: hline or cline{col1-col2} cline{col3-col4} ...
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \
            hline
            end{tabular}
            end{document}


            enter image description here






            share|improve this answer
























            • [t] for the tabulars and [baseline=(current bounding box.north),scale=0.4] for the tikzpicture worked exactly as I wanted.

              – bkarpuz
              Dec 24 '18 at 12:37













            • How can I add a new table below of the figure (by preserving the previous two)?

              – bkarpuz
              Jan 11 at 13:58








            • 1





              @bkarpuz You can declare tabular inside tabular, so declare new tabular that contains pervious elements and the new tabular can be declared as the central element on the second row.

              – Ignasi
              Jan 11 at 17:18














            1












            1








            1







            Any tikzpicture is considered as a simple char and it's aligned according it's baseline which by default is its south anchor (see page 124 in pgfmanual. Therefore, in your code the central point of both tabulars are aligned with tikzpicture's southern point.



            You can change this alignment with tikzpicture's option baseline. You can decide where to align the picture with baseline=(current bounding box.north) or baseline=(current bounding box.center) or similar expressions.



            About tabular you can also use the optional parameter to align them along it's top, center or bottom: begin{tabular}[t]{...}.



            One example aligning to center:



            documentclass[12pt]{standalone}

            usepackage{tikz}

            begin{document}

            begin{tabular}{|l|l|}
            hline
            % after \: hline or cline{col1-col2} cline{col3-col4} ...
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \
            hline
            end{tabular}
            begin{tikzpicture}[baseline=(current bounding box.center), scale=0.4]
            draw[fill=white] (-45,-5) rectangle (45,65);
            end{tikzpicture}
            begin{tabular}{|l|l|}
            hline
            % after \: hline or cline{col1-col2} cline{col3-col4} ...
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \
            hline
            end{tabular}
            end{document}


            enter image description here






            share|improve this answer













            Any tikzpicture is considered as a simple char and it's aligned according it's baseline which by default is its south anchor (see page 124 in pgfmanual. Therefore, in your code the central point of both tabulars are aligned with tikzpicture's southern point.



            You can change this alignment with tikzpicture's option baseline. You can decide where to align the picture with baseline=(current bounding box.north) or baseline=(current bounding box.center) or similar expressions.



            About tabular you can also use the optional parameter to align them along it's top, center or bottom: begin{tabular}[t]{...}.



            One example aligning to center:



            documentclass[12pt]{standalone}

            usepackage{tikz}

            begin{document}

            begin{tabular}{|l|l|}
            hline
            % after \: hline or cline{col1-col2} cline{col3-col4} ...
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \
            hline
            end{tabular}
            begin{tikzpicture}[baseline=(current bounding box.center), scale=0.4]
            draw[fill=white] (-45,-5) rectangle (45,65);
            end{tikzpicture}
            begin{tabular}{|l|l|}
            hline
            % after \: hline or cline{col1-col2} cline{col3-col4} ...
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \
            hline
            end{tabular}
            end{document}


            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 22 '18 at 10:31









            IgnasiIgnasi

            92.3k4166305




            92.3k4166305













            • [t] for the tabulars and [baseline=(current bounding box.north),scale=0.4] for the tikzpicture worked exactly as I wanted.

              – bkarpuz
              Dec 24 '18 at 12:37













            • How can I add a new table below of the figure (by preserving the previous two)?

              – bkarpuz
              Jan 11 at 13:58








            • 1





              @bkarpuz You can declare tabular inside tabular, so declare new tabular that contains pervious elements and the new tabular can be declared as the central element on the second row.

              – Ignasi
              Jan 11 at 17:18



















            • [t] for the tabulars and [baseline=(current bounding box.north),scale=0.4] for the tikzpicture worked exactly as I wanted.

              – bkarpuz
              Dec 24 '18 at 12:37













            • How can I add a new table below of the figure (by preserving the previous two)?

              – bkarpuz
              Jan 11 at 13:58








            • 1





              @bkarpuz You can declare tabular inside tabular, so declare new tabular that contains pervious elements and the new tabular can be declared as the central element on the second row.

              – Ignasi
              Jan 11 at 17:18

















            [t] for the tabulars and [baseline=(current bounding box.north),scale=0.4] for the tikzpicture worked exactly as I wanted.

            – bkarpuz
            Dec 24 '18 at 12:37







            [t] for the tabulars and [baseline=(current bounding box.north),scale=0.4] for the tikzpicture worked exactly as I wanted.

            – bkarpuz
            Dec 24 '18 at 12:37















            How can I add a new table below of the figure (by preserving the previous two)?

            – bkarpuz
            Jan 11 at 13:58







            How can I add a new table below of the figure (by preserving the previous two)?

            – bkarpuz
            Jan 11 at 13:58






            1




            1





            @bkarpuz You can declare tabular inside tabular, so declare new tabular that contains pervious elements and the new tabular can be declared as the central element on the second row.

            – Ignasi
            Jan 11 at 17:18





            @bkarpuz You can declare tabular inside tabular, so declare new tabular that contains pervious elements and the new tabular can be declared as the central element on the second row.

            – Ignasi
            Jan 11 at 17:18











            5














            A simple way to achieve this is to make the tables part of the tikzpicture, i.e. to put them in nodes.



            documentclass[12pt]{standalone}

            usepackage{tikz}

            begin{document}


            begin{tikzpicture}[scale=0.4]
            draw[fill=white] (-45,-5) rectangle (45,65);
            node[anchor=north east] at (-45,65){begin{tabular}{|l|l|}
            hline
            % after \: hline or cline{col1-col2} cline{col3-col4} ...
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \
            hline
            end{tabular}};
            node[anchor=north west] at (45,65) {begin{tabular}{|l|l|}
            hline
            % after \: hline or cline{col1-col2} cline{col3-col4} ...
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \ hline
            1 & A \
            hline
            end{tabular}
            };
            end{tikzpicture}
            end{document}


            enter image description here






            share|improve this answer




























              5














              A simple way to achieve this is to make the tables part of the tikzpicture, i.e. to put them in nodes.



              documentclass[12pt]{standalone}

              usepackage{tikz}

              begin{document}


              begin{tikzpicture}[scale=0.4]
              draw[fill=white] (-45,-5) rectangle (45,65);
              node[anchor=north east] at (-45,65){begin{tabular}{|l|l|}
              hline
              % after \: hline or cline{col1-col2} cline{col3-col4} ...
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \
              hline
              end{tabular}};
              node[anchor=north west] at (45,65) {begin{tabular}{|l|l|}
              hline
              % after \: hline or cline{col1-col2} cline{col3-col4} ...
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \ hline
              1 & A \
              hline
              end{tabular}
              };
              end{tikzpicture}
              end{document}


              enter image description here






              share|improve this answer


























                5












                5








                5







                A simple way to achieve this is to make the tables part of the tikzpicture, i.e. to put them in nodes.



                documentclass[12pt]{standalone}

                usepackage{tikz}

                begin{document}


                begin{tikzpicture}[scale=0.4]
                draw[fill=white] (-45,-5) rectangle (45,65);
                node[anchor=north east] at (-45,65){begin{tabular}{|l|l|}
                hline
                % after \: hline or cline{col1-col2} cline{col3-col4} ...
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \
                hline
                end{tabular}};
                node[anchor=north west] at (45,65) {begin{tabular}{|l|l|}
                hline
                % after \: hline or cline{col1-col2} cline{col3-col4} ...
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \
                hline
                end{tabular}
                };
                end{tikzpicture}
                end{document}


                enter image description here






                share|improve this answer













                A simple way to achieve this is to make the tables part of the tikzpicture, i.e. to put them in nodes.



                documentclass[12pt]{standalone}

                usepackage{tikz}

                begin{document}


                begin{tikzpicture}[scale=0.4]
                draw[fill=white] (-45,-5) rectangle (45,65);
                node[anchor=north east] at (-45,65){begin{tabular}{|l|l|}
                hline
                % after \: hline or cline{col1-col2} cline{col3-col4} ...
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \
                hline
                end{tabular}};
                node[anchor=north west] at (45,65) {begin{tabular}{|l|l|}
                hline
                % after \: hline or cline{col1-col2} cline{col3-col4} ...
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \ hline
                1 & A \
                hline
                end{tabular}
                };
                end{tikzpicture}
                end{document}


                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 21 '18 at 6:59









                marmotmarmot

                92.3k4108202




                92.3k4108202























                    1














                    I arrange it by brute force using minipages. It's a easy way to work with floats.



                    documentclass[12pt]{standalone}
                    usepackage{tikz}
                    begin{document}
                    noindent begin{minipage}{1.1cm}vspace*{-7cm}{
                    begin{tabular}{|l|l|}
                    hline
                    % after \: hline or cline{col1-col2} cline{col3-col4} ...
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \
                    hline
                    end{tabular}
                    }
                    end{minipage}

                    begin{minipage}{35.9cm}
                    begin{tikzpicture}[scale=0.4]
                    draw[fill=white] (-45,-5) rectangle (45,65);
                    end{tikzpicture}
                    end{minipage}

                    begin{minipage}{1.2cm}vspace*{-7cm}{
                    begin{tabular}{|l|l|}
                    hline
                    % after \: hline or cline{col1-col2} cline{col3-col4} ...
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \
                    hline
                    end{tabular}
                    }
                    end{minipage}
                    end{document}





                    share|improve this answer



















                    • 1





                      You do not use any float and minipage has, in fact, nothing to do with floats…

                      – TeXnician
                      Dec 21 '18 at 9:04











                    • Well, the idea was to refer the minipage as 'floating' element. Sorry, if i didn't use the figure or table enviroment who does create a floating element.

                      – kraDracsO
                      Dec 22 '18 at 22:17











                    • I just mentioned it because in terms of TeX floating is a very different concept than, say, in web design…

                      – TeXnician
                      Dec 23 '18 at 8:26
















                    1














                    I arrange it by brute force using minipages. It's a easy way to work with floats.



                    documentclass[12pt]{standalone}
                    usepackage{tikz}
                    begin{document}
                    noindent begin{minipage}{1.1cm}vspace*{-7cm}{
                    begin{tabular}{|l|l|}
                    hline
                    % after \: hline or cline{col1-col2} cline{col3-col4} ...
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \
                    hline
                    end{tabular}
                    }
                    end{minipage}

                    begin{minipage}{35.9cm}
                    begin{tikzpicture}[scale=0.4]
                    draw[fill=white] (-45,-5) rectangle (45,65);
                    end{tikzpicture}
                    end{minipage}

                    begin{minipage}{1.2cm}vspace*{-7cm}{
                    begin{tabular}{|l|l|}
                    hline
                    % after \: hline or cline{col1-col2} cline{col3-col4} ...
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \
                    hline
                    end{tabular}
                    }
                    end{minipage}
                    end{document}





                    share|improve this answer



















                    • 1





                      You do not use any float and minipage has, in fact, nothing to do with floats…

                      – TeXnician
                      Dec 21 '18 at 9:04











                    • Well, the idea was to refer the minipage as 'floating' element. Sorry, if i didn't use the figure or table enviroment who does create a floating element.

                      – kraDracsO
                      Dec 22 '18 at 22:17











                    • I just mentioned it because in terms of TeX floating is a very different concept than, say, in web design…

                      – TeXnician
                      Dec 23 '18 at 8:26














                    1












                    1








                    1







                    I arrange it by brute force using minipages. It's a easy way to work with floats.



                    documentclass[12pt]{standalone}
                    usepackage{tikz}
                    begin{document}
                    noindent begin{minipage}{1.1cm}vspace*{-7cm}{
                    begin{tabular}{|l|l|}
                    hline
                    % after \: hline or cline{col1-col2} cline{col3-col4} ...
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \
                    hline
                    end{tabular}
                    }
                    end{minipage}

                    begin{minipage}{35.9cm}
                    begin{tikzpicture}[scale=0.4]
                    draw[fill=white] (-45,-5) rectangle (45,65);
                    end{tikzpicture}
                    end{minipage}

                    begin{minipage}{1.2cm}vspace*{-7cm}{
                    begin{tabular}{|l|l|}
                    hline
                    % after \: hline or cline{col1-col2} cline{col3-col4} ...
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \
                    hline
                    end{tabular}
                    }
                    end{minipage}
                    end{document}





                    share|improve this answer













                    I arrange it by brute force using minipages. It's a easy way to work with floats.



                    documentclass[12pt]{standalone}
                    usepackage{tikz}
                    begin{document}
                    noindent begin{minipage}{1.1cm}vspace*{-7cm}{
                    begin{tabular}{|l|l|}
                    hline
                    % after \: hline or cline{col1-col2} cline{col3-col4} ...
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \
                    hline
                    end{tabular}
                    }
                    end{minipage}

                    begin{minipage}{35.9cm}
                    begin{tikzpicture}[scale=0.4]
                    draw[fill=white] (-45,-5) rectangle (45,65);
                    end{tikzpicture}
                    end{minipage}

                    begin{minipage}{1.2cm}vspace*{-7cm}{
                    begin{tabular}{|l|l|}
                    hline
                    % after \: hline or cline{col1-col2} cline{col3-col4} ...
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \ hline
                    1 & A \
                    hline
                    end{tabular}
                    }
                    end{minipage}
                    end{document}






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Dec 21 '18 at 7:02









                    kraDracsOkraDracsO

                    357




                    357








                    • 1





                      You do not use any float and minipage has, in fact, nothing to do with floats…

                      – TeXnician
                      Dec 21 '18 at 9:04











                    • Well, the idea was to refer the minipage as 'floating' element. Sorry, if i didn't use the figure or table enviroment who does create a floating element.

                      – kraDracsO
                      Dec 22 '18 at 22:17











                    • I just mentioned it because in terms of TeX floating is a very different concept than, say, in web design…

                      – TeXnician
                      Dec 23 '18 at 8:26














                    • 1





                      You do not use any float and minipage has, in fact, nothing to do with floats…

                      – TeXnician
                      Dec 21 '18 at 9:04











                    • Well, the idea was to refer the minipage as 'floating' element. Sorry, if i didn't use the figure or table enviroment who does create a floating element.

                      – kraDracsO
                      Dec 22 '18 at 22:17











                    • I just mentioned it because in terms of TeX floating is a very different concept than, say, in web design…

                      – TeXnician
                      Dec 23 '18 at 8:26








                    1




                    1





                    You do not use any float and minipage has, in fact, nothing to do with floats…

                    – TeXnician
                    Dec 21 '18 at 9:04





                    You do not use any float and minipage has, in fact, nothing to do with floats…

                    – TeXnician
                    Dec 21 '18 at 9:04













                    Well, the idea was to refer the minipage as 'floating' element. Sorry, if i didn't use the figure or table enviroment who does create a floating element.

                    – kraDracsO
                    Dec 22 '18 at 22:17





                    Well, the idea was to refer the minipage as 'floating' element. Sorry, if i didn't use the figure or table enviroment who does create a floating element.

                    – kraDracsO
                    Dec 22 '18 at 22:17













                    I just mentioned it because in terms of TeX floating is a very different concept than, say, in web design…

                    – TeXnician
                    Dec 23 '18 at 8:26





                    I just mentioned it because in terms of TeX floating is a very different concept than, say, in web design…

                    – TeXnician
                    Dec 23 '18 at 8:26


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f466802%2faligning-tables-and-tikz-pictures-vertically%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Plaza Victoria

                    Puebla de Zaragoza

                    Musa