svjour.cls:从作者姓名中修剪作者所属关系以显示在页眉中?

svjour.cls:从作者姓名中修剪作者所属关系以显示在页眉中?

我正在用Springer LaTeX 课程。当我添加作者所属机构时,它们也会出现在论文标题中。我不希望发生这种情况。

以下是文件中代码的相关部分svjour3.cls,负责将作者的姓名放在页眉中:

\if!\the\authorrunning!
\else
  \setcounter{auth}{1}%
  \edef\@author{\the\authorrunning}%
\fi
\ifnum\value{inst}>\authdepth
   \def\stripauthor##1\and##2\endauthor{%
   \protected@xdef\@author{##1\unskip\unskip\if!##2!\else\ et al.\fi}}%
   \expandafter\stripauthor\@author\and\endauthor
\else
   \gdef\and{\unskip, \ignorespaces}%
   {\def\and{\noexpand\protect\noexpand\and}%
   \protected@xdef\@author{\@author}}
\fi
\global\setbox\authrun=\hbox{\small\rmfamily\unboldmath\ignorespaces
                             \@author\unskip}%
\ifdim\wd\authrun>\instindent
\typeout{^^JSVJour3 Warning: Author name(s) too long for running head.
         ^^JPlease supply a shorter form with \string\authorrunning
         \space prior to \string\maketitle}%
\global\setbox\authrun=\hbox{\small\rmfamily Please give a shorter version
      with: {\tt\string\authorrunning\space and
         \string\titlerunning\space prior to \string\maketitle}}%
\fi
\xdef\@author{\copy\authrun}%
\markboth{\@author}{\@title}%

以下是模板文件中的代码.tex

%%%%%%%%%%%%%%%%%%%%%%% file template.tex %%%%%%%%%%%%%%%%%%%%%%%%%
%
% This is a general template file for the LaTeX package SVJour3
% for Springer journals.          Springer Heidelberg 2010/09/16
%
% Copy it to a new file with a new name and use it as the basis
% for your article. Delete % signs as needed.
%
% This template includes a few options for different layouts and
% content for various journals. Please consult a previous issue of
% your journal as needed.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% First comes an example EPS file -- just ignore it and
% proceed on the \documentclass line
% your LaTeX will extract the file if required
\begin{filecontents*}{example.eps}
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 19 19 221 221
%%CreationDate: Mon Sep 29 1997
%%Creator: programmed by hand (JK)
%%EndComments
gsave
newpath
  20 20 moveto
  20 220 lineto
  220 220 lineto
  220 20 lineto
closepath
2 setlinewidth
gsave
  .4 setgray fill
grestore
stroke
grestore
\end{filecontents*}
%
\RequirePackage{fix-cm}
%
%\documentclass{svjour3}                     % onecolumn (standard format)
%\documentclass[smallcondensed]{svjour3}     % onecolumn (ditto)
\documentclass[smallextended]{svjour3}       % onecolumn (second format)
%\documentclass[twocolumn]{svjour3}          % twocolumn
%
\smartqed  % flush right qed marks, e.g. at end of proof
%
\usepackage{graphicx}
\usepackage{scrtime}
% fnpct instead of footmisc:
\usepackage[dont-mess-around]{fnpct}

% patch \maketitle:
\usepackage{etoolbox}
\newcommand*{\affaddr}[1]{#1} % No op here. Customize it for different styles.
\newcommand*{\affmark}[1][*]{\textsuperscript{#1}}

\begin{document}

\title{Insert your title here%\thanks{Grants or other notes
%about the article that should go on the front page should be
%placed here. General acknowledgments should be placed at the end of the article.}
}
\subtitle{Do you have a subtitle?\\ If so, write it here}

%\titlerunning{Short form of title}        % if too long for running head

\author{%
Hatem A. EL-Azab {\protect\affmark[1]} \and Author B\affmark[1] \and Author C\affmark[1] \and Author D\affmark[2] \and Author E\affmark[2]
}

%\authorrunning{Short form of author list} % if too long for running head

\institute{
              first address \\
              Tel.: +123-45-678910\\
              Fax: +123-45-678910\\
              \email{[email protected]}           %  \\
%             \emph{Present address:} of F. Author  %  if needed
           \and
           S. Author \at
              second address\\
              \affaddr{\affmark[1]Department of Computer Science}\\
\affaddr{\affmark[2]Department of Mechanical Engineering}\\
\affaddr{\LaTeX\ University}%
}

\date{Received: date / Accepted: date}
% The correct dates will be entered by the editor


\maketitle

\begin{abstract}
Insert your abstract here. Include keywords, PACS and mathematical
subject classification numbers as needed.
\keywords{First keyword \and Second keyword \and More}
% \PACS{PACS code1 \and PACS code2 \and more}
% \subclass{MSC code1 \and MSC code2 \and more}
\end{abstract}

\section{Introduction}
\label{intro}
Your text comes here. Separate text sections with
\section{Section title}
\label{sec:1}
Text with citations \cite{RefB} and \cite{RefJ}.
\subsection{Subsection title}
\label{sec:2}
as required. Don't forget to give each section
and subsection a unique label (see Sect.~\ref{sec:1}).
\paragraph{Paragraph headings} Use paragraph headings as needed.
\begin{equation}
a^2+b^2=c^2
\end{equation}

% For one-column wide figures use
\begin{figure}
% Use the relevant command to insert your figure file.
% For example, with the graphicx package use
  \includegraphics{example.eps}
% figure caption is below the figure
\caption{Please write your figure caption here}
\label{fig:1}       % Give a unique label
\end{figure}
%
% For two-column wide figures use
\begin{figure*}
% Use the relevant command to insert your figure file.
% For example, with the graphicx package use
  \includegraphics[width=0.75\textwidth]{example.eps}
% figure caption is below the figure
\caption{Please write your figure caption here}
\label{fig:2}       % Give a unique label
\end{figure*}
%
% For tables use
\begin{table}
% table caption is above the table
\caption{Please write your table caption here}
\label{tab:1}       % Give a unique label
% For LaTeX tables use
\begin{tabular}{lll}
\hline\noalign{\smallskip}
first & second & third  \\
\noalign{\smallskip}\hline\noalign{\smallskip}
number & number & number \\
number & number & number \\
\noalign{\smallskip}\hline
\end{tabular}
\end{table}

\begin{thebibliography}{}
\bibitem{RefJ}
% Format for Journal Reference
Author, Article title, Journal, Volume, page numbers (year)
% Format for books
\bibitem{RefB}
Author, Book title, page numbers. Publisher, place (year)
% etc
\end{thebibliography}

\end{document}
% end of file template.tex

它看起来是这样的:

在此处输入图片描述

作为一个新的 LaTeX 用户,有什么方法可以修剪作者隶属关系以使其不会出现在页眉中?

答案1

最好的解决方案是使用 \authorrunning{}:

\author{%
Hatem A. EL-Azab \affmark[1] \and 
Author B\affmark[1] \and Author C\affmark[1] \and 
Author D\affmark[2] \and 
Author E\affmark[2]
}
\authorrunning{
Hatem A. EL-Azab \and 
Author B \and 
Author C \and 
Author D \and 
Author E
}

相关内容