[Tex/LaTex] Why are the article keywords not visible when using elsarticle class

elsarticlekeywords

I'm preparing a manuscript using Elsevier provided latex template.

I want to have final view like this published paper, as article info is present besides abstract Elsevier published paper view
Using below elsevier provided template's latex code

\documentclass[times,referee,twocolumn,final,authoryear]{elsarticle}
\usepackage{ycviu}
\usepackage{framed,multirow}
\usepackage{amssymb}
\usepackage{latexsym}
\usepackage{url}
\usepackage{xcolor}
\definecolor{newcolor}{rgb}{.8,.349,.1}


\journal{Computer Vision and Image Understanding}

\begin{document}

\ifpreprint
  \setcounter{page}{1}
\else
  \setcounter{page}{1}
\fi

\begin{frontmatter}

\title{Type the title of your paper, only capitalize first
word and proper nouns}

\author[1]{Fname \snm{Sname}} 

\received{1 May 2013}
\finalform{10 May 2013}
\accepted{13 May 2013}
\availableonline{15 May 2013}
\communicated{S. Sarkar}


\begin{abstract}
Type your abstract here....
\end{abstract}

\begin{keyword}
\MSC 41A05\sep 41A10\sep 65D05\sep 65D17
\KWD Keyword1\sep Keyword2\sep Keyword3

%% MSC codes here, in the form: \MSC code \sep code
%% or \MSC[2008] code \sep code (2000 is the default)
\end{keyword}

\end{frontmatter}

I'm getting below view
enter image description here
Here keywords are not visible in its output pdf file. I tried already provided solutions on this website i.e. put keywords , keywords not showing and keywords but no one is working as required.

Best Answer

The template asks you to use the journal style by doing \usepackage{ycviu}.

In this package I find the definition of the keyword environment as

% Keyword
\def\keyword{%
  \def\sep{\newline}%
  \def\MSC{\@ifnextchar[{\@MSC}{\@MSC[2000]}}%
  \def\@MSC[##1]{\leavevmode\hbox {\it ##1~MSC:}\newline}%
  \def\JEL{\newline\leavevmode\hbox {\it JEL:\space}}%
  \def\KWD{%
   \vspace*{10pt}\newline
   \leavevmode\hbox {\it Keywords:}\newline}%
  \global\setbox\keybox=\hbox\bgroup\hsize=.3\textwidth%
  \fontsize{8pt}{10pt}\selectfont%
  \parskip\z@%
  \noindent%
  \ignorespaces}
\def\endkeyword{\egroup}

The environment typesets its contents and saves the result in the box named \keybox. The only other place where \keybox appears is in the definition of \articleinfobox

\def\articleinfobox{
    \parbox[t]{.35\textwidth}{%
    \fontsize{8pt}{10pt}\selectfont%
    [...irrelevant code here...]
    \hrule
    \vspace*{1pc}
    \unhbox\keybox}
}

However, \articleinfobox appears nowhere else.

This just means that the copy editors of the journal have a different version of ycviu they use for the final version.

What you're provided with is a version of the package that's suitable for submissions to the journal and to produce the copy for the referees. Just don't worry. You can't replicate the final product yourself and I see good reasons for this: you won't be able to emulate the final form of the article pretending it has been published.

Related Question