在作者隶属下添加电子邮件

在作者隶属下添加电子邮件

我如何重新格式化以下内容以使其看起来像 NAACL 一样:

​%\author{Mona Jalal \\
%  Computer Science Department \\ Boston University \\
%  {\tt [email protected]} \\\And
%  Kate K. Mays, Lei Guo \\
%  Emerging Media Studies \\ Boston University\\
%  {\tt [email protected]} \\
%  {\tt [email protected]} \\\And
%    Margrit Betke \\
%  Computer Science Department \\ Boston University\\
%  {\tt [email protected]} \\}
\author[*]{Mona Jalal}
\author[**]{Kate K. Mays}
\author[**]{Lei Guo}
\author[*]{Margrit Betke}
\affil[*]{Computer Science Department, Boston University}
\affil[**]{Emerging Media Studies, Boston University}

基本上,我想在我们都拥有相同域名的隶属关系下添加{jalal,kkmays,guolei,betke}@bu.edu。 在此处输入图片描述

我们的当前样子是这样的: 在此处输入图片描述

%
% File naaclhlt2018.tex
%
%% Based on the style files for NAACL-HLT 2018, which were
%% Based on the style files for ACL-2015, with some improvements
%%  taken from the NAACL-2016 style
%% Based on the style files for ACL-2014, which were, in turn,
%% based on ACL-2013, ACL-2012, ACL-2011, ACL-2010, ACL-IJCNLP-2009,
%% EACL-2009, IJCNLP-2008...
%% Based on the style files for EACL 2006 by 
%%[email protected] or [email protected]
%% and that of ACL 08 by Joakim Nivre and Noah Smith

\documentclass[11pt,a4paper]{article}
\usepackage{authblk}
\usepackage[hyperref]{naaclhlt2018}
\usepackage{times}
\usepackage{graphicx}
\usepackage{latexsym}
\usepackage{array}
\usepackage{lipsum}
\usepackage [english]{babel}
\usepackage [autostyle, english = american]{csquotes}
\MakeOuterQuote{"}
\usepackage{url}

\aclfinalcopy % Uncomment this line for the final submission
%def\aclpaperid{61} %  Enter the acl Paper ID here
%setlength\titlebox{5cm}
% You can expand the titlebox if you need extra space
% to show all the authors. Please do not make the titlebox
% smaller than 5cm (the original size); we will check this
% in the camera-ready version and ask you to change it back.

\newcommand\BibTeX{B{\sc bib}\TeX}

\title{paper title}

%\author{Mona Jalal \\
%  Computer Science Department \\ Boston University \\
%  {\tt [email protected]} \\\And
%  Kate K. Mays, Lei Guo \\
%  Emerging Media Studies \\ Boston University\\
%  {\tt [email protected]} \\
%  {\tt [email protected]} \\\And
%    Margrit Betke \\
%  Computer Science Department \\ Boston University\\
%  {\tt [email protected]} \\}
\author[*]{Mona Jalal}
\author[**]{Kate K. Mays}
\author[**]{Lei Guo}
\author[*]{Margrit Betke}
\affil[*]{Computer Science Department, Boston University}
\affil[**]{Emerging Media Studies, Boston University} 


%%\renewcommand\Authands{  }
%%\date{}

答案1

我修改了您用来提供选项的包\affil中的命令,即基本上删除了计数器显示。我并没有清理代码。naaclhlt2018email

\documentclass[11pt,a4paper]{article}
\usepackage{authblk}
\usepackage[hyperref]{naaclhlt2018}
\usepackage{times}
\usepackage{graphicx}
\usepackage{latexsym}
\usepackage{array}
\usepackage{lipsum}
\usepackage [english]{babel}
\usepackage [autostyle, english = american]{csquotes}
\MakeOuterQuote{"}
\usepackage{url}

\aclfinalcopy % Uncomment this line for the final submission
%def\aclpaperid{61} %  Enter the acl Paper ID here
%setlength\titlebox{5cm}
% You can expand the titlebox if you need extra space
% to show all the authors. Please do not make the titlebox
% smaller than 5cm (the original size); we will check this
% in the camera-ready version and ask you to change it back.

\newcommand\BibTeX{B{\sc bib}\TeX}

\title{paper title}


\makeatletter
\newcommand\email[2][]%
   {\newaffiltrue\let\AB@blk@and\AB@pand
      \if\relax#1\relax\def\AB@note{\AB@thenote}\else\def\AB@note{\relax}%
        \setcounter{Maxaffil}{0}\fi
      \begingroup
        \let\protect\@unexpandable@protect
        \def\thanks{\protect\thanks}\def\footnote{\protect\footnote}%
        \@temptokena=\expandafter{\AB@authors}%
        {\def\\{\protect\\\protect\Affilfont}\xdef\AB@temp{#2}}%
         \xdef\AB@authors{\the\@temptokena\AB@las\AB@au@str
         \protect\\[\affilsep]\protect\Affilfont\AB@temp}%
         \gdef\AB@las{}\gdef\AB@au@str{}%
        {\def\\{, \ignorespaces}\xdef\AB@temp{#2}}%
        \@temptokena=\expandafter{\AB@affillist}%
        \xdef\AB@affillist{\the\@temptokena \AB@affilsep
          \AB@affilnote{}\protect\Affilfont\AB@temp}%
      \endgroup
       \let\AB@affilsep\AB@affilsepx
}
\makeatother

%\author{Mona Jalal \\
%  Computer Science Department \\ Boston University \\
%  {\tt [email protected]} \\\And
%  Kate K. Mays, Lei Guo \\
%  Emerging Media Studies \\ Boston University\\
%  {\tt [email protected]} \\
%  {\tt [email protected]} \\\And
%    Margrit Betke \\
%  Computer Science Department \\ Boston University\\
%  {\tt [email protected]} \\}
\author[*]{Mona Jalal}
\author[**]{Kate K. Mays}
\author[**]{Lei Guo}
\author[*]{Margrit Betke}
\affil[*]{Computer Science Department, Boston University}
\email{\url{{betke,test}@bu.edu}}
\affil[**]{Emerging Media Studies, Boston University}
\email{\url{{betke,test}@bu.edu}}
\begin{document}
\maketitle
\end{document}

相关内容