LaTeX: two figures in one line (两个图片置于同一行)

\begin{figure}
\centering
\begin{minipage}{.33\textwidth}
  \centering
  {\includegraphics[width=0.944\linewidth]{./figures/illustrate_cases.pdf}}
  \captionof{figure}{Common cases where a single \newline distance estimate would fail}
  \label{fig:illustrate_cases}
\end{minipage}
\begin{minipage}{.33\textwidth}
  \centering
  {\includegraphics[width=0.9\linewidth]{./figures/voronoi_illustrate.pdf}}
  \captionof{figure}{Voronoi diagram to represent \newline communication coverage of each tower}
  \label{fig:voronoi}
\end{minipage}
\end{figure}
### 创建LaTeX双栏表格的模板 为了创建双栏表格,在LaTeX中可以利用`elsarticle.cls`类文件以及相关包的支持。下面是一个基于Elsevier期刊论文模板的例子,该例子展示了如何设置双栏布局中的表格[^2]。 ```latex \documentclass[preprint,12pt]{elsarticle} %% Package inclusion and settings %% \usepackage{graphicx} \usepackage{amssymb} \usepackage{lineno} \modulolinenumbers[5] % For adjusting the page margins to fit more content within a double column format. \usepackage{geometry} \geometry{ top=2cm, bottom=2cm, outer=1.5cm, inner=1.5cm } \journal{Journal of \LaTeX\ Templates} \begin{document} \begin{frontmatter} \title{A Two-Column Table Example in LaTeX} \author[mymainaddress]{Author Name} \ead{email@example.com} \address[mymainaddress]{Address Line 1\\ Address Line 2} \begin{abstract} This document provides an example of how to create tables that span across two columns using LaTeX with the elsarticle class file. \end{abstract} \end{frontmatter} \section{Introduction} In this section, we introduce the method for creating wide tables which can be used effectively when writing papers intended for journals or conferences requiring such formatting. \section{Wide Tables Across Two Columns} To make sure your table fits well into both columns without breaking its structure, one approach is shown below: \begin{table*}[!htbp] \centering \captionsetup{justification=centering} \caption{An illustrative example of a long table spanning over two columns}\label{tab:example_table} \resizebox{\textwidth}{!}{ \begin{tabular}{|c|c|r|r|r|r|r|r|r|} \hline Header & Header & Header & Header & Header & Header & Header & Header & Header \\ \hline Data & Data & Data & Data & Data & Data & Data & Data & Data \\ ... & ... & ... & ... & ... & ... & ... & ... & ... \\ \hline \end{tabular}} \end{table*} Note that by employing `\texttt{table*}` environment instead of just `table`, it allows us to place our tabular material so as to extend from left margin to right margin covering entire width available under double-column layout. Additionally, adjustments made through commands like setting lengths (`\setlength`) could also help optimize space usage around floating elements like figures or tables[^1]. However, these modifications should generally not interfere directly with main text areas unless specifically required due to special circumstances.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值