我很新使用LyX,但查看过这个论坛,以及其他人,还没有发现任何其他人遇到过这个问题。LyX - 标题,摘要,关键字在视图中使用Elsevier类时丢失
问题是,当我点击'眼睛'以.pdf形式预览我的文档时,有两个带有相应正文文本的编号部分,但是我的标题,摘要和关键字以及'新页面'的格式都丢失了;这两个部分位于页面的顶部,好像他们从未被包括在内。
一些相关信息:
- LyX的最近被安装(近一周内)
- 我运行OSX 10.9.5
- 我LyX的版本是2.1.3
- 我使用的是爱思唯尔文档类
以下是TeX的源:
% Preview source code
%% LyX 2.1.3 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[letterpaper,english]{elsarticle}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\pdfpageheight\paperheight
\pdfpagewidth\paperwidth
\makeatother
\usepackage{babel}
\begin{document}
\title{ This is where my title is }
\author{My name}
\begin{abstract}
Abstract: This is my abstarct.\end{abstract}
\begin{keyword}
Keywords: Keyword1, Keyword2, Keyword 3
\end{keyword}
\newpage{}
\section{Introduction}
My intro text
\section{Literature Review}
My body text
\end{document}
在此先感谢您花时间阅读本文并提供帮助!
-Mike
EDIT1:标题之前和之后的关键字加入\begin{frontmatter}{}
和\end{frontmatter}{}
后,事情似乎工作(即标题,关键词,摘要和作者所有工作。) - 不爱思唯尔文档类强制这个表示这些项目时使用?