如何用latex排版要求LNCS模板的论文

您所在的位置:网站首页 索尼a7s2还值得买吗 如何用latex排版要求LNCS模板的论文

如何用latex排版要求LNCS模板的论文

2023-08-15 09:36| 来源: 网络整理| 查看: 265

前提:

(1)要投稿的论文要求:投稿作者请以Springer的计算机科学讲义(LNCS)为模板,英文撰写全文

(2)心得:之前没有用过latex,第一次用它排版了论文,感觉latex就是像html一样的一种标记语言,可以理解为写一些简单的代码来进行排版。

                    思路主要就是找到一个符合要投稿的论文要求的latex模板,然后按照自己的论文修改其中的内容,模板有一些在要求里就会提供。

                    我这个因为是说LNCS模板,所以没有提供文件,模板是我自己找的。

                     总结一下过程,希望能对有需要的人有点帮助。

(3)环境:win10系统

目录

1.下载一个latex编辑器

2.下载模板

3.根据内容自己修改

3.1纯文字部分:

3.1.1 标题、作者、摘要

3.1.2 标题结构

3.2 图

3.3 表

3.4 公式

3.5 批量转换参考文献格式

1.下载一个latex编辑器

我用的是winEdt,这里也可以选别的编辑器,下载地址是在网上随便搜的 https://www.pcsoft.com.cn/soft/197622.html

2.下载模板

因为论文要求的是LNCS

https://kawahara.ca/springer-lncs-latex-template/ 从这个网址下载typeinst.zip和 llncs2e.zip,分别单独解压到路径下的文件夹里

把llncs2e文件夹里的llncs.cls 粘贴到typeinst文件夹下,它就相当于一个css样式文件

打开typeinst里面的内容如下所示,其中typeinst.tex就是模板对应的tex文件,也可以理解为代码,typeinst.pdf就是这个代码编译以后产生的pdf文件,也就是说代码显示出来的页面效果。

 

用winEdt打开typeinst.tex,下图红色圈起来的这个就代表着把现在的tex代码编译生成pdf文件,可以点一下试试,接下来就是对比tex文件内容和pdf显示出来的内容猜测代码含义然后自行修改了

3.根据内容自己修改 3.1纯文字部分: 3.1.1 标题、作者、摘要

打开这个pdf 可以看到第一部分Lecture Notes打头的这一段是标题,Alfred开头的这一段是作者名,Springer-Verlag这一段是所在组织,alfred.hofamn这一段是邮箱。也就是下面这段代码

% first the title is needed \title{Lecture Notes in Computer Science:\\Authors' Instructions for the Preparation\\of Camera-Ready Contributions\\to LNCS/LNAI/LNBI Proceedings} % a short form should be given in case it is too long for the running head \titlerunning{Lecture Notes in Computer Science: Authors' Instructions} % the name(s) of the author(s) follow(s) next % % NB: Chinese authors should write their first names(s) in front of % their surnames. This ensures that the names appear correctly in % the running heads and the author index. % \author{Alfred Hofmann% \thanks{Please note that the LNCS Editorial assumes that all authors have used the western naming convention, with given names preceding surnames. This determines the structure of the names in the running heads and the author index.}% \and Ursula Barth\and Ingrid Haas\and Frank Holzwarth\and\\ Anna Kramer\and Leonie Kunz\and Christine Rei\ss\and\\ Nicole Sator\and Erika Siebert-Cole\and Peter Stra\ss er} % \authorrunning{Lecture Notes in Computer Science: Authors' Instructions} % (feature abused for this document to repeat the title also on left hand pages) % the affiliations are given next; don't give your e-mail address % unless you accept that it will be published \institute{Springer-Verlag, Computer Science Editorial,\\ Tiergartenstr. 17, 69121 Heidelberg, Germany\\ \mailsa\\ \mailsb\\ \mailsc\\ \url{http://www.springer.com/lncs}}

所以要做的就是 把\title{}括号里面的改成自己的标题,\author{}括号里面的改成自己的作者,

(此处注意pdf文件中说了LNCS排版的作者如果是中国人也要遵照西方命名规则,即名 姓,用全称,比如李晓明,这里就写XiaoMing Li)

模板默认第一个人是通讯作者,也就是这个人右上角会有一个星星,如果想把后面某个人设置成通讯作者,就在他的名字后面加上\textsuperscript{*}

这些文字部分的替换都是一样的道理,比如说摘要

\begin{abstract} The abstract should summarize the contents of the paper and should contain at least 70 and at most 150 words. It should be written using the \emph{abstract} environment. \keywords{We would like to encourage you to list your keywords within the abstract section} \end{abstract}

就把他原来你不需要的文字去掉,然后用自己的摘要内容替换\emph{abstract}这里面的abstract

3.1.2 标题结构

\section{Paper Preparation}

\subsection{Copyright Forms}

\subsubsection{Headings.}

这分别对应的是1,1.1,1.1.1所以只要把自己内容先都对应着分块粘贴进去,这部分就完成了。

3.2 图 \begin{figure} \centering \includegraphics[height=6.2cm]{eijkel2} \caption{One kernel at $x_s$ (\emph{dotted kernel}) or two kernels at $x_i$ and $x_j$ (\textit{left and right}) lead to the same summed estimate at $x_s$. This shows a figure consisting of different types of lines. Elements of the figure described in the caption should be set in italics, in parentheses, as shown in this sample caption.} \label{fig:example} \end{figure}

注意LNCS要求中写到 Line drawings should have a resolution of at least 800 dpi (preferably 1200 dpi). The lettering in figures  should have a height of 2 mm (10-point type).所以如果原来导出的图片dpi过低的话,需要下载ps转换

但是ps像素是以ppi为单位的,ppi和dpi之间是1:10的关系

3.3 表 https://blog.csdn.net/juechenyi/article/details/77116011参考这个教程进行表格绘制 我比较复杂的就是下面这个表格

代码:

\begin{table}[htbp] \centering \vspace{-2.0em} \caption{Comparison of NME in three cases} \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|}%l=left, r=right,c=center分别代表左对齐,右对齐和居中,字母的个数代表列数 \hline \multirow{Method} & \multicolumn{9}{|c|}{Accuracy} \\ \cline{2-10} & \multicolumn{3}{|c|}{300W test common} & \multicolumn{3}{|c|}{300W test challenge} &\multicolumn{3}{|c|}{300W test full} \\ \cline{2-10} & NME & AUC & ACC& NME & AUC & ACC& NME & AUC & ACC \\ \cline{2-10}\hline with subtask & 3.56 & 55.74 & 99.46 & 8.44 & 21.06 & 53.33 & 4.51 & 48.95 & 93.61 \\ \hline Without subtask & 4.11 & 49.20 & 97.47 & 10.41 & 12.89 & 53.33 & 5.34 & 42.08 & 88.82 \\ \hline with stacked hourglass & 3.37 & 58.25 & 98.74 & 8.95 & 20.56 & 60.00 & 4.47 & 50.87 & 91.15 \\ \hline \end{tabular} \end{table} \vspace{-2em}

\vspace{-2.0em}可以放在图和表以后控制它和下面字的间距,负值越多代表贴的越近。

按照上面那个教程还有网络上别的教程,写合并横行单元格的时候写法都是\multirow{4}*{策略} 这样

但是在我这里显示的时候4和*都会到单元格里,可能是版本问题?

最后我试出来的,我这里正确的写法是上面这样合并的横行第一行写\multirow{Method} 接下来的行 这个被合并的单元格的位置就空着 什么都不写

最后如果整个代码没问题 它会自动调整合并的行数 

3.4 公式

公式单独起一行的这样写,放在equation里:

\begin{equation} error= \frac{ \sum_{i=1}^{N}\left\|x_i-x_i^*\right\|_2}{N*d} \end{equation}

如果是在段内写,不需要重起一行,就用$你的公式$这样写

希腊字母是用\加读音的形式

https://www.jianshu.com/p/22117d964baf这里讲的很清楚

3.5 批量转换参考文献格式

每个标准要求的参考文献格式都不一样,比如LNCS它要求的参考文献格式为:

1. Smith, T.F., Waterman, M.S.: Identifification of Common Molecular Subsequences. J. Mol. Biol. 147, 195–197 (1981) 2. May, P., Ehrlich, H.C., Steinke, T.: ZIB Structure Prediction Pipeline: Composing a Complex Biological Workflflow through Web Services. In: Nagel, W.E., Walter, W.V., Lehner, W. (eds.) Euro-Par 2006. LNCS, vol. 4128, pp. 1148–1158. Springer, Heidelberg (2006) 3. Foster, I., Kesselman, C.: The Grid: Blueprint for a New Computing Infrastructure. Morgan Kaufmann, San Francisco (1999) 4. Czajkowski, K., Fitzgerald, S., Foster, I., Kesselman, C.: Grid Information Services for Distributed Resource Sharing. In: 10th IEEE International Symposium on High Performance Distributed Computing, pp. 181–184. IEEE Press, New York (2001) 5. Foster, I., Kesselman, C., Nick, J., Tuecke, S.: The Physiology of the Grid: an Open Grid Services Architecture for Distributed Systems Integration. Technical report, Global Grid Forum (2002) 6. National Center for Biotechnology Information, http://www.ncbi.nlm.nih.gov   和谷歌学术导出的是有一点差别的 那么肯定不能一个个手动修改 比较麻烦也容易出错 可以借助latex进行批量的参考文献格式修改   (1)在谷歌学术把所有参考文献的bibtex存到一个txt里   bibtex这样找

新建一个txt文件,把所有的bibtex都粘贴过来,给文件命名references.bib

 

在winEdt里新建一个tex文件,命名为refence_change

代码如下

\documentclass{article} \begin{document} \nocite{*} \bibliography{references} %bibfile_name \bibliographystyle{splncs04} \end{document}

\bibliographystyle{splncs04}就是指定参考文献格式模板,需要把一开始下的 llncs2e这里面的splncs04.bst文件粘贴到和这个tex一样的路径下

这个bst文件也可以自己网上搜一下下载 同样道理这里换一个模板的话 也可以批量导出别的格式要求的参考文献

然后编译上面这个tex文件

会产生一个refence_change.bbl 打开就能看到符合LNCS要求的参考文献格式了,还是按照首字母排过顺序的

在论文中需要引入参考文献的地方就

 \cite{zhu2015face}

{}里是关键字 ,也就是我们bibtex里面第一行的那个内容

 

还有些需要检查的地方,比如

页面开头有少于4行的文字片段,随后是Figure/Table→把Figure/Table放在页面顶端;  页面靠近底端的位置是Figure/Table,随后是少于4行的文字片段→把Figure/Table放在页面底端;

这些就是自己读一读pdf文件里的要求,修改一下。完结,撒花!



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3