我需要将标题和其他内容像图片一样放在两列文档中
\begin{table}
\begin{tabularx}{\textwidth}{l>{\raggedright}X}
\toprule
\fbox{\includegraphics[height=1.86in]{image}} & \emph{xxxxxxxxxxx} \\
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx \\
\emph{xxxxxxxxxxxxxxx} \\
Some more sentence here. \tabularnewline
\midrule
{\fbox{\includegraphics[height=1.5cm]{image}}} & \emph{xxxxxxxxxxxxxxx} \\
xxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxx\\
\emph{xxxxxxxxxx} \\
Some more sentence here. \tabularnewline
\bottomrule
\end{tabularx}
\end{table}
答案1
首先:不需要放入环境tabular
中table
!
您可以将表格传递给\twocolumn
。
\documentclass{article}
\usepackage{tabularx}
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\usepackage{microtype} % recommended for twocolum
\usepackage{showframe} % to show the page boundaries
\usepackage{kantlipsum} % for mock text
\begin{document}
\twocolumn[{%
\sffamily\noindent
\begin{tabularx}{\textwidth}{@{} l >{\raggedright}X @{}}
\setlength{\fboxsep}{0pt}\Large % tight frame and match the font in the top line
\fbox{\includegraphics[height=1.86in,valign=t]{example-image-9x16}} &
{\Large Title of this paper\\}
A. Uthor\\[3ex]
{\itshape University of Nowhere\\ Somewhere}\\[3ex]
\texttt{[email protected]}
\tabularnewline\tabularnewline &
\textbf{Abstract:} This is the abstract, maybe long enough to break
across lines, let's stop here because it seems sufficient.\\[2ex]
\textbf{Keywords:} Abstract, tabularx
\end{tabularx}\par\vspace{10ex}%
}]
\section{Introduction}
\kant
\end{document}
这些包showframe
和kantlipsum
仅用于显示页面边界和制作一些填充文本。
无框架:
更高级别的版本:
\documentclass{article}
\usepackage{tabularx}
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\usepackage{microtype} % recommended for twocolum
\usepackage{kantlipsum} % for mock text
\makeatletter
\renewcommand{\maketitle}{%
\twocolumn[{%
\sffamily\noindent
\begin{tabularx}{\textwidth}{@{} l >{\raggedright}X @{}}
\setlength{\fboxsep}{0pt}\Large % tight frame and match the font in the top line
\fbox{\includegraphics[height=1.86in,valign=t]{\lalli@photo}} &
{\Large\@title\\}
\@author\\[3ex]
{\itshape\lalli@address}\\[3ex]
\texttt{\lalli@email}
\tabularnewline\tabularnewline &
\textbf{Abstract:} \lalli@abstract\\[2ex]
\textbf{Keywords:} \lalli@keywords
\end{tabularx}\par\vspace{10ex}%
}]%
}
\newcommand{\photo}[1]{\gdef\lalli@photo{#1}}
\newcommand{\address}[1]{\gdef\lalli@address{#1}}
\newcommand{\email}[1]{\gdef\lalli@email{#1}}
\renewcommand{\abstract}[1]{\long\gdef\lalli@abstract{#1}}
\newcommand{\keywords}[1]{\gdef\lalli@keywords{#1}}
\makeatother
\begin{document}
\title{Title of this paper}
\author{A. Uthor}
\photo{example-image-9x16}
\address{University of Nowhere\\ Somewhere}
\email{[email protected]}
\abstract{This is the abstract, maybe long enough to break
across lines, let's stop here because it seems sufficient.}
\keywords{Abstract, tabularx}
\maketitle
\section{Introduction}
\kant
\end{document}