zoukankan      html  css  js  c++  java
  • Latex 论文elsevier,手把手如何用Latex写论文

    这几天在开始写论文,准备发的是elsevier,这个网站的instruction有问题,下载的东西基本上好多的错误,所以我就写博客记录。

    首先看下:https://www.elsevier.com/authors/author-schemas/latex-instructions

    这里需要我们先安装Latex,我安装的是Ctex

    CTex的下载可以在网上搜索或使用我网盘,如果我网盘没法使用请和我说:lindexi_gd@163.com

    我们首先安装Ctex,一路下一步,注意可以安装到D盘,不一定需要C盘。

    然后就是basic-miktex-2.9.6069-x64这里你不一定安装64位,下载可以到http://miktex.org/ 下载,也可以到我网盘下载,如果不能下载请和我说

    安装完CTeX如果使用报错

    CTeX 系统找不到指定的文件

    大概的方法是打开Execution Modes在Options

    然后修改Tex System的路径这样很简单我们的CTex就好了

    看到CTEX的MikTex不存在Bin,那么需要安装miktex,这个安装必须在C盘,默认位置,记住C盘

    安装完,我们可以安装TeXStudio,这个软件做的很好,看下界面

    是不是感觉比WinEdt好,如果感觉好的话,那么就去下载,可以到官网www.texstudio.org如果上不了就在我这里下。

    我们开始使用官方的模板,官方下载位置 https://www.elsevier.com/__data/assets/file/0007/56842/elsarticle-template.zip可以看到里面没有ecrc.sty在我们编译的时候就出错

    File `ecrc.sty' not found.

    可以去下载我的ecrc.sty,下载放在最后,大家如果发现无法下载,就联系我

    这个在于我们打开的模板是ecrc-template.tex,在官网有下载,https://www.elsevier.com/__data/assets/text_file/0007/56878/ecrc-template.tex

    打开之后发现还需要Elsevier-logo-3p.pdf, SDlogo-3p.pdf, Elsevier-logo-5p.pdf and SDlogo-5p.pdf ,都可以在官网下载,下载后需要下载elsarticle.cls,同样官方,https://www.elsevier.com/__data/assets/text_file/0005/56903/elsarticle.cls

    把这些放在一个文件夹,这样就好啦。

    我在TeXStudio打开,发现没有错误。

    顺便推荐一个软件:Tickeys这个软将可以让我们打字有声音,晚上打字用这个软件感觉好。

    开始写的是documentclass[3p,times]{elsarticle}

    就是引用elsarticle,documentclass[<options>]{elsarticle} 选项可以使用参见:https://www.elsevier.com/__data/assets/pdf_file/0009/56844/elsdoc2.pdf

    我们开始就是题目,我们的题目是乱写

    首先题目 itle{A paper csdn and Mircrosoft is laji noteref{t1,t2}},其中 noteref是引用脚注,一般写的就是t1,t2标识,这个随意。其中写了t1,在题目后面就有一个星,在写一个就出现一个逗号,后面加两个星,规则是第n个就有n个星。

    然后我们在外面写 notetext[标识]{Content},也就是页面下的内容,这里我写的是垃圾微软,可以看到Content可以很长,而我们还有t3没写,没写的没显示

    	notetext[t1]{This document is a collaborative effort.}
    	notetext[t2]{The second title footnote which is a longer
        longer than the first one and with an intention to fill
        in up more than one line while formatting.But it's to small,I write Mircosoft is laji.}

    接着我们开始写作者,假如我们两个作者,第一个是lindexi_gd第二个是Microsoft

    我们需要知道在Latex的注释是%%

    作者的格式是

    %% author[label1,label2]{<author name>}
    %% address[label1]{<address>}
    %% address[label2]{<address>}

    每个label就是标签,可以在地址写,可以在别的地方写作者的地址

    Latex用\换行,在我们的地址比较长,可以用这换行

    author[lindexiAddress]{lindexi\_gd corref{cor1} fnref{fn1} }
    ead{lindexi\_gd@163.com}
    
    %%作者的corref{lable}就是在脚注,用的是*,第n个有n*
    %%fnref{lable} 脚注,这个才是真的,但是没显示
    %%author[lindexiAddress]{lindexi\_gd corref{cor1} fnref{fn1} }
    %%地址写在下面address[lindexiAddress]{The lindexi's address }
    %%地址是a,b,c  label不区分大小写
    
    author[Address1,Address2]{Mircrosoft corref{cor2} fnref{fn2}}
    ead{kaveh@river-valley.com}
    
    cortext[cor1]{Corresponding author}
    cortext[cor2]{Principal corresponding author}
    
    fntext[fn1]{This is the specimen author footnote.}
    fntext[fn2]{Another author footnote, but a little more longer.}
    fntext[fn3]{Yet another author footnote. Indeed, you can have
        any number of author footnotes.}
    
    address[lindexiAddress]{The lindexi's address }
    
    address[Address1]{River Valley Technologies, 9, Browns Court,
        Kennford, Exeter, United Kingdom}
    address[Address2]{Central Application Management,
        Elsevier, Radarweg 29, 1043 NX\
        Amsterdam, Netherlands}

    复制我这个放到代码就可看到

    然后就是我们的摘要

    begin{abstract}
    摘要写在这
    end{abstract}

    然后我们开始写关键字

    关键字写在

    
    egin{keyword}
    
    end{keyword}

    不同的关键字使用sep分开

    egin{keyword}
    
    CSDN sep lindexi sep windows.sc
    
    end{keyword}

    我们就在正文开始写,遇到问题是如何插入图片,插入算法,图片位置不对,这写我都找了连接

    输入列表

    begin{enumerate}[标号]
    

    标号可以使用数字或字,其中可以加[],()

    我们可以在列表嵌套

    egin{enumerate}[a)]
    	item This item has roman numeral counter.
    	item Another one before we close the third level.
    	egin{enumerate}[a)]
    		item This item has roman numeral counter.
    		item Another one before we close the third level.
    	end{enumerate}
    end{enumerate}

    双栏

    需要双栏,在documentclass[3p,times]{elsarticle}改5p

    还有其他选项,这些我们现在不需要,直接改5p就好documentclass[5p,times]{elsarticle}

    引用

    我们的论文会参见很多人的,那么添加一个人或删会让我们修改很多,Latex给我们简单方法,我们可以使用这个来添加我们的参考

    首先在页面最下,end{document}上面写参考,首先要删除ibliography{<your-bib-database>}

    然后写参考的

    egin{thebibliography}{00}
    
        ibitem[每次参考自动写的内容,作者,如果遇到括号不写]{label} 参见lindexi
    
    end{thebibliography}

    在文章遇到我们需要参考

    citet{label}

    这样就好,如果我们没写作者看起来不好

    如果没写作者,只要一个[1]那么在正文

    citep{label}
    
    另一方式
    
    cite{label} 

    要写一个上标我们应该用^

    假如我们的一个引用

    egin{thebibliography}{00}    
    
        ibitem{lindexi 1} lindexi_gd csdn.
    
    end{thebibliography}

    在引用的写$^{cite{lindexi 1}}$

    注意$$就是使用公式

    标题

    我们需要一级标题,我们还需要二级,那么一级标题section{标题名}

    二级标题subsection{标题名}

    斜体

    emph{内容}

    粗体

    textbf{}

    排列

    左对齐

      egin{flushleft}
    
      end{flushleft}

    居中

     egin{center}
    
     end{center}

    右对齐

      egin{flushright}
    
      end{flushright}

    分数

    frac{上}{下}

    根号

    sqrt{}
    

    插入公式:https://www.kancloud.cn/thinkphp/latex/41806

    http://mohu.org/info/symbols/symbols.htm

    插入图片

    插入图片的位置不对,我们可以使用[!htb]来取消latex的美学,latex的美学很烂。

    我们需要先引用 float

    usepackage{graphicx}
    
    
    usepackage{float}

    在引用图片写上

    egin{figure}这里用取消美学[!htb]
    	includegraphics{fig1.png}
    	caption{Problem Description }
    	label{fig1}
    end{figure}

    图片位置可以使用figure=

    如果是esp,需要epsfig

    egin{figure}[h]
      centerline
      {
        epsfig
         {
          figure=images/fig, 
          height=9cm, 
          angle=-90
         }
      }
      caption{标题}
      label{Fig1}
    end{figure}

    参见:http://blog.sciencenet.cn/blog-400681-886697.html

    http://blog.csdn.net/bingfengxiao/article/details/6650096

    多图并排

    使用vfill换行,hfill 并排

    egin{figure*} 
         centering 
    
         egin{minipage}{0.48linewidth} 0.48大小
    	 	centering 图在中间
    	    includegraphics[width=5cm,height=5cm]{f1} 图,如果使用eps需要转换
        	caption{图1  }
            label{fig:1}
         end{minipage}
         hfill 并排
         egin{minipage}{0.5linewidth}
         	centering
         	includegraphics[width=5cm,height=5cm]{f2}
            caption{图2  }
         	label{fig:2}
         end{minipage}
    end{figure*}

    http://blog.csdn.net/lsg32/article/details/8121417

    http://www.ctex.org/documents/latex/graphics/node109.html

    使用eps

    引用epsfig

    usepackage{graphicx}
    
    usepackage{epsfig} 

    打开cmd,进入图片路径, 使用epstopdf

    epstopdf 图.eps

    就会生成图.pdf

    不需要写后缀名

    includegraphics[width=7cm,height=7cm]{f1}

    把生成的pdf也放进去,这样生成就好

    重新为图片编号:http://www.52yfjc.com/2014/show.asp?id=887

    Visio转eps

    在线wmf转eps https://cloudconvert.com/wmf-to-eps

    svg转eps http://cn.office-converter.com/SVG-to-EPS

    一个简单方法是选择要转换的图,新建一个visio,然后在页面大小,设为适应,然后保存为pdf就好,一般不需要在转

    插入算法

    http://blog.csdn.net/lqhbupt/article/details/8723478

    egin{algorithm}
    	caption{} 
    	label{a}
    	egin{algorithmic}
    	STATE ) $ $
    	end{algorithmic}
    end{algorithm}  

    页开始

    如果需要设置期刊的名

    journalname{期刊名}

    下载:
    basic-miktex-2.9.6069-x64
    https://yunpan.cn/OcvKmfknLnEsnJ 访问密码 0943

    CTeX
    https://yunpan.cn/OcvKmJ8EINEN22 访问密码 7fa9

    TeXStudio
    https://yunpan.cn/OcvKmVsRytDq7Z 访问密码 5ef5

    https://sourceforge.net/projects/texstudio/?source=typ_redirect

    ecrc.sty
    https://yunpan.cn/OcvKHgsSHJMaFc 访问密码 2cef

    ecrc-template.tex
    https://yunpan.cn/OcvKHKAiBNIZDi 访问密码 1100

    参见:https://www.elsevier.com/authors/author-schemas/preparing-crc-journal-articles-with-latex

    http://hubl82.blog.163.com/blog/static/1267694852013459412617/

    <script type="text/javascript"> $(function () { $('pre.prettyprint code').each(function () { var lines = $(this).text().split(' ').length; var $numbering = $('<ul/>').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($('<li/>').text(i)); }; $numbering.fadeIn(1700); }); }); </script>
  • 相关阅读:
    Python 学习笔记(七)Python字符串(三)
    Python 学习笔记(七)Python字符串(二)
    Python 学习笔记(六)Python第一个程序
    Python 学习笔记(五)常用函数
    Python 学习笔记(四)数字(二)
    行为型模式之责任链模式
    python_frm组件
    django之models学习总结
    HTTP协议
    事件委托
  • 原文地址:https://www.cnblogs.com/lindexi/p/6949698.html
Copyright © 2011-2022 走看看