GeneralFirst page blank in two column elsevier template

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
vaniv
Posts: 1
Joined: Fri Aug 14, 2020 2:34 pm

First page blank in two column elsevier template

Post by vaniv »

This is my tex file. The first page is blank, even after trying all the solutions like
  1. Removing maketitle
  2. Removing titlepage
  3. The blank page vanishes if I remove the frontmatter, but removing the front matter will remove the abstract from the first page
Note: I am using Elsevier two column templates. I need the abstract to be in one column and rest of the paper in two columns.
Please help.


Code: Select all

\documentclass[a4paper,10pt,twocolumn,preprint,3p]{elsarticle}


\usepackage{lineno,hyperref}
\usepackage{amsmath}
\usepackage{tabularx}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage{color}


\journal{Journal of \LaTeX\ Templates}

%%%%%%%%%%%%%%%%%%%%%%%


%% Elsevier bibliography styles

\bibliographystyle{elsarticle-num}
%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

\begin{frontmatter}

\twocolumn[
\begin{@twocolumnfalse}

\title{blah blah\tnoteref{mytitlenote}}

\begin{abstract}
sdsaddssad
\end{abstract}

\begin{keyword}
sdasd
\end{keyword}

\end{@twocolumnfalse}]
\end{frontmatter}

\section{Introduction}

sadsada

\end{document}
Last edited by cgnieder on Sun Aug 23, 2020 9:29 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

First page blank in two column elsevier template

Post by rais »

I'm not sure why you tagged this thread as `solved' (isn't that what the green tick is all about?)
Anyway, I'd omit the twocolumn option to the class: you want to start with onecolumn...

If you switch to twocolumn just after your frontmatter, you'd get the frontmatter stuff on the first page (in onecolumn), and everything after in twocolumn.

If you want the switch (onecolumn/twocolumn) be on the same page, just put your frontmatter into the optional argument of \twocolumn

Code: Select all

\documentclass[a4paper,10pt,preprint,3p]{elsarticle}


%\usepackage{lineno,hyperref} %<- hyperref should be loaded last (exceptions are documented either in the hyperref manual or in the documentation of the package in question)
%\usepackage{amsmath}
%\usepackage{tabularx}
%\usepackage{amssymb}
%\usepackage{xcolor}
%\usepackage{color} <- color is loaded by xcolor already
\usepackage{blindtext}

\journal{Journal of \LaTeX\ Templates}

%%%%%%%%%%%%%%%%%%%%%%%


%% Elsevier bibliography styles

\bibliographystyle{elsarticle-num}
%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

\twocolumn[%
\begin{frontmatter}

\title{blah blah\tnoteref{mytitlenote}}

\begin{abstract}
sdsaddssad
\end{abstract}

\begin{keyword}
sdasd
\end{keyword}
(I have omitted the packages you were loading because they did not seem to have any effect on your problem; I did comment on the loading of some of them, though)

KR
Rainer
Post Reply