工欲善其事,必先利其器。使用LaTex写作感觉和写代码差不多,都需要一个好的IDE,Coding我喜欢用VS code,sublime。而LaTex写作,因为我又不是win用户,word用起来稍显费劲,所以着实摸索了一阵子。
先来看看什么是LaTex,在我们的写作软件显示方面,其实可以分为两类:常规的一种是所见即所得,类似于word;而另外一种是所见非所得,类似于Makrdown,Latex,通俗解释便是,你所写的,需要一点点想象(编译),最终才可以显示。如下图所示,使用VS code查看Markdown的即时渲染效果。
LaTeX 是一种基于文本的排版系统,由 Leslie Lamport 开发,是 TeX 系统的一个宏包。LaTeX 尤其擅长处理复杂的文档,如学术论文、书籍、技术文档等。
其特点为
所以,选择latex理由是,当你在word里面插入一张图片而导致整体格式崩了之后,在LaTex这里,甚至不需要考虑,因为编译软件会自动将其放置在合适的位置。
但是其缺点也较为明显,学习曲线较陡,但一旦掌握,其优越性将极大提高文档编写和排版的效率和质量。当然,如果你有coding基础,请自动忽略这个缺点。
推荐两个网站:
下载Elsevier’s elsarticle Journal Template,打开,点击Download Template,并解压
打开其中的tex后缀的文件,你可以看到,在此文章当中:
这个 LaTeX 文件使用 Elsevier 的模板 elsarticle
来创建一个格式规范的文稿。下面对其中的各部分进行详细解释:
\documentclass[review]{elsarticle}
\documentclass[review]{elsarticle}
:指定文档的类为 elsarticle
,并使用 review
选项,这通常用于审稿的版本。\usepackage{lineno,hyperref} \modulolinenumbers[5]
\usepackage{lineno,hyperref}
:导入 lineno
和 hyperref
宏包。lineno
用于显示行号,hyperref
用于创建超链接。\modulolinenumbers[5]
:设置每 5 行显示一次行号。\journal{Journal of \LaTeX\ Templates}
\journal{Journal of \LaTeX\ Templates}
:指定投稿的期刊名称。%%%%%%%%%%%%%%%%%%%%%%% %% Elsevier bibliography styles %%%%%%%%%%%%%%%%%%%%%%%
%% Numbered %\bibliographystyle{model1-num-names} %% Numbered without titles %\bibliographystyle{model1a-num-names} %% Harvard %\bibliographystyle{model2-names.bst}\biboptions{authoryear} %% Vancouver numbered %\usepackage{numcompress}\bibliographystyle{model3-num-names} %% Vancouver name/year %\usepackage{numcompress}\bibliographystyle{model4-names}\biboptions{authoryear} %% APA style %\bibliographystyle{model5-names}\biboptions{authoryear} %% AMA style %\usepackage{numcompress}\bibliographystyle{model6-num-names} %% `Elsevier LaTeX' style \bibliographystyle{elsarticle-num} %%%%%%%%%%%%%%%%%%%%%%%
elsarticle-num
样式。\begin{document} \begin{frontmatter}
\begin{document}
:开始文档主体。\begin{frontmatter}
:开始前置部分,包括标题、作者、摘要等信息。\title{Elsevier \LaTeX\ template\tnoteref{mytitlenote}} \tnotetext[mytitlenote]{Fully documented templates are available in the elsarticle package on \href{http://www.ctan.org/tex-archive/macros/latex/contrib/elsarticle}{CTAN}.}
\title{...}
:定义文档标题。\tnotetext[mytitlenote]{...}
:添加标题注释。%% Group authors per affiliation: \author{Elsevier\fnref{myfootnote}} \address{Radarweg 29, Amsterdam} \fntext[myfootnote]{Since 1880.}
\author{...}
:定义作者。\address{...}
:定义作者地址。\fntext[myfootnote]{...}
:添加脚注。%% or include affiliations in footnotes: \author[mymainaddress,mysecondaryaddress]{Elsevier Inc} \ead[url]{www.elsevier.com} \author[mysecondaryaddress]{Global Customer Service\corref{mycorrespondingauthor}} \cortext[mycorrespondingauthor]{Corresponding author} \ead{support@elsevier.com} \address[mymainaddress]{1600 John F Kennedy Boulevard, Philadelphia} \address[mysecondaryaddress]{360 Park Avenue South, New York}
\ead{...}
:电子邮件地址。\cortext[mycorrespondingauthor]{...}
:指定通讯作者。\begin{abstract} This template helps you to create a properly formatted \LaTeX\ manuscript. \end{abstract} \begin{keyword} \texttt{elsarticle.cls}\sep \LaTeX\sep Elsevier \sep template \MSC[2010] 00-01\sep 99-00 \end{keyword}
\begin{abstract}
:摘要部分。\begin{keyword}
:关键词部分,用 \sep
分隔关键词。\linenumbers
\linenumbers
:启用行号。\section{The Elsevier article class} \paragraph{Installation} If the document class \emph{elsarticle} is not available on your computer, you can download and install the system package \emph{texlive-publishers} (Linux) or install the \LaTeX\ package \emph{elsarticle} using the package manager of your \TeX\ installation, which is typically \TeX\ Live or Mik\TeX.
\section{...}
:定义章节。\paragraph{...}
:定义段落标题。\begin{itemize} \item document style \item baselineskip \item front matter \item keywords and MSC codes \item theorems, definitions and proofs \item labels of enumerations \item citation style and labeling. \end{itemize}
\begin{itemize}
:无序列表。\section*{References} \bibliography{mybibfile}
\section*{References}
:无编号的参考文献章节。\bibliography{mybibfile}
:指定参考文献数据库文件 mybibfile.bib
。\end{document}
\end{document}
:结束文档。这个 LaTeX 文件使用了 Elsevier 的模板,包含了常见的文档结构和功能设置,如行号、标题、作者信息、摘要、关键词和参考文献格式等。通过这些设置,可以轻松创建符合期刊要求的专业文稿。
已经尝试过的软件:VScode, Texstudio,Texmaker,Texshop,TeXmacs。
Attention Please: 以下软件均在MAC M1上面进行的测试,仅供参考。
太长不看版,我感觉Texmaker不错。
VScode可以使用LaTex Workshop的插件,从统一性来说,非常ok,因为,我想使用VS Code完成所有的事情:终端,三维结构显示等等。但是其编译出来的始终会有一些小问题,比如Figure 始终出现(Figure ??),而不是正常的(Figure 4a)
https://www.texstudio.org/
显示不错,编译不错,不过Bug是拉不到底部,如下图所示,我只是可以拉到subsubsection处,即便下面再有内容也无法显示。宛如永远倒不完的蜂蜜罐底。
https://www.xm1math.net/texmaker/
显示不错,可视化不错,使用起来挺舒服的,比较推荐。还有中英文的选项。
https://pages.uoregon.edu/koch/texshop/
功能强大,显示完整,但是使用起来总是有一些不顺手,他并没有显示的给出左右分栏,左源码,右渲染的窗口,渲染的很完美,但是也有(Figure ??)。
https://www.texmacs.org/tmweb/home/welcome.en.html
仅供显示,更像latex和word之间的中间版本,但是我非常喜欢他的菜单栏和排版,简介明了。功能比较弱。