latex伪代码添加注释_Latex中文期刊投稿使用:以《系统工程学报》为例
注釋1:本文總體上關于文字排版軟件latex的入門使用,順便記錄一下自己不算糟糕的科研生活,再順便自己下此用到的時候方便查看.
注釋2:文采太差,小時候寫日記我爸就說我記流水賬,現在仍然學不會花哨的敘事方式,就按照時間線走吧。
階段一:“可以投了”
2020年10月末,熬了大半年的論文終于獲得了老板的批準,可以投稿了:
OS:刪了老師的兩個大牛同行署名后,我對自己的作品更加沒有信心了【狗頭】,不過署名少的文章,應該更容易中吧,強行安慰自己一波。
階段二:投哪里好呢
其實我自己最清楚這篇文章的質量水平,但是作為自己的第一次投稿,我不自覺的認真對待。剛開始選擇了《管理工程學報》,后又結合學院推薦期刊選擇了《系統工程學報》,如愿得到了一次使用latex排版的機會。
加之近期有一個會議,如過運氣好的話還可以走推薦路線,會節省很多時間,與師兄簡單交流過后決定整它。
階段三:Latex入門使用
在上述報刊的官網上下載了一眾文件,各種格式,各種看不懂,各種頭疼,都是關于模板的使用的。其中看的最明白的就是:latex網址參考.txt了,打開一看:
步驟1:進入下載網址,選擇穩定版中的完整版,整體大小大概1.3個G吧,1.3個G~吧,別下簡版,感覺缺的包比較多,不適合初學者。
步驟2:按照要求一步一步安裝,最終用的軟件為WinEdt這個東西。其中最關鍵的又是這兩個按鍵:
步驟3:打開從期刊官網下載下來的壓縮包的JSE Template-to author.tex文件,其實這個文件就是模板,如果軟件沒問題+編譯成功的話會輸出一個PDF,沒錯就是壓縮包里那個。
步驟4:編譯,編譯的方式有很多,上圖的左邊小紅框就是編譯按鈕,相當于jupyter notebook里的運行鍵。不同的是這個軟件編譯方式有很多種,而我們需要用到的是CCT & LaTeX,如何切換成這種編譯方式呢,先點擊工具框的Tex~選擇CTeX Tools~然后選擇CCT & LaTeX,即可!
步驟五:如果報錯的話不用慌,如果報錯是:file 'xxx.sty' not found,這個報錯是缺包的意思,這個問題我沒遇到,自行百度。如果報錯bibname undefined,這個錯誤是由于系統里面GB.cpx文件是亂碼的,所以需要另外下載GB文件放在當前目錄或者替換掉系統的文件即可。(把gb.cpx 覆蓋到安裝路徑下,即放到 C:CTEXMiKTeXtexlatexcjkGB),復制下面這個東西,復制粘貼到文本編輯器中,保存為GB.cpx,替換了原來那個那個就行。
% This is the file GB.cap of the CJK package % for using Asian logographs (Chinese/Japanese/Korean) with LaTeX2e % % created by aloft <aloft@ctex.org> for Standard LaTeX document class. % % Version 4.5.2 (18-May-2003) % % $Id: GB.cpx,v 1.7 2003/05/20 15:51:14 aloft Exp $ %deffileversion{4.5.2} deffiledate{2003/05/18} ProvidesFile{GB.cap}[filedatespacefileversionfor Standard LaTeX document class]% Chinese captions % % character set: GB 2312-80 % encoding: EUCrenewcommandcontentsname{目錄} renewcommandlistfigurename{插圖} renewcommandlisttablename{表格}@ifundefined{chapter}{renewcommandrefname{參考文獻}}{renewcommandbibname{參考文獻}}renewcommandindexname{索引}renewcommandfigurename{Fig}newcommandcodename{代碼}renewcommandtablename{表}newcommandCJKprepartname{第} newcommandCJKpartname{部分} newcommandCJKthepart{CJKnumber{@arabicc@part}}@ifundefined{chapter}{}{newcommandCJKprechaptername{第}newcommandCJKchaptername{章}newcommandCJKthechapter{CJKnumber{@arabicc@chapter}}}renewcommandappendixname{附錄~@Alphc@chapter}@ifundefined{mainmatter}{renewcommandabstractname{摘要}}{}% renewcommandccname{} % ? % renewcommandenclname{附件} % newcommandprepagename{} % ? % newcommandpostpagename{} % ? % renewcommandheadtoname{} % ? % renewcommandseename{} % ?letCJK@todaysave=today defCJK@todaysmall{~theyear~年~themonth~月~theday~日} defCJK@todaybig{CJKdigits{theyear}年CJKnumber{themonth}月CJKnumber{theday}日} defCJK@today{CJK@todaysmall} renewcommandtoday{CJK@today} newcommandCJKtoday[1][1]{%ifcase#1defCJK@today{CJK@todaysave}ordefCJK@today{CJK@todaysmall}ordefCJK@today{CJK@todaybig}fi}% % modify the definitions of Standard LaTeX document class % @ifundefined{chapter}{def@part[#1]#2{%ifnum c@secnumdepth >m@nerefstepcounter{part}% % addcontentsline{toc}{part}{theparthspace{1em}#1}%addcontentsline{toc}{part}{CJKprepartnameexpandafternoexpandCJKthepartCJKpartnamehspace{1em}#1}%elseaddcontentsline{toc}{part}{#1}%fi{parindent z@ raggedrightinterlinepenalty @Mnormalfontifnum c@secnumdepth >m@ne % Largebfseries partnamenobreakspacethepartLargebfseries CJKprepartnameCJKthepartCJKpartnameparnobreakfihuge bfseries #2%markboth{}{}par}%nobreakvskip 3ex@afterheading} }{def@part[#1]#2{%ifnum c@secnumdepth >-2relaxrefstepcounter{part}% % addcontentsline{toc}{part}{theparthspace{1em}#1}%addcontentsline{toc}{part}{CJKprepartnameexpandafternoexpandCJKthepartCJKpartnamehspace{1em}#1}%elseaddcontentsline{toc}{part}{#1}%fimarkboth{}{}%{centeringinterlinepenalty @Mnormalfontifnum c@secnumdepth >-2relax % hugebfseries partnamenobreakspacetheparthugebfseries CJKprepartnameCJKthepartCJKpartnameparvskip 20p@fiHuge bfseries #2par}%@endpart}if@twosidedefchaptermark#1{%markboth {MakeUppercase{%ifnum c@secnumdepth >m@neif@mainmatter % @chapapp thechapter. %CJKprechapternameCJKthechapterCJKchaptername %fifi#1}}{}}%defsectionmark#1{%markright {MakeUppercase{%ifnum c@secnumdepth >z@ % thesection. %thesection %fi#1}}}elsedefchaptermark#1{%markright {MakeUppercase{%ifnum c@secnumdepth >m@neif@mainmatter % @chapapp thechapter. %CJKprechapternameCJKthechapterCJKchaptername %fifi#1}}}fidef@chapter[#1]#2{ifnum c@secnumdepth >m@neif@mainmatterrefstepcounter{chapter}% % typeout{@chapappspacethechapter.}%typeout{CJKprechapternameCJKthechapterCJKchaptername}%addcontentsline{toc}{chapter}% % {protectnumberline{thechapter}#1}%{protectnumberline{}CJKprechaptername%expandafternoexpandCJKthechapterCJKchapternamehspace{0.8em}#1}%elseaddcontentsline{toc}{chapter}{#1}%fielseaddcontentsline{toc}{chapter}{#1}%fichaptermark{#1}%addtocontents{lof}{protectaddvspace{10p@}}%addtocontents{lot}{protectaddvspace{10p@}}%if@twocolumn@topnewpage[@makechapterhead{#2}]%else@makechapterhead{#2}%@afterheadingfi}def@makechapterhead#1{%vspace*{50p@}%{parindent z@ raggedright normalfontifnum c@secnumdepth >m@neif@mainmatter % hugebfseries @chapappspace thechapterhugebfseries CJKprechapternameCJKthechapterCJKchapternameparnobreakvskip 20p@fifiinterlinepenalty@MHuge bfseries #1parnobreakvskip 40p@}}renewcommand*l@chapter[2]{%ifnum c@tocdepth >m@neaddpenalty{-@highpenalty}%vskip 1.0em @plusp@ % setlength@tempdima{1.5em}%setlength@tempdima{0em}%begingroupparindent z@ rightskip @pnumwidthparfillskip -@pnumwidthleavevmode bfseriesadvanceleftskip@tempdimahskip -leftskip#1nobreakhfil nobreakhb@xt@@pnumwidth{hss #2}parpenalty@highpenaltyendgroupfi} let@appendixappendix renewcommandappendix{@appendix%defCJKprechaptername{relax}%defCJKthechapter{relax}%defCJKchaptername{appendixname}} } %end of @ifundefined{chapter}defnumberline#1{ifdim@tempdima>0pt% settowidth@tempdimb{#1space}% ifdim@tempdima<@tempdimb% @tempdima=@tempdimb% fi% hb@xt@@tempdima{#1hfil}% fi} endinput然后在依次點擊上圖中的框內的左右兩個小按鈕,就會彈出你要的PDF文件了。
階段四:碼上文字,插公式
文字部分:先把題目,作者信息寫上,該換的換了,整體框架別動,上面一級二級標題也很明顯,對照模板生成的PDF的對應位置來,學會復制模板中的代碼,照葫蘆畫瓢。其中注意哈,仿佛這個期刊默認中英文摘要只能有一頁,所以還是精簡一下自己的摘要吧。
公式部分:模板給定了幾種公式的表達方式,但是如果編輯的話太麻煩,推薦使用mathtype編輯,先設置mathtype:進入mathtype~偏好~剪切和復制偏好設置~設置成這個樣子:
然后再mathtype里編輯公式,直接復制到Winedt,然后把前后的[ 和 ]刪除就行了,還會自動編號,如果在文字中插入公式要加上¥,不好意思,是美元$,就可以了。
階段五:整上表格
整理表格也是一件照葫蘆畫瓢的事情,其中兩點值得注意。
第一點:復制word上表格到這里可以生成其Latex模板。
Create LaTeX tables online?www.tablesgenerator.com第二點:下面代碼中的幾個參數值得注意,0.8是整個表格所占紙面的寬度,0.8看起來是比較舒適的;6代表6列,這個值必須要與列數對應上?好像是吧;0.14是每一列的寬度,這個不停的調整,直到表格好看。
setlengthtempl{0.14textwidth} addtolengthtempl{-2tabcolsep}%%% 每一列所占長度 noindentbegin{tabular*}{0.8textwidth}{*{6}{p{templ}}} toprule%%%表格的總長度階段六:貼上圖片
圖片的話必須要是eps格式,這種格式使用Origin可以直接生成的。
如果是其他格式的話,比如png,可以轉化成eps,有以下步驟:
步驟一:將你的png文件放入一個文件夾,文件夾放在左面上。
步驟二:Win+R 打開運行窗口,然后輸入cmd,打開cmd終端,輸入cd,然后把文件夾往里拖。按enter。
步驟三:輸入dir
步驟四:然后再輸入最下面框內的字符,注意把圖片的名稱對應上。然后就好了
把你的eps文件放到你打開的tex文件的同一個文件夾里(路徑一致),這樣就可以照葫蘆畫瓢貼上圖了。注意下面的參數0.4是縮放比例,幾個參數自己調以下會發現是啥意思。
begin{center} includegraphics [scale=0.4,trim=0 0 0 0]{tu3.eps} label{Fig3} {footnotesize {CJKfamily{hei} 圖~3 ~~ **********} Fig.~3 ~~ ********** } end{center}階段七:參考文獻
看了一下用bibtex貼參考文獻的教程,太難了,于是乎我全手寫上了,其實也不麻煩,百度學術,谷歌學術都可以用哈,如:
直接復制這個就行了。注意以下中英文,中文文獻的英文名字在其摘要里找,期刊的英文名字文章里也會有,一般是文章頁眉有。
階段八:一些小細節
就是注意逗號,句號要用英文輸入,文字中的數字,英文后面空一格,大數字最好這樣表示34000,表示為34 000。可能明天或者就投會議了,過不了的話就老老實實投期刊系統,愿大家的論文都有一個好結果。
總結
以上是生活随笔為你收集整理的latex伪代码添加注释_Latex中文期刊投稿使用:以《系统工程学报》为例的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: vue + element-ui 聊天_
- 下一篇: 英雄联盟被封号的原因及解决方法真实三年