按照“sigplanconf”样式将四位作者安排在一行上吗?

按照“sigplanconf”样式将四位作者安排在一行上吗?

是否有一些技巧可以使班级的一行容纳四位作者sigplanconf

无论每位作者的姓名、所属机构和电子邮件有多短,默认情况下,一行只能容纳 3 位作者。

有四位作者会导致大量空间浪费。

理想情况下,我希望得到这个:

                  Article Title

Fname Lname   Fname Lname   Fname Lname   Fname Lname
   dept           dept         dept          dept
  school         school       school        school
 email@edu     email@edu     email@edu     email@edu


     Abstract                .....................
....................         .....................
....................         .....................
....................         .....................

但我得到的却是:

                  Article Title

Fname Lname        Fname Lname       Fname Lname   
   dept               dept              dept       
  school             school            school      
 email@edu          email@edu         email@edu    

                   Fname Lname
                      dept
                     school
                    email@edu

      Abstract               .....................
....................         .....................
....................         .....................
....................         .....................

我可以做些什么来\authorinfo强制它们变宽,或者将 4 个挤压到一列?

我的文档如下所示:

\documentclass[preprint,10pt]{sigplanconf}

\usepackage{amsmath}

\begin{document}

\title{My Title}

\authorinfo{Fname Lname}
           {school}
           {email@edu}
\authorinfo{Fname Lname}
           {school}
           {email@edu}
\authorinfo{Fname Lname}
           {school}
           {email@edu}
\authorinfo{Fname Lname}
           {school}
           {email@edu}

\maketitle

\begin{abstract}
...

答案1

默认情况下,该类sigplanconf按行排版作者,每行最多使用三位作者(这是使用宏完成的\@titleauthors);要改变这种行为,您需要重新定义\maketitle并定义一个命令以允许在一行中排版四位作者(我的示例中的命令\@ivtitleauthors,其定义方式与默认\@titleauthors命令类似):

\documentclass[preprint,10pt]{sigplanconf}
\usepackage{amsmath}

\makeatletter
\def \@ivtitleauthors#1#2#3#4{%
  \if \@andp{\@emptyargp{#2}}{\@emptyargp{#3}}%
    \noindent \@setauthor{40pc}{#1}{\@false}\par
  \else\if \@emptyargp{#3}%
    \noindent \@setauthor{17pc}{#1}{\@false}\hspace{3pc}%
              \@setauthor{17pc}{#2}{\@false}\par
  \else\if \@emptyargp{#4}%
    \noindent \@setauthor{17pc}{#1}{\@false}\hspace{3pc}%
              \@setauthor{17pc}{#3}{\@false}\par
  \else
    \noindent \@setauthor{9.3333pc}{#1}{\@false}\hspace{1.5pc}%
              \@setauthor{9.3333pc}{#2}{\@false}\hspace{1.5pc}%
              \@setauthor{9.3333pc}{#3}{\@false}\hspace{1.5pc}%
              \@setauthor{9.3333pc}{#4}{\@true}\par
    \relax
  \fi\fi\fi
  \vspace{20pt}}
\def \@maketitle {%
  \begin{center}
  \@settitlebanner
  \let \thanks = \titlenote
  {\leftskip = 0pt plus 0.25\linewidth
   \rightskip = 0pt plus 0.25 \linewidth
   \parfillskip = 0pt
   \spaceskip = .7em
   \noindent \LARGE \bfseries \@titletext \par}
  \vskip 6pt
  \noindent \Large \@subtitletext \par
  \vskip 12pt
  \ifcase \@authorcount
    \@latex@error{No authors were specified for this paper}{}\or
    \@titleauthors{i}{}{}\or
    \@titleauthors{i}{ii}{}\or
    \@titleauthors{i}{ii}{iii}\or
    \@ivtitleauthors{i}{ii}{iii}{iv}\or
    \@titleauthors{i}{ii}{iii}\@titleauthors{iv}{v}{}\or
    \@titleauthors{i}{ii}{iii}\@titleauthors{iv}{v}{vi}\or
    \@titleauthors{i}{ii}{iii}\@titleauthors{iv}{v}{vi}%
                  \@titleauthors{vii}{}{}\or
    \@titleauthors{i}{ii}{iii}\@titleauthors{iv}{v}{vi}%
                  \@titleauthors{vii}{viii}{}\or
    \@titleauthors{i}{ii}{iii}\@titleauthors{iv}{v}{vi}%
                  \@titleauthors{vii}{viii}{ix}\or
    \@titleauthors{i}{ii}{iii}\@titleauthors{iv}{v}{vi}%
                  \@titleauthors{vii}{viii}{ix}\@titleauthors{x}{}{}\or
    \@titleauthors{i}{ii}{iii}\@titleauthors{iv}{v}{vi}%
                  \@titleauthors{vii}{viii}{ix}\@titleauthors{x}{xi}{}\or
    \@titleauthors{i}{ii}{iii}\@titleauthors{iv}{v}{vi}%
                  \@titleauthors{vii}{viii}{ix}\@titleauthors{x}{xi}{xii}%
  \else
    \@latex@error{Cannot handle more than 12 authors}{}%
  \fi
  \vspace{1.75pc}
  \end{center}}
\makeatother

\begin{document}

\title{My Title}

\authorinfo{Fname Lname}
           {school}
           {email@edu}
\authorinfo{Fname Lname}
           {school}
           {email@edu}
\authorinfo{Fname Lname}
           {school}
           {email@edu}
\authorinfo{Fname Lname}
           {school}
           {email@edu}

\maketitle

\begin{abstract}

\end{abstract}

\end{document}

在此处输入图片描述

如果您正在为期刊撰写文章,请确保这种更改被接受;否则,请保留原始布局。

相关内容