Latex使用,插入标题,摘要,关键字,变量,公式,图片,参考文献。未完待续
- \documentclass{article}
-
- \usepackage{indentfirst}%设置段落首行缩进
- \usepackage{booktabs}%插入表格时需要调用的包
- \usepackage{graphicx}%插入图片时需要调用的包
- \usepackage{subfigure}%插入图片时需要调用的包
- \usepackage{algorithm}%写算法时需要调用的包
- \usepackage{algorithmic}%写算法时需要调用的包
- \usepackage{setspace}%修改行间距需要调用的包
-
- \title{Your Title}%你的文章题目
- \author{Richard}%作者姓名
- \date{\today}%自动显示今天的日期
-
- \begin{document}
-
- \maketitle%这句必须有,否则无法显示标题
-
- \begin{abstract}
- Your abstract.\\%“\\”放在段尾,表示另起一行的意思
- \par\textbf{Keywords: } Keyword1; Keyword2; Keyword3%“\par在段首,表示另起一行,“\textbf{}”,花括号内的内容加粗显示
- \end{abstract}
- \newpage%另起一页
-
- \section{Intruction}
- \subsection{Intruction}
- \subsubsection{Intruction}
-
- \begin{equation}%插入公式
- a=b.
- \end{equation}
-
- \begin{figure}[h]%插入图片
- \centering%图片居中显示
- \includegraphics[scale=0.7]{Figures/a.png}%花括号内为图片相对路径
- \caption{Caption of this picture.}%图片标题
- \label{fig0}%图片label,便于文中引用
- \end{figure}
-
- \begin{table}[htb]%插入表格
- \caption{Caption of this table}
- \centering
- \begin{tabular}{ccccccccc}
- \toprule
- a&b&c\\%结尾有“\\”表示换行
- \midrule
- 1&2&3\\
- \bottomrule
- \end{tabular}
- \end{table}
-
- \bibliographystyle{splncs04}%插入参考文献splncs04为.dst文件,也就是某一种参考文献的模板
- \bibliography{baiduxueshu_papers_20190703091829}%baiduxueshu_papers_20190703091829为.bib文件,即你下载的Bibtex格式的参考文献
-
-
- \end{document}
去掉preprint submitted to ...
我的texlive安装路径:D:\Latex\texlive\2019\texmf-dist\tex\latex\elsarticle\elsarticle.cls
修改elsarticle.cls中如下代码:
- \def\ps@pprintTitle{%
- \let\@oddhead\@empty
- \let\@evenhead\@empty
- \def\@oddfoot{\footnotesize\itshape
- Preprint submitted to \ifx\@journal\@empty Elsevier
- \else\@journal\fi\hfill\today}%
- \let\@evenfoot\@oddfoot}
改为:
- \def\ps@pprintTitle{%
- \let\@oddhead\@empty
- \let\@evenhead\@empty
- \def\@oddfoot{\footnotesize\itshape\hfill\today}%
- \let\@evenfoot\@oddfoot}
将日期一并去掉:
- \def\ps@pprintTitle{%
- \let\@oddhead\@empty
- \let\@evenhead\@empty
- \def\@oddfoot{\reset@font\hfil\thepage\hfil}
- \let\@evenfoot\@oddfoot}
评论记录:
回复评论: