提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档
文章目录
前言
首先,接下来讲解的文件格式是Expert systems With Applications期刊的格式。
作者投稿指南:官方入口
从首页出发,找到投稿指南的路线如图。(其他期刊的投稿指南同理)
一、Expert systems With Applications期刊的投稿文件格式
二、图片的相关问题
1.图片放置位置
可以放在相关的文字描述部分下面,然后在latex中要引用:\label{fig1}
对图片标注为fig1的名字,然后在适当位置引用\ref{fig1}
。
在文件夹中的情况:新建一个独立文件夹figs
放置所有图片,在latex调用图片时候figs/Fig_1
。
这是关于图片Fig. \ref{fig1}的描述
\begin{figure}
\label{fig1}
\centerline{\includegraphics[height=4cm, width=8cm] {figs/Fig_1}}
\caption{图片标题}
\end{figure}
图片位置控制参数:
\begin{figure}[htbp]
[h]
表示当前位置(here),也就是说图片将放在你设置的当前位置,但是如果这一页的空间不足以放下这个图片,此时图片会转到下一页;
[t]
顶端(top),此时优先将图片放置在页面的顶部;
[b]
底部(bottom)此时优先将图片放置在页面底部;
[p]
将图片设置为浮动状态,系统会自动排版图片的位置;
一般推荐这几个参数结合使用,比如:[ht]
、[htbp]
,此时这几种位置具有优先级。
2.图片标题Figuer变成Fig.的方法
解决方案:修改cas-common.sty文件。在该文件中搜索下面这段话:
\cs_new:Npn \__make_fig_caption:nn #1#2
{
\l_fig_align_tl
\skip_vertical:N \l_fig_abovecap_skip
% \bool_if:NTF \g_fig_full_bool
% { \skip_horizontal:n { -\FullWidth } } { }
\setbox\cascaptionbox=\hbox{%
\sffamily\small\textbf{\color{scolor}#1:}~#2}
\ifdim\the\wd\cascaptionbox<\dim_use:N \l_fig_width_dim\relax
\parbox{ \l_fig_width_dim }
{\unskip\ignorespaces\hfil\sffamily\small
\textbf{\color{scolor}#1:}~#2\hfil\par }
\else
\parbox{ \l_fig_width_dim }
{\rightskip=0pt\unskip\ignorespaces\sffamily
\small\textbf{\color{scolor}#1:}~#2\par }
\fi
\skip_vertical:N \l_fig_belowcap_skip
}
然后替换成下面这段话:
\cs_new:Npn \__make_fig_caption:nn #1#2
{
\l_fig_align_tl
\skip_vertical:N \l_fig_abovecap_skip
% \bool_if:NTF \g_fig_full_bool
% { \skip_horizontal:n { -\FullWidth } } { }
\setbox\cascaptionbox=\hbox{%
\sffamily\small\textbf{\color{scolor}#1.}~#2}
\ifdim\the\wd\cascaptionbox<\dim_use:N \l_fig_width_dim\relax
\parbox{ \l_fig_width_dim }
{\unskip\ignorespaces\hfil\sffamily\small
\textbf{\color{scolor}#1.}~#2\hfil\par }
\else
\parbox{ \l_fig_width_dim }
{\rightskip=0pt\unskip\ignorespaces\sffamily
\small\textbf{\color{scolor}#1.}~#2\par }
\fi
\skip_vertical:N \l_fig_belowcap_skip
}
最后,在\begin{document}
前面添加:
\usepackage{caption}
\captionsetup[figure]{name={Fig.}}
三、表格
1. 表格代码如下(示例):
\begin{table}[width=.9\linewidth,cols=4,pos=h]
\caption{This is a test caption. This is a test caption. This is a test
caption. This is a test caption.}\label{tbl1}
\begin{tabular*}{\tblwidth}{@{} LLLL@{} }
\toprule
Col 1 & Col 2 & Col 3 & Col4\\
\midrule
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
\bottomrule
\end{tabular*}
\end{table}
2. 给表格加脚注
注意:表格的脚注使用小写字母(Eg: a, b, c …)进行标注。
\documentclass{article}
\usepackage{threeparttable} %首先一定要加这句话,代表着三线表
\begin{document}
\begin{table}[width=.9\linewidth,cols=4,pos=h]
\begin{threeparttable}
\caption{table title.}\label{tab1}
\begin{tabular*}{\tblwidth}{@{} LLLL@{} }
\toprule
Col 1 & Col 2 & Col 3 & Col4\\
\midrule
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
\bottomrule
\end{tabular*}
\begin{tablenotes}
\item[a] 脚注1111111.
\item[b] 脚注22222222.
\item[c] 脚注33333333333.
\end{tablenotes}
\end{threeparttable}
\end{table}
四、参考文献
1. 报错:The top-level auxiliary file, Database file #1: bibliography.bib
具体报错:
The top-level auxiliary file: xxxx.aux
The style file: cas-model2-names.bst
Illegal, another \bibdata command---line 170 of file cas-sc-sample.aux
: \bibdata
: {cas-refs}
I'm skipping whatever remains of this command
Database file #1: bibliography.bib
(There was 1 error message)
错误原因:重复写了两次\bibliography{bibliography}内容
标准写法:
\bibliographystyle{elsarticle-num} %参考格式风格:数字编号
\bibliography{bibliography} %参考文献的bib文件引用
改正做法:1. 把红色方框圈着的文件全部删掉,重新运行tex
文件。
- 先运行“pdfLatex”,后运行“BibTex”。
2. 参考文献换格式(从作者&年份 —>编号、编号—>作者&年份)
在模板里面给出了三种参考文献呈现方式:
\usepackage[numbers]{natbib} %数字标号
%\usepackage[authoryear]{natbib} %作者&&年份
%\usepackage[authoryear,longnamesfirst]{natbib}
\begin{document} %三种参考文献呈现方式是在这句话之前的
想换哪种方式就把那句话取消注释,重新运行文章。
在修改bib style之后,重新编译发现出现了这样的错误:
Package natbib Error: Bibliography not compatible with author-year citations.
(natbib) Press <return> to continue in numerical citation style.
修改方式跟上面参考文献报错的修改方式一样。
注意:在 Expert Systems With Applications中投稿,初稿规定文献的引用格式使用:
\usepackage[authoryear]{natbib}
3. 参考文献的bib格式要求
注意:在 Expert Systems With Applications中投稿,初稿规定参考文献的引用格式使用:
\bibliographystyle{model5-names}
五、 去掉latex Elsevier模板的ORCID(S)
解决方案:在document下面加上:\let\printorcid\relax
六、定理与类定理环境
\newtheorem
是定义 “命题,定理,,定义,引理,假设,说明,证明,推论,例子” 等数学内容的命令。
但是会出现theorem、lemma等一起排号的情况,解决方案:
\theoremstyle{theorem} %定理的
\newtheorem{theorem}{Theorem}
\theoremstyle{lemma} %引理的
\newtheorem{lemma}{Lemma}
\theoremstyle{definition} %定义的
\newtheorem{definition}{Definition}
\begin{document} %在这句话之前写上面的语句
七、某一行超越边界
\begin{sloppypar}%防止行溢出页边距
会溢出边界的内容
\end{sloppypar}%防止行溢出页边距
八、附录的撰写
九、数学公式
1. 书写方式的注意事项
其实,用mathtype编写完公式再放入latex中就可。
2. 数学公式居中问题
其实是latex的格式模板搞的鬼:
\documentclass[a4paper,fleqn]{cas-sc}
%这句话里面的fleqn是让所有公式左对齐的原因,把“,fleqn”删除即可
\begin{document}
十、投稿过程
- 必须提交是:
- ORCID Information的提交内容:
下载入口:https://orcid.org/signin -> 输入用户名和密码进行登录。
在下图这个位置点击“打印” -> 保存为PDF,提交的时候就是提交这个PDF。
总结
这是我遇到的一些坑,在上述内容中都一一给出了解决方式。欢迎大家在留言处留下自己的疑惑,同时也积极解决留言区的问题。