3

How can I add a linebreak between two tabularx environments in a single section ?

    \documentclass[a4paper, 14pt, oneside]{article}
    \usepackage{tabularx} % Nicer table style than the default
    \begin{document}
    \section{Research Experience}
    \begin{tabularx}{1\linewidth}{>{\raggedright\scshape}p{3cm}X}
    \textbf{HeadingLeft} & {\textbf{HEadingRight}}
    \end{tabularx}
    %%% HOW CAN I GIVE A LINEBREAK HERE ? %%%%%%%%%%%%%%
    \begin{tabularx}{1\linewidth}{>{\raggedright\scshape}p{3cm}X}
    \textbf{HeadingLeft} & {\textbf{HEadingRight}} \\
    \end{tabularx}
    \end{document}
  • What document class are you using? When I try your example using article I get a line break. Do you want some additional space? – Ian Thompson Jan 16 '14 at 21:43
  • \documentclass[a4paper, 14pt, oneside]{article} ... yes I need an additional space between the two tabularx tables. It makes it look organized. – Rene Duchamp Jan 16 '14 at 21:49
  • Just use \mbox{}\medskip between the two environments, for instance. – Bernard Jan 16 '14 at 22:06
  • Not directly related to your query, but still worth pointing out: the article document class does not act on the option 14pt. – Mico Jan 16 '14 at 22:41
2

You can get a break between the two tabularx environments by replacing the line

%%% HOW CAN I GIVE A LINEBREAK HERE ? %%%%%%%%%%%%%%

with a blank line.

  • Insert \noindent before the second tabularx environment to get it lined up properly relative to the first.

  • To get a bit more vertical separation between the two environments, provide a command such as \vspace{1cm} (or whatever amount is right for you).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.