首页 最新 热门 推荐

  • 首页
  • 最新
  • 热门
  • 推荐

Latex使用,插入标题,摘要,关键字,变量,公式,图片,参考文献。未完待续

  • 25-03-03 22:01
  • 4691
  • 9311
blog.csdn.net

Latex使用,插入标题,摘要,关键字,变量,公式,图片,参考文献。未完待续

  1. \documentclass{article}
  2. \usepackage{indentfirst}%设置段落首行缩进
  3. \usepackage{booktabs}%插入表格时需要调用的包
  4. \usepackage{graphicx}%插入图片时需要调用的包
  5. \usepackage{subfigure}%插入图片时需要调用的包
  6. \usepackage{algorithm}%写算法时需要调用的包
  7. \usepackage{algorithmic}%写算法时需要调用的包
  8. \usepackage{setspace}%修改行间距需要调用的包
  9. \title{Your Title}%你的文章题目
  10. \author{Richard}%作者姓名
  11. \date{\today}%自动显示今天的日期
  12. \begin{document}
  13. \maketitle%这句必须有,否则无法显示标题
  14. \begin{abstract}
  15. Your abstract.\\%“\\”放在段尾,表示另起一行的意思
  16. \par\textbf{Keywords: } Keyword1; Keyword2; Keyword3%“\par在段首,表示另起一行,“\textbf{}”,花括号内的内容加粗显示
  17. \end{abstract}
  18. \newpage%另起一页
  19. \section{Intruction}
  20. \subsection{Intruction}
  21. \subsubsection{Intruction}
  22. \begin{equation}%插入公式
  23. a=b.
  24. \end{equation}
  25. \begin{figure}[h]%插入图片
  26. \centering%图片居中显示
  27. \includegraphics[scale=0.7]{Figures/a.png}%花括号内为图片相对路径
  28. \caption{Caption of this picture.}%图片标题
  29. \label{fig0}%图片label,便于文中引用
  30. \end{figure}
  31. \begin{table}[htb]%插入表格
  32. \caption{Caption of this table}
  33. \centering
  34. \begin{tabular}{ccccccccc}
  35. \toprule
  36. a&b&c\\%结尾有“\\”表示换行
  37. \midrule
  38. 1&2&3\\
  39. \bottomrule
  40. \end{tabular}
  41. \end{table}
  42. \bibliographystyle{splncs04}%插入参考文献splncs04为.dst文件,也就是某一种参考文献的模板
  43. \bibliography{baiduxueshu_papers_20190703091829}%baiduxueshu_papers_20190703091829为.bib文件,即你下载的Bibtex格式的参考文献
  44. \end{document}

去掉preprint submitted to ...

我的texlive安装路径:D:\Latex\texlive\2019\texmf-dist\tex\latex\elsarticle\elsarticle.cls

修改elsarticle.cls中如下代码:

  1. \def\ps@pprintTitle{%
  2. \let\@oddhead\@empty
  3. \let\@evenhead\@empty
  4. \def\@oddfoot{\footnotesize\itshape
  5. Preprint submitted to \ifx\@journal\@empty Elsevier
  6. \else\@journal\fi\hfill\today}%
  7.    \let\@evenfoot\@oddfoot}

改为:

  1. \def\ps@pprintTitle{%
  2. \let\@oddhead\@empty
  3. \let\@evenhead\@empty
  4. \def\@oddfoot{\footnotesize\itshape\hfill\today}%
  5. \let\@evenfoot\@oddfoot}

将日期一并去掉:

  1. \def\ps@pprintTitle{%
  2. \let\@oddhead\@empty
  3. \let\@evenhead\@empty
  4. \def\@oddfoot{\reset@font\hfil\thepage\hfil}
  5. \let\@evenfoot\@oddfoot}

 

注:本文转载自blog.csdn.net的血雨腥风霜的文章"https://blog.csdn.net/weixin_41466947/article/details/94719377"。版权归原作者所有,此博客不拥有其著作权,亦不承担相应法律责任。如有侵权,请联系我们删除。
复制链接
复制链接
相关推荐
发表评论
登录后才能发表评论和回复 注册

/ 登录

评论记录:

未查询到任何数据!
回复评论:

分类栏目

后端 (14832) 前端 (14280) 移动开发 (3760) 编程语言 (3851) Java (3904) Python (3298) 人工智能 (10119) AIGC (2810) 大数据 (3499) 数据库 (3945) 数据结构与算法 (3757) 音视频 (2669) 云原生 (3145) 云平台 (2965) 前沿技术 (2993) 开源 (2160) 小程序 (2860) 运维 (2533) 服务器 (2698) 操作系统 (2325) 硬件开发 (2491) 嵌入式 (2955) 微软技术 (2769) 软件工程 (2056) 测试 (2865) 网络空间安全 (2948) 网络与通信 (2797) 用户体验设计 (2592) 学习和成长 (2593) 搜索 (2744) 开发工具 (7108) 游戏 (2829) HarmonyOS (2935) 区块链 (2782) 数学 (3112) 3C硬件 (2759) 资讯 (2909) Android (4709) iOS (1850) 代码人生 (3043) 阅读 (2841)

热门文章

101
推荐
关于我们 隐私政策 免责声明 联系我们
Copyright © 2020-2025 蚁人论坛 (iYenn.com) All Rights Reserved.
Scroll to Top