如何拆分頁面,圖像在右側,資訊在左側

如何拆分頁面,圖像在右側,資訊在左側

我想做以下但更正確的事:

在此輸入影像描述

我希望圖像在右側,訊息在左側。我嘗試使用wrapfigurepackage 來做到這一點,但我認為這不是最好的路線。您建議我做什麼來實現這一目標?

編輯:

我怎樣才能使圖像並排並且“區域”和表格之間的文字最小化?這是一張圖片:

在此輸入影像描述

答案1

編輯答案(沒有\tabular)透過這種方法,每個小節都可以針對特定材料進行客製化。因此,\parbox可以將其做得更窄,以便為兩個人物留出空間並迫使其垂直範圍增加。

注意:我在此編輯下方留下了原始答案,因為它構成了一種不同的方法,其中圖像和表格都在頁面上分配了相等的水平空間):

\documentclass{article}
\parskip 1em\parindent 0ex
\begin{document}
\section{Geographic Information}
\textbf{Country Name:} The conventional long form ``The United States of
America'' and the conventional short form is ``U.S.'' or ``The U.S.'' or
``America'' or ``The States.''

Two other maps can be found in the appendix.

{\large\textbf{Area, Time Zone, Climate}}

\textbf{Area}

\parbox[b]{1.6in}{
  Area of the United Sates is 9,826,675~m$^2$.  The United States as a
  percentage of Canada: 0.984\%.  Ontario as a percentage of the United
  States: 0.10\%
}
\hfill\rule{1.5in}{1in}\hfill\rule{1.5in}{1in}\\

\textbf{Time Zone}

\parbox[b]{2.3in}{
  Due to the size of the U.S., numerous time zones will be discussed.
}
\hfill
  \begin{tabular}{|l|l|}
  \hline
  America& Ottowa (12:00 PM)\\
  CT & 11:00 A.M.\\
  EST & 12:00 P.M.\\
  MST & 10:00 A.M.\\
  PST & 9:00 A.M.\\
  \hline
  \end{tabular}

\end{document}

在此輸入影像描述

原答案(附\tabular):

這是一種可能性,使用tabular我在上面的評論中提到的。

\documentclass{article}
\parskip 1em
\begin{document}
\section{Geographic Information}
\textbf{Country Name:} The conventional long form ``The United States of
America'' and the conventional short form is ``U.S.'' or ``The U.S.'' or
``America'' or ``The States.''

Two other maps can be found in the appendix.

{\noindent\large\textbf{Area, Time Zone, Climate}}

\noindent\begin{tabular*}{\textwidth}{@{\hspace{0ex}}lr@{\hspace{0ex}}}
\multicolumn{2}{@{\hspace{0ex}}l}{\textbf{Area}}\\
\parbox[b]{2.6in}{
  Area of the United Sates is 9,826,675~m$^2$.  The United States as a
  percentage of Canada: 0.984\%.  Ontario as a percentage of the United
  States: 0.10\%
}
& \rule{1.5in}{1in}\\
%
&\\
\multicolumn{2}{@{\hspace{0ex}}l}{\textbf{Time Zone}}\\

\parbox[b]{2.6in}{
  Due to the size of the U.S., numerous time zones will be discussed.
}
& 
  \begin{tabular}{|l|l|}
  \hline
  \footnotesize
  America& Ottowa (12:00 PM)\\
  CT & 11:00 A.M.\\
  EST & 12:00 P.M.\\
  MST & 10:00 A.M.\\
  PST & 9:00 A.M.\\
  \hline
  \end{tabular}
\end{tabular*}

\end{document}

在此輸入影像描述

相關內容