I realize this is probably a really simple issue but I'm a complete beginner.
I am auto-generating code very similar to the LaTeX code below. However no matter what I do I can't get space between the two tables – vspace just doesn't seem to work.
However, if I have a figure after these tables vspace then works fine between the tables and the figure.
Does anyone have any advice please? I added
\usepackage{parskip}
today as I don't want paragraph formatting.
THANKS a lot for any help,
Tom.
%% WriteReport.m method created this file.
\documentclass[english]{article}
\usepackage{avant}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\geometry {verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm,headheight=1cm,headsep=1cm,footskip=1cm}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{color}
\usepackage{babel}
\usepackage{array}
\usepackage{float}
\usepackage{graphicx}
\usepackage{parskip}
\usepackage[bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false]
{hyperref}
\hypersetup{pdftitle={MyOutput},
pdfauthor={Autogenerated by MyOutput}}
\providecommand{\tabularnewline}{\\}
\usepackage{color}
\lhead{MyOutput}
\begin{document}
\section{\textsf{Section title}}
\begin{tabular}{|r|l|}
\hline
one & two \\
\hline
one & two \\
\hline
one & two \\
\hline
one & two \\
\hline
one & two \\
\hline
\end{tabular}
\newline
\vspace*{1 cm}
\begin{tabular}{|r|l|}
\hline
three & four \\
\hline
three & four \\
\hline
three & four \\
\hline
three & four \\
\hline
three & four \\
\hline
\end{tabular}
\end{document}
Best Answer
You need a
\newline
after the\vspace
as well.So
instead.