Alinhando objetos

Alinhando objetos

Estou escrevendo meu primeiro documento de especificação formal e estou tendo problemas para tentar alinhar o texto à esquerda e uma tabela tabular à direita.

Obrigado.

    \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}

Responder1

Esta é uma solução, mas deveriaprovavelmentefeito com wrapfigou similar (dependendo do seu caso de uso real).

\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}

informação relacionada