0

Why did I get this error, "Runaway argument?"

\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}
  \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{First Author         \and
            Second Author %etc.
    }
    
    \institute{ \at
                   $^{1}$ first address \\
                  
                  %\email{[email protected]}           %  \\
    %             \emph{Present address:} of F. Author  %  if needed
               \and
                \at
                    $^{2}$second address
    }
    
    \date{Received: date / Accepted: date}
    % The correct dates will be entered by the editor
    
    \maketitle
    \begin{abstract}
    \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}
    \end{document}
    % end of file template.tex

Update: How to remove the space between the two lines?

enter image description here

6
  • No, the same error!
    – ayla
    Commented Sep 30, 2023 at 22:41
  • I update the question
    – ayla
    Commented Sep 30, 2023 at 22:51
  • I added the \documentclass
    – ayla
    Commented Sep 30, 2023 at 22:53
  • removing the blank lines makes the example run without error Commented Sep 30, 2023 at 22:56
  • Where ? please?
    – ayla
    Commented Sep 30, 2023 at 22:59

1 Answer 1

0

The error is complaining about misplaced \par (blank lines). This runs without error.

\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}
  \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{First Author         \and
            Second Author %etc.
    }
    
    \institute{ \at
                   $^{1}$ first address \\
                  %\email{[email protected]}           %  \\
    %             \emph{Present address:} of F. Author  %  if needed
               \and
                \at
                    $^{2}$second address
    }
    
    \date{Received: date / Accepted: date}
    % The correct dates will be entered by the editor
    
    \maketitle
    \begin{abstract}
    \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}
    \end{document}
4
  • Thank you, How to remove the space between the two lines?
    – ayla
    Commented Sep 30, 2023 at 23:10
  • @ayla the space in the input? just delete it in your editor. The spacing of the output is chosen by Springer, don't change it. Commented Sep 30, 2023 at 23:12
  • I mean of the output, between first address and the second address. Ok thanks a lot :)
    – ayla
    Commented Sep 30, 2023 at 23:17
  • @ayla remove the \\ after the first author address (the second address is on a new line anyway, so that is just forcing space) Commented Sep 30, 2023 at 23:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .