[轉載]elsarticle使用入門3

elsarticle使用入門3

覺得有用的話,歡迎一起討論相互學習~Follow Me

轉載地址
https://blog.csdn.net/qq_36607894/article/details/100560421

elsarticle.cls要用到的一些包

  • natbib.sty 處理引用 for citation processing,處理各種各樣的引用,和hyperref.sty,hypernat.sty一起完美工作
  • geometry.sty 頁邊距設置 for margin settings
  • fleqn.clo 左對齊公式 for left aligned equations
  • graphicx.sty 加入圖像 for graphics inclusion
  • txfonts.sty 其他字體,可選的包optional font package, if the document is to be formatted with Times and compatible math fonts
  • hyperref.sty 如果文章要使用超鏈接,則需要這個包optional packages if hyperlinking is required in the document
  • endfloat.sty 把所有floats(圖,表等)放在文末則需要用 optional packages if floats to be placed at end of the PDF.
  • ams的數學包比如 amsmath.sty, amsthm.sty, amssymb.sty, amsfonts.sty都是免費隨便用的,developed by
    the American Mathematical Society美國數學協會開發的
  • hypernat.sty
  • graphicx.sty, is part of any standard LATEX distribution, is loaded by default.
  • multirow.sty, array.sty做表格的,進一步增強和調整表格,需要自己load(\usepackage{})

關於圖像格式:
LATEX accepts figures in the postscript format ,比如eps
while pdfLATEX accepts *.pdf, *.mps (metapost), *.jpg and *.png formats. pdfLATEX does not accept graphic files in the postscript format.

elsarticle.cls is built upon article.cls ,基於article.clc的,所以All options of article.cls can be used with this document class。

preprint and final formats的區別

  • preprint document formatting(默認):default option which format the document for submission to
    Elsevier journals

preprint是提交給期刊審覈用的,默認單欄,文本寬度384pt. When you use elsarticle.cls for formatting your submissions in the preprint mode, the document is formatted in single column style with a text width of 384pt or 5.3in.

  • formats the document as per the final style of models 1+, 3+ and 5+ of Elsevier journals

final print是出版的最終版,如果期刊是雙欄的就要改格式,容易遇到公式斷裂的現象。 When this document is formatted for final print and if the journal happens to be a double column journal, the text width will be reduced to 224pt at for 3+ double column and 5+ journals respectively.

最終版主要是要注意對應期刊的紙張尺寸和頁面邊距format their submission to the page size and margins of their preferred journal
在這裏插入圖片描述在這裏插入圖片描述在這裏插入圖片描述在這裏插入圖片描述

TEX needs two compilations to resolve the footnote marks in the preamble part

好神奇!!!竟然需要編譯兩次,親自嘗試,如果只編譯一次,email address和url就不出來,這就是因爲腳註還沒解析好,牛逼

用elsarticle.ins生成elsarticle.cls

elsarticle.ins is the LATEX installer file安裝文件,用latex編譯它就可以得到cls文件(類文件,class文件)
先打開elsarticle所在路徑,然後調用latex命令,結果太長我不粘了,但是cls文件確實成功生成了

Microsoft Windows [版本 10.0.17134.112]
(c) 2018 Microsoft Corporation。保留所有權利。

C:\Users\Administrator>e:

E:<span class=“token operator”>>cd 2nd paper\投稿期刊模板\information fusion\elsarticle\elsarticle

E:\2nd paper\投稿期刊模板\information fusion\elsarticle\elsarticle>latex elsarticle.ins

*************************************************************
*                                                           *
* To finish the installation you have to move the following *
* file into a directory searched by TeX:                    *
*                                                           *
*     elsarticle.cls                                        *
*         and                                               *
*     elsarticle-*.bst                                      *
*                                                           *
* To produce the documentation go to the ../contrib folder  *
* and run the file elsdoc.tex through pdfLaTeX              *
* or use the Makefile which is far more easier.             *
*                                                           *
* Happy TeXing!                                             *
*                                                           *
*************************************************************

在這裏插入圖片描述
然後把生成的cls文件複製到D:\texlive\texmf-local\tex\latex\elsevier路徑,也可以放在別的latex編譯時可以搜索到的路徑下
然後更新latex的文件數據庫,用texlive發行版texhash命令,miktex發行版好像是用mktexlsr

E:\2nd paper\投稿期刊模板\information fusion\elsarticle\elsarticle>texhash
texhash: Updating D:/texlive/texmf-local/ls-R...
texhash: Updated D:/texlive/texmf-local/ls-R.
texhash: Updating D:/texlive/2019/texmf-config/ls-R...
texhash: Updated D:/texlive/2019/texmf-config/ls-R.
texhash: Updating D:/texlive/2019/texmf-var/ls-R...
texhash: Updated D:/texlive/2019/texmf-var/ls-R.
texhash: Updating D:/texlive/2019/texmf-dist/ls-R...
texhash: Updated D:/texlive/2019/texmf-dist/ls-R.
texhash: Done.

E:\2nd paper\投稿期刊模板\information fusion\elsarticle\elsarticle>

frontmatter(title,author,abstract,keyword)

作者們寫在一起,機構用腳註表示

each author is connected to an affiliation with a footnote marker; hence all authors are grouped together and affiliations follow;

%% 下面是所有作者一起寫的格式
\title{This is a specimen title\tnoteref{t1,t2}}
\tnotetext[t1]{This document is the results of the research
	project funded by the National Science Foundation.}
\tnotetext[t2]{The second title footnote which is a longer
	text matter to fill through the whole text width and
	overflow into another line in the footnotes area of the
	first page.}
\author[1]{Jos Migchielsen\corref{cor1}%
	\fnref{fn1}}
\ead{[email protected]}
\author[2]{CV Radhakrishnan\fnref{fn2}}
\ead{[email protected]}
\author[3]{CV Rajagopal\fnref{fn1,fn3}}
\ead[url]{www.stmdocs.in}
\cortext[cor1]{Corresponding author}
\fntext[fn1]{This is the first author footnote.}
\fntext[fn2]{Another author footnote, this is a very long
	footnote and it should be a really long footnote. But this
	footnote is not yet sufficiently long enough to make two
	lines of footnote text.}
\fntext[fn3]{Yet another author footnote.}
\address[1]{Elsevier B.V., Radarweg 29, 1043 NX Amsterdam,
	The Netherlands}
\address[2]{Sayahna Foundations, JWRA 34, Jagathy,
	Trivandrum 695014, India}
\address[3]{STM Document Engineering Pvt Ltd., Mepukada,
	Malayinkil, Trivandrum 695571, India}

效果
在這裏插入圖片描述
在這裏插入圖片描述

同一個機構的作者寫在一起,相關機構跟在後面

authors of same affiliations are grouped together and the relevant affiliation follows this group

%% 下面是不同機構作者分開寫的格式
\title{This is a specimen title\tnoteref{t1,t2}}
\tnotetext[t1]{This document is the results of the research
	project funded by the National Science Foundation.}
\tnotetext[t2]{The second title footnote which is a longer
	text matter to fill through the whole text width and
	overflow into another line in the footnotes area of the
	first page.}
\author{Jos Migchielsen\corref{cor1}%
	\fnref{fn1}}
\ead{[email protected]}
\address{Elsevier B.V., Radarweg 29, 1043 NX Amsterdam,
	The Netherlands}
\author{CV Radhakrishnan\fnref{fn2}}
\ead{[email protected]}
\address{Sayahna Foundations, JWRA 34, Jagathy,
	Trivandrum 695014, India}
\author{CV Rajagopal\fnref{fn1,fn3}}
\ead[url]{www.stmdocs.in}
\address{STM Document Engineering Pvt Ltd., Mepukada,
	Malayinkil, Trivandrum 695571, India}
\cortext[cor1]{Corresponding author}
\fntext[fn1]{This is the first author footnote.}
\fntext[fn2]{Another author footnote, this is a very long
	footnote and it should be a really long footnote. But this
	footnote is not yet sufficiently long enough to make two lines
	of footnote text.}
\fntext[fn3]{Yet another author footnote.}

效果在這裏插入圖片描述在這裏插入圖片描述

doubleblind選項

不顯示作者和機構和郵箱信息
To hide author name, affiliation, email address etc. for double blind refereeing purpose.

\documentclass[preprint,12pt,doubleblind]{elsarticle}

在這裏插入圖片描述在這裏插入圖片描述

%\newpageafter{title}%標題後新起一頁
%\newpageafter{author}
%\newpageafter{abstract}

用enumerate改變列表list的計數器counter和屬性

\begin{enumerate}[1.]
	\item The enumerate environment starts with an optional
	argument ‘1.’, so that the item counter will be suffixed
	by a period.
	\item You can use ‘a)’ for alphabetical counter and ’(i)’ for
	roman counter.
	\begin{enumerate}[a)]
		\item Another level of list with alphabetical counter.
		\item One more item before we start another.
		\begin{enumerate}[(i)]
			\item This item has roman numeral counter.
			\item Another one before we close the third level.
			\end{enumerate}
		\item Third item in second level.
	\end{enumerate}
	\item All list items conclude with this step.
\end{enumerate}
\begin{enumerate}[Step 1.]
	\item This is the first step of the example list.
	\item Obviously this is the second step.
	\item The final step to wind up this example.
\end{enumerate}

在這裏插入圖片描述

空格

在這裏插入圖片描述

上圖的negative space用於減小距離

The \quad and \qquad commands are often used to adjust aligned formulas or to add space before text in a math formula. The size of \quad (= 1 em) and \qquad (= 2 em) depends on the current font.

18 mu = 1 em

\mspace{3mu} adds a space that is 1/6 em long.

The \, and \! commands are the most useful for fine tuning math formulas,

一些示例

$\sin(x)/\!\log(x)$  \\ %用\!減小距離
$\sqrt{5}\,\text{side}$\\ % \,拉開距離
$\int_{0}^{\pi}\sin x dx=2$\\
$\int_{0}^{\pi}\sin x \, dx=2$\\
$f(1/\sqrt{n})$\\
$f(1/\sqrt{n}\,)$\\
$f: A \to B$\\
$f \colon A \to B$\\ %\colon的spacing效果比:好
$|-f(x)|$\\  %這樣寫的話,spacing不對
$\left|-f(x)\right|$\\  % 要用\left|和\right|

在這裏插入圖片描述

利用已有符號創建新符號

\[
\overset{\alpha}{a} \qquad
\underset{\boldsymbol{\cdot}}{X} \qquad
\overset{\alpha}{ a_{i} } \qquad
\overset{\alpha}{a}_{i}
\]

在這裏插入圖片描述

\phantom命令調整對齊,產生一個空格

\[
A = \begin{pmatrix}
\phantom{-}1 & \phantom{-}3 & \phantom{-}1\\
\phantom{-}2 & \phantom{-}1 & \phantom{-}1\\
-2 & \phantom{-}2 & -1\\
\end{pmatrix}
\]
\begin{align*}
a + b + c & + d \phantom{ {}+e } = 0,\\
c & + d + e = 5.
\end{align*}

在這裏插入圖片描述

\\ 段內強制換行
\newpage 強制換頁
在這裏插入圖片描述在這裏插入圖片描述在這裏插入圖片描述

                                </div>
發佈了266 篇原創文章 · 獲贊 172 · 訪問量 37萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章