Re: LaTeX problem

Liste des GroupesRevenir à ct tex 
Sujet : Re: LaTeX problem
De : ud.usenetcorrespondence (at) *nospam* web.de (Ulrich D i e z)
Groupes : comp.text.tex
Date : 08. Apr 2025, 04:50:40
Autres entêtes
Message-ID : <vt26e4$tfhb$1@solani.org>
References : 1 2 3 4 5
User-Agent : Mozilla/5.0 (X11; Linux i686 on x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
I wrote:

db wrote:
 
But now there is a new problem. The title appears on both
pp. 1 and 2, the first without, the second with that Abstract.
What do I do now?
 
In mini.tex you have both  \maketitle and
\begin{frontmatter}...\end{frontmatter}
while in elsarticle.cls the frontmatter-environment is defined as
\newenvironment{frontmatter}{}{\maketitle}.
 
Thus you have \maketitle twice and get two title pages.
 
Probably commenting out \maketitle and keeping the
frontmatter-environment does the trick.

\documentclass[article,12pt,sort&compress]{elsarticle}
% Use those packages that you need, by uncommenting.
\usepackage[text={16cm,25cm},centering]{geometry}
\usepackage{amsmath,amssymb,amsfonts}%
\usepackage{amsthm}%
\usepackage{mathrsfs}%
\usepackage{xcolor}%
\usepackage{color,soul}%
\usepackage{textcomp}%
\usepackage{manyfoot}%
\usepackage{booktabs}%
\usepackage{lineno}%
\renewcommand{\baselinestretch}{1.5}
\newcommand{\del}{\ensuremath{\partial}}

\begin{document}
\begin{frontmatter}
  \title{Test}
  \author{}
  %% The command "\end{frontmatter}" does \maketitle for you, thus
  %% turn "\maketitle" into a comment here as otherwise you get
  %% two pages with title:
  %\maketitle
  \journal{International journal of electrochemical science}
  \biboptions{comma,square}
  \begin{abstract}...\end{abstract}
  \begin{keyword}bla bla\end{keyword}
\end{frontmatter}

Some text

\end{document}



Ulrich

Date Sujet#  Auteur
6 Apr 25 * LaTeX problem8db
6 Apr 25 +- Re: LaTeX problem1Athel Cornish-Bowden
6 Apr 25 +- Re: LaTeX problem1Marckus
7 Apr 25 `* Re: LaTeX problem5Ulrich D i e z
7 Apr 25  `* Re: LaTeX problem4db
7 Apr 25   `* Re: LaTeX problem3db
8 Apr 25    `* Re: LaTeX problem2Ulrich D i e z
8 Apr 25     `- Re: LaTeX problem1Ulrich D i e z

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal