我正在尝试将一个表格放入两列的文章中。我希望这个表格能放在两列中。另外,如果您能帮我写出上面表格的标题就太好了。
编辑: 这是我的完整代码:
\documentclass[jou,apacite]{apa6}
\usepackage{graphicx} %package to manage images
\graphicspath{ {images/} }
\usepackage[rightcaption]{sidecap}
\usepackage{wrapfig}
\usepackage{adjustbox}
\usepackage{booktabs,chemformula}
\usepackage{url}
\title{DANIEL\textunderscore LK\textunderscore B\textunderscore 2\textunderscore BIOFUELS}
\author{Daniel Itzamna Avila Ortega}
\affiliation{Leiden University: s1868985 \\ TU Delft: 4628934}
\leftheader{Avila Ortega}
\shorttitle{Embedding FIS within MLP for biofuels in the Netherlands}
\begin{document}
\maketitle
\section{Introduction}
\begin{table*}[h]
\toprule
\centering
\begin{adjustbox}{width=\paperwidth}
\begin{tabular}{ |l|l| }
\hline
Function & Indicators \\ [0.5ex]
\hline
\multirow {1: Entrepreneurial activities} & Number of actors by categories \\
& Number of experiments \\
& Number of activities \\
\hline
\multirow {2: Knowledge development} & Learning by searching: scientific papers \\
& Learning by doing: biofuel production \\
& Learning by using: number of biofuel flights \\
\hline
\multirow {3: Knowledge diffusion through networks} & Learning by interacting: National \& international knowledge exchange (joint research projects) \\
& National \& international conferences, seminars, exhibitions \\
& National \& international networks \\
\hline
\multirow {4: Guidance of search} & Policy targets (global, EU, NL) \\
& Aviation biofuel program and initiative \\
& Expectation and opinion by experts \\
\hline
\multirow {5: Market formation} & # of companies using aviation biofuel \\
& # of routes constantly flying on aviation biofuel \\
& Financial incentives available when selling aviation biofuel (subsidies) \\
\hline
\multirow {6: Resources mobilization} & Feedstock availability \\
& Feedstock price \\
& Access to financial resources \\
& Attractivity of industry to graduate students \\
\hline
\multirow {7: Creation of legitimacy / counteract resistance to change} & Extent of biofuel promotion by government \\
& # of active lobbying groups (for biofuels) in NL and EU \\
& Public opinion on (aviation) biofuel \\
& Position towards biofuel by public parties \\
& Actions/reactions by incumbent oil refineries regarding aviation biofuel \\ [1ex]
\hline
\bottomrule
\end{tabular}
\end{adjustbox}
\centering
\caption {Indicators for FIS Analysis, \cite{Avila}}
\label{table:FIS}
\end{table*}
\bibliography{sample}
\end{document}
答案1
一些一般性评论:
你完全误用了
\multirow
。你到底在说什么试实现什么?无论如何,这完全没有必要。如果您希望输出
#
(“标签”),则需要输入\#
。不要
\toprule
在类似表格的环境之外使用。它不会起作用。不要使用列类型,而
l
要使用(至少)一种允许自动换行的列类型。这样,您就不需要了adjustbox
。我建议您使用一个tabularx
环境和一个X
列,并将总宽度设置为\textwidth
(不是\paperwidth
!)。请考虑让您的表格看起来更“开放”。我建议您删除所有垂直线和大多数水平线,并使用包中的线条绘制宏来
booktabs
绘制剩余的几条线。您的读者会感谢您——他们会通过实际查看表格并了解其内容来回报您……
\documentclass[twocolumn]{article}
\usepackage{tabularx,booktabs,ragged2e}
\begin{document}
\begin{table*}
\begin{tabularx}{\textwidth}{@{} l
>{\RaggedRight\arraybackslash\hangafter=1\hangindent=1em}X @{}}
\toprule
Function & Indicators \\
\midrule
1: Entrepreneurial activities & Number of actors by categories \\
& Number of experiments \\
& Number of activities \\
\addlinespace
2: Knowledge development & Learning by searching: scientific papers \\
& Learning by doing: biofuel production \\
& Learning by using: number of biofuel flights \\
\addlinespace
3: Knowledge diffusion through networks & Learning by interacting:
National \& international knowledge exchange (joint research projects) \\
& National \& international conferences, seminars, exhibitions \\
& National \& international networks \\
\addlinespace
4: Guidance of search & Policy targets (global, EU, NL) \\
& Aviation biofuel program and initiative \\
& Expectation and opinion by experts \\
\addlinespace
5: Market formation & \# of companies using aviation biofuel \\
& \# of routes constantly flying on aviation biofuel \\
& Financial incentives available when selling aviation biofuel (subsidies) \\
\addlinespace
6: Resources mobilization & Feedstock availability \\
& Feedstock price \\
& Access to financial resources \\
& Attractivity of industry to graduate students \\
\addlinespace
7: Creation of legitimacy\slash counteract resistance to change & Extent
of biofuel promotion by government \\
& \# of active lobbying groups (for biofuels) in~NL and EU \\
& Public opinion on (aviation) biofuel \\
& Position towards biofuel by public parties \\
& Actions\slash reactions by incumbent oil refineries regarding aviation biofuel \\
\bottomrule
\end{tabularx}
\caption {Indicators for FIS Analysis, \cite{Avila}}
\label{table:FIS}
\end{table*}
\end{document}