0

I'm writing my first formal specification document and I'm having trouble trying to align text to the left and a tabular table on the right.

Thanks.

    \begin{flushleft}

     A patient population includes an initially-empty set of patients(as identified as by their unique set as type $\mathbb{P})$. Each patient has some information about them of type $\mathbb{I})$ 
     \end{flushleft}


     \begin{flushright}
     \begin{tabular}{|l| c |r|}
     test\\
     \hline
     this is a test and this\\is a new line\\

     \end{tabular}
     \end{flushright}
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. Sounds like a job for wrapfig or (more simply, but less nice) minipage. – Sean Allred Apr 24 '15 at 14:12
2

This is a solution, but it should probably done with wrapfig or similar (depending on your actual use case).

\documentclass{article}

\begin{document}
\begin{minipage}[t]{.6\linewidth}
 A patient population includes an initially-empty set of patients
 (as identified as by their unique set as type $P$).
 Each patient has some information about them of type $I$) 
\end{minipage}
\hfill
\begin{tabular}[t]{|l| c |r|}
 test\\
 \hline
 this is a test and this\\is a new line\\
\end{tabular}
\end{document}
  • @EightSquared :) See edit for better alignment. – Sean Allred Apr 24 '15 at 15:44

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.