我正在編寫第一份正式規範文檔,但在嘗試將文字與左側對齊並將表格與右側對齊時遇到問題。
謝謝。
\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}
答案1
這是一個解決方案,但應該大概完成wrapfig
或類似(取決於您的實際用例)。
\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}