我正在尝试重现http://faculty.kfupm.edu.sa/ME/mqahtani/Publications/21rib.J.Turbo.pdf。我能够得到类似的东西,但我不能使用 \maketitle,所以我不得不手动输入标题和作者。这是我的最小工作示例:
\documentclass[10pt,english]{article}%{asme2e}
\usepackage{tabu}
\usepackage{multicol}
\usepackage{lipsum}
\usepackage{ragged2e}
\usepackage{geometry}
\geometry{verbose,letterpaper,tmargin=0.6in,bmargin=0.6in,lmargin=0.6in,rmargin=0.6in}
\begin{document}
\noindent
\begin{tabu} to \linewidth{X[2,r,m]@{\hspace{10pt}}|[6pt]@{\hspace{10pt}}X[5,l,m]}
\begin{flushright}
{\Large
Author
}\linebreak
{\small
Address \linebreak
Tel
}
\linebreak
{\Large
Author
}\linebreak
{\small
Address \linebreak
Tel
}\linebreak
{\Large
Author
}\linebreak
{\small
Address \linebreak
Tel
}\linebreak
{\Large
Author
}\linebreak
{\small
Address \linebreak
Tel
}
\end{flushright}
&
\begin{flushleft}
\huge
Test with a long long long long long long long long long long long long long long long long long long long title
\end{flushleft}
\justify
{\it
\lipsum[1-2]
}
\end{tabu}
\begin{multicols}{2}
\lipsum[1-10]
\end{multicols}
\end{document}
是否可以将作者与标题分开,但仍然使用 \author 和 \title?
答案1
这使用titling
。您仍然需要为作者指定大部分格式,因为您还试图获取地址等。但您可以\title
正常使用。此外,它避免了使用 的需要,multicol
这可能会引起麻烦。将您想要排版的段落作为标题块的一部分放入 ,\myabstract{}
以便将它们包含在 中\maketitle
。需要排版两次才能将内容放在正确的位置,因为代码使用了tikzmark
。
\documentclass[10pt,letterpaper,twocolumn]{article}
\usepackage{lipsum}
\usepackage{ragged2e}
\usepackage[margin=0.6in]{geometry}
\usepackage{titling,calc,tikz}
\usetikzlibrary{tikzmark,calc}
\newlength{\bitwidth}
\setlength{\bitwidth}{\textwidth-26pt}
\newlength{\titlewidth}
\setlength{\titlewidth}{5\bitwidth/7}
\newlength{\authorwidth}
\setlength{\authorwidth}{2\bitwidth/7}
\newlength{\normalparindent}
\setlength{\normalparindent}{\parindent}
\pretitle{\begin{minipage}{\titlewidth}\tikzmark{t1}\begin{flushleft}\tikzmark{t2}\huge}
\posttitle{\end{flushleft}\par\vskip 1em\itshape\setlength{\parindent}{\normalparindent}\noindent\artabstract\tikzmark{b}\par\vskip .5em\end{minipage}\par\vskip 1.5em }
\preauthor{\begin{minipage}{\authorwidth}\begin{flushright}\Large}
\postauthor{\end{flushright}\end{minipage}}
\predate{\relax}
\postdate{\relax}
\renewcommand{\maketitlehookb}{\hspace{13pt}\tikzmark{m}\hspace{13pt}}
\newcommand{\artabstract}{\relax}
\newcommand{\myabstract}[1]{\renewcommand{\artabstract}{#1}}
\makeatletter
\def\@maketitle{% modified from titling.sty
\newpage%
\null%
\setlength{\parindent}{0pt}%
\vskip 2em%
\vspace*{\droptitle}%
\maketitlehooka%
{\@bspreauthor \@author \@bspostauthor}%
\maketitlehookb%
{\@bspretitle \@title \@bsposttitle}%
\maketitlehookc%
{\@bspredate \@date \@bspostdate}%
\maketitlehookd}
\makeatother
\title{Test with a long long long long long long long long long long long long long long long long long long long title}
\author{Author\\{\small Address\\Tel}\bigskip\\Author\\{\small Address\\Tel}\bigskip\\Author\\{\small Address\\Tel}\bigskip\\Author\\{\small Address\\Tel}}
\date{}
\myabstract{\lipsum[1-2]\par This is just here to avoid the peculiarities in spacing caused by dummy text.}
\begin{document}
\maketitle
\begin{tikzpicture}[remember picture, overlay]
\path [draw, line width=6pt] ($({pic cs:t1} -| {pic cs:m})!1/2!({pic cs:t2} -| {pic cs:m})$) -- ({pic cs:b} -| {pic cs:m});
\end{tikzpicture}
\lipsum[1-4]
\end{document}
给\lipsum[1-4]
了我一个坏盒子警告。\lipsum[1-10]
给了我两个。
编辑
要删除地址和电话号码之间的多余空格,请按如下方式格式化作者:
\author{Author\\{\small Address\\Tel\bigskip\\}Author\\{\small Address\\Tel\bigskip\\}Author\\{\small Address\\Tel\bigskip\\}Author\\{\small Address\\Tel\\}}