我想做以下但更正确的事情:
我希望图片在右侧,信息在左侧。我尝试使用wrapfigure
包来实现这一点,但我认为这不是最佳方法。您建议我怎么做才能实现这一点?
编辑:
我该如何做才能使图像并排显示,并且最小化“区域”和表格之间的文本?这是一张图片:
答案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}