# Aligning objects

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

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