删除使用 LaTeX 创建的列中的空白并适合其内容

删除使用 LaTeX 创建的列中的空白并适合其内容

大家好。我目前正在写一篇论文,并一直在尝试模仿图 1 所示的表格在此处输入图片描述

(这是一个 1 行 3 列的表格),使用 Microsoft Word 创建。但是,我得到的表格是使用 excel2latex 插件创建的,如图 2 所示在此处输入图片描述

可以看出,列中的空白太多,内容对齐不整齐。我尝试过删除这些空白,但没有成功。

我附上了代码供您参考。任何帮助都将不胜感激。

提前致谢


\documentclass[11pit]{article}

\usepackage{multirow} %To allow multirow

\usepackage{rotating} %To allow rotation from excel2latex

\usepackage{booktabs} %To allow top rule commands from excel2latex

\usepackage{tabularx} % Enable automatic line break in tables

\begin{document}
% Table generated by Excel2LaTeX from sheet 'Sheet2'
\begin{center}
\begin{table}[htbp]
\begin{tabularx}{\textwidth}{X l X}
\toprule
\multicolumn{1}{l}{ARTICLE INFO} & \multicolumn{1}{l}{} & \multicolumn{1}{l}{ABSTRACT} \\

\tiny Article history:\\

\tiny Received October 00 0000\\
\tiny Received in revised form 0 November 000\\
\tiny Accepted 00 November 000\\

\tiny Keywords:\\

\tiny Word 1 \\
\tiny Word 2\\
\tiny Word 3\\
\tiny Word 4\\
\tiny Word 5&
      & 
\tiny The ozone layer is a layer in Earth's atmosphere which contains relatively high concentrations of ozone (O3). This layer absorbs 97-99\% of the sun's high frequency ultraviolet light, which is potentially damaging to life on earth. Over 90\% of ozone in earth's atmosphere is present here "Relatively high" means a few parts per million—much higher than the concentrations in the lower atmosphere but still small compared to the main components of the atmosphere. It is mainly located in the lower portion of the stratosphere from approximately 15 km to 35 km above Earth's surface, though the thickness varies seasonally and geographically. A Dobson unit is the most basic measure used in ozone research. One Dobson Unit (DU) is defined to be 0.01 mm thickness at STP (standard temperature and pressure). Ozone layer thickness is expressed in terms of Dobson units, which measure what its physical thickness would be if compressed in the Earth's atmosphere. In those terms, it's very thin indeed. A normal range is 300 to 500 Dobson units, which translates to an eighth of an inch-basically two stacked pennies. In space, it's best not to envision the ozone layer as a distinct, measurable band. Instead, think of it in terms of parts per million concentrations in the stratosphere (the layer six to 30 miles above the Earth's surface). A thinning ozone layer leads to a number of serious health risks for humans. It causes greater incidences of skin cancer and cataract of the eye, with children being particularly vulnerable. There are also serious impacts for biodiversity. Increased UV-B rays reduce levels of plankton in the oceans and subsequently diminish fish stocks. It can also have adverse effects on plant growth, thus reducing agricultural productivity. Another negative effect is the reduced lifespan of certain materials.   \\

\cmidrule{1-1}\cmidrule{3-3}   

\end{tabularx}

\end{table}

\end{center}

%------------------------------------------------

\end{document}

答案1

欢迎来到 TeX.SE!以下内容远非完美,但在我看来,这是朝着正确方向迈出的一步。我认为所有不必要的东西\multicolumns都来自转换程序。

\documentclass[11pit]{article}

\usepackage{multirow} %To allow multirow

\usepackage{rotating} %To allow rotation from excel2latex

\usepackage{booktabs} %To allow top rule commands from excel2latex

\usepackage{tabularx} % Enable automatic line break in tables

\usepackage{makecell}

\begin{document}
% Table generated by Excel2LaTeX from sheet 'Sheet2'
\begin{center}
\begin{table}[htbp]
{\tiny \begin{tabularx}{\textwidth}{p{5cm} X}
\toprule
ARTICLE INFO &  ABSTRACT \\
\makecell[lt]{Article history:\\
 Received October 00 0000\\
 Received in revised form 0 November 000\\
 Accepted 00 November 000\\
 Keywords:\\
 Word 1 \\
 Word 2\\
 Word 3\\
 Word 4\\
 Word 5}
      & 
The ozone layer is a layer in Earth's atmosphere which contains relatively high concentrations of ozone (O3). This layer absorbs 97-99\% of the sun's high frequency ultraviolet light, which is potentially damaging to life on earth. Over 90\% of ozone in earth's atmosphere is present here "Relatively high" means a few parts per million—much higher than the concentrations in the lower atmosphere but still small compared to the main components of the atmosphere. It is mainly located in the lower portion of the stratosphere from approximately 15 km to 35 km above Earth's surface, though the thickness varies seasonally and geographically. A Dobson unit is the most basic measure used in ozone research. One Dobson Unit (DU) is defined to be 0.01 mm thickness at STP (standard temperature and pressure). Ozone layer thickness is expressed in terms of Dobson units, which measure what its physical thickness would be if compressed in the Earth's atmosphere. In those terms, it's very thin indeed. A normal range is 300 to 500 Dobson units, which translates to an eighth of an inch-basically two stacked pennies. In space, it's best not to envision the ozone layer as a distinct, measurable band. Instead, think of it in terms of parts per million concentrations in the stratosphere (the layer six to 30 miles above the Earth's surface). A thinning ozone layer leads to a number of serious health risks for humans. It causes greater incidences of skin cancer and cataract of the eye, with children being particularly vulnerable. There are also serious impacts for biodiversity. Increased UV-B rays reduce levels of plankton in the oceans and subsequently diminish fish stocks. It can also have adverse effects on plant growth, thus reducing agricultural productivity. Another negative effect is the reduced lifespan of certain materials.   \\
\cmidrule{1-1}\cmidrule{2-2}   

\end{tabularx}
}
\end{table}

\end{center}

%------------------------------------------------

\end{document}

在此处输入图片描述

相关内容