Ausrichten von Objekten

Ausrichten von Objekten

Ich schreibe mein erstes formales Spezifikationsdokument und habe Probleme beim Versuch, Text linksbündig und eine tabellarische Tabelle rechtsbündig auszurichten.

Danke.

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

Antwort1

Dies ist eine Lösung, aber sie solltewahrscheinlicherledigt mit wrapfigoder ähnlich (abhängig von Ihrem tatsächlichen Anwendungsfall).

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

verwandte Informationen