(3)WORD或者LATEX插入PDF格式圖片?將ppt轉(zhuǎn)化成pdf的兩種方式(一、打印成pdf;二、另存為pdf(我的論文PACFS的流程圖,graphs中間的線像是一段一段的,采用方式二就沒有問題(This is under the help of Yong Luo)
)),工具->高級(jí)編輯->裁剪工具 (東大正版pdf, 編輯->編輯文本和圖像->裁剪頁(yè)面),選中,注意此時(shí)調(diào)整大小,只能拉角落的角,確定,就會(huì)打印出新的pdf文件出來。工具->選擇和縮放->快照工具(東大正版pdf, 編輯->拍快照),選中復(fù)制到word就可以了。Latex中直接插入pdf格式圖片就可以了,當(dāng)然也可以將pdf存成eps格式,再插入eps格式的圖片,方法:打開pdf文件,另存為eps即可。一般情況這樣就可以了。如果存成eps,有部分被截怎么解決?解決方法:將pdf另存為png,不要另存為jpg,png是無損的,再用Zhibing Hong給我的以下三句matlab命令將png轉(zhuǎn)成eps格式即可。a = imread('SystemDiagram.png');imshow(a); saveas(gcf,'SystemDiagram.eps', 'psc2')。這種存的是矢量圖(Yong Luo)。
2012/11/11 Latex插入圖片(我自己畫的pdf圖片(投CVPR 2013的),如果轉(zhuǎn)成eps圖片,就會(huì)產(chǎn)生問題:發(fā)現(xiàn)有一些被截?cái)嗔?/span>(以前也遇到過,或者被翻轉(zhuǎn)之類,而且用轉(zhuǎn)換成png再轉(zhuǎn)化為eps,仍然不能解決)。于是想到還是插入pdf圖片),頭文件只要\usepackage{graphicx}即可
注意1:要插入pdf圖片,所有圖片都要求是pdf圖片,不能是eps圖片。編譯方式1:WinEdt 6.0和7.0都有PDFTeXify直接能生成pdf文件(Yong Luo都用的這一種方式)。編譯方式2:PDFLaTeX->BibTex-> PDFLaTeX-> PDFLaTeX; 注意此時(shí)不能再點(diǎn)div2pdf,直接到文件夾看生成的pdf文件即可(nannan wang的版本就不能點(diǎn)擊div2pdf)。問題:WinEdt 6.0和7.0都有PDFTeXify直接能生成pdf文件,這和PDFLaTeX->BibTex-> PDFLaTeX-> PDFLaTeX這樣編譯有什么區(qū)別?答:Yong Luo都用的第一種方式。編譯方式3:Mingming Cheng老師的latex基金模板,要安裝texlive,安裝完成后WinEdit 7就會(huì)出現(xiàn)XeLaTeX,運(yùn)行XeLaTeX即可,不能運(yùn)行PDFLaTeX,他說XeLaTeX相對(duì)PDFLaTeX的優(yōu)點(diǎn)就是支持中文比較好。texlive不能刪,否則XeLaTeX就沒了。因?yàn)槲沂状芜\(yùn)行發(fā)現(xiàn)引用參考文獻(xiàn)的地方,顯示的是問號(hào),問他是不是首次運(yùn)行時(shí)要先運(yùn)行XeLaTeX,再運(yùn)行BibTeX,再運(yùn)行XeLaTeX?是不是只要參考文獻(xiàn)改過了,都要這樣運(yùn)行一次?他說應(yīng)該是,參考文獻(xiàn)改過了,應(yīng)該不要再編譯參考文獻(xiàn)了。怎么將“Figure”換成“圖”?他的是自動(dòng)就是“圖”。我自己上網(wǎng)找到解決方案:https://zhidao.baidu.com/question/247603925.html,加\renewcommand\figurename{圖} 即可.
20250312 Xiaofeng Cong: TexWorks中編譯順序是XeLaTex->BibTex->XeLaTex->XeLaTex
注意2:此時(shí)只能點(diǎn)擊PDFLaTeX 編譯,不能點(diǎn)擊LaTeX編譯,否則會(huì)有問題:cannot determine size of graphic (怎樣在latex中插入jpg圖片? 必須用pdf LaTeX 編譯)
有eps圖片,編譯方式LaTeX->BibTex-> LaTeX-> LaTeX->div2pdf,有時(shí)如果eps不顯示,可能是點(diǎn)dvi2pdf沒用;先點(diǎn)dvi2ps再dvi2pdf。編譯方式:LaTex:編譯論文文件;BibTex編譯參考文獻(xiàn);再兩次LaTex(是規(guī)定的)(Tianyi告訴Fangjun Wu:ctrl+shift+X等同于LaTex+BibTex+LaTex+LaTex,分四步,能看出是參考文獻(xiàn)錯(cuò)誤還是文中有錯(cuò)誤)。
nannan wang講pdf圖片唯一的問題,質(zhì)量不太高,他和Yong Luo現(xiàn)在都是插入pdf圖片。Matlab生成的圖片可以直接保存為pdf格式,例如我準(zhǔn)備投CVPR 13的Yale結(jié)果圖,發(fā)現(xiàn)問題:見我的文件Yale.pdf,NN的結(jié)果在matlab看效果是方塊的,但到pdf是豎線。matlab畫出圖后,不保存為pdf,按打印,屬性,在Adobe PDF設(shè)置,默認(rèn)設(shè)置,編輯,選擇圖像,將彩色圖像,“縮減像素采樣”選擇“關(guān)”,再確定,打印成pdf,這樣就沒有問題了。這是首次的方式,以后每次打印時(shí)將默認(rèn)設(shè)置改為standard(1)即可 (This is with Fei Gao's help.)
雙欄模式插入單欄圖片:\begin{figure*},這種是因?yàn)閳D像比較大,必須單欄才能顯示出來,如果圖像很小就用
\begin{figure}即可;
如何讓圖片或者表格置頂?\begin{figure}[t], nannan wang says [t]就是實(shí)現(xiàn)置頂?shù)墓δ?br />Please note the differences between \usepackage{subfig} and \usepackage{subfigure}. These two can not be used together in
my talk: "talk\2017\I\1\Jie Gui_3\Multi-view".
(4)LATEX中如何插入網(wǎng)址?(我的教材P379)
使用以下方式即可:\usepackage{url}
\url{http://www.ri.cmu.edu/projects/project_418.html}
【這種方式在我的SRDA正則化參數(shù)估計(jì)雜志論文中已經(jīng)能夠正確編譯】
Latex參考文獻(xiàn)中含有網(wǎng)址,對(duì)應(yīng)的*.bib文件要如何編輯?
https://blog.csdn.net/techfield/article/details/19933589用到這個(gè)包:
\usepackage{url}
然后在你的.bib文件里寫上
@Misc{timmurphy.org,
howpublished = {[EB/OL]},
note = {\url{http://timmurphy.org/2009/07/22/line-spacing-in-latex-documents/} Accessed April 4, 2010},
title = {Line Spacing in LaTeX documents},
author = {Murphy, Timothy I}
}
我在引用https://cacm.acm.org/news/244720-yann-lecun-yoshuabengio-
self-supervised-learning-is-key-to-human-levelintelligence/
fulltext時(shí)將\url刪除了,如果加上沒法自動(dòng)換行
我覺得有如下兩種方式:方式一:@article{zhu2005semi,
title={Semi-supervised learning literature survey, \url{http://www.cs.wisc.edu/~jerryzhu/pub/ssl_survey.pdf}},
author={Zhu, X.},
year={2005},
publisher={Citeseer}
}也可以用url={http://www.cs.wisc.edu/~jerryzhu/pub/ssl_survey.pdf} ,但這樣有可能:編譯沒問題,但在最后參考文獻(xiàn)中,這一項(xiàng)顯示不出來問題:要不要使用宏包\usepackage{hyperref} 方式二:
\bibitem{url} National Center for Biotechnology Information, \url{http://www.ncbi.nlm.nih.gov}問題:要顯示網(wǎng)址中的~,使用\~{}嗎?審稿人說我的網(wǎng)址顯示不對(duì),我在latex用的是https://www.cs.toronto.edu/\~{}kriz/cifar.html
Tongliang回答:usepackage{hyperref},在文中使用\url{https://www.cs.toronto.edu/~kriz/cifar.html}
繼續(xù)產(chǎn)生問題:偽代碼中凡是有引用的,都加了紅色的框。網(wǎng)址,圖表的序號(hào)都加了框,這怎么解決呢?
Tongliang回答:在usepackage{hyperref}后面加上\hypersetup{
bookmarks=true, % show bookmarks bar?
unicode=false, % non-Latin characters in Acrobat’s bookmarks
pdftoolbar=true, % show Acrobat’s toolbar?
pdfmenubar=true, % show Acrobat’s menu?
pdffitwindow=false, % window fit to page when opened
pdfstartview={FitH}, % fits the width of the page to the window
pdftitle={My title}, % title
pdfauthor={Author}, % author
pdfsubject={Subject}, % subject of the document
pdfcreator={Creator}, % creator of the document
pdfproducer={Producer}, % producer of the document
pdfkeywords={keyword1, key2, key3}, % list of keywords
pdfnewwindow=true, % links in new PDF window
colorlinks=true, % false: boxed links; true: colored links
linkcolor=black, % color of internal links (change box color with linkbordercolor)
citecolor=black, % color of links to bibliography
filecolor=black, % color of file links
urlcolor=black % color of external links
}
即可,以上語句來自https://en.wikibooks.org/wiki/LaTeX/Hyperlinks,就最后五行修改了。我的論文SDHR就是這么處理的
我的latex中文簡(jiǎn)歷V1版本,20170301咨詢Yong Luo第二頁(yè)腳注顯示有問題。
他找到方案:把這個(gè)去掉就好了\usepackage{hyperref},這個(gè)包可能跟模板有沖突,會(huì)導(dǎo)致分頁(yè)不正常。
產(chǎn)生新的問題:但刪掉之后,有網(wǎng)址出現(xiàn)的地方就編譯通不過了,怎么使得網(wǎng)址出現(xiàn)的地方和我原來效果一樣呢?
他也沒有辦法解決,我想到的是用\url{}代替\href{},\usepackage{url},將V2版本發(fā)給他,感覺還行
(5)LATEX中,在輸入有中文的情況下如何兩端對(duì)齊?
以下例子可能是偶然情況,需要時(shí)再看教材4.2.7節(jié)。代碼一:,cbscmvOptimizeAlpha有參數(shù)lambda\_a可能就對(duì)應(yīng)這兩個(gè)正則化參數(shù);代碼二:,cbscmvOptimizeAlpha有參數(shù)lambda\_a可能就對(duì)應(yīng)這兩個(gè)正則化參數(shù)
.區(qū)別僅僅在于最前面中文還是英文逗號(hào),中文就能自動(dòng)兩端對(duì)齊,像IEEE模板一樣,長(zhǎng)單詞在截?cái)嗵幖?,不會(huì)硬放在一行。
(6)
Naive:
Also note the existence of \i and \j, which produce dotless versions of “i” and “j” (viz., “i” and “j”). These are useful when the accent is supposed to replace the dot. For example, “na\"{\i}ve
” produces a correct “naïve”, while “na\"{i}ve
” would yield the rather odd-looking “naïve”. (“na\"{i}ve
” does work in encodings other than OT1, however.) (http://hevea.inria.fr/examples/sym.html
)
參考文獻(xiàn)多個(gè)作者只顯示一個(gè)?
試試: Joe Gui and others 這種方式
如何設(shè)置成IEEE或者ACM的參考文獻(xiàn)樣式? https://www.sharelatex.com/learn/Bibtex_bibliography_styles
(末尾) LATEX插入?yún)⒖嘉墨I(xiàn)完整攻略
Latex中插入?yún)⒖嘉墨I(xiàn)遇到的問題:
在模板中,將最近的bib文件拷貝至當(dāng)前目錄,加上以下兩句即可\bibliographystyle{ieeetr} %plain\bibliography{a}如果模板有bibitem方式的參考文獻(xiàn),必須注釋。如果文中沒有加任何參考文獻(xiàn)引用,直接編譯是會(huì)出錯(cuò)的, 2012-09-18晚為這個(gè)問題很長(zhǎng)時(shí)間都沒搞定。回去想可能是在文中加一篇引用就能解決,確實(shí)是這個(gè)原因。以上就是Latex插入?yún)⒖嘉墨I(xiàn)完整的步驟 。
Latex中參考文獻(xiàn)如何設(shè)定專有名詞大寫
將所有參考文獻(xiàn)寫在bib file 中,然后在latex調(diào)用來生成參考文獻(xiàn),一般生成的參考文獻(xiàn)的格式是:除了文章名字的第一個(gè)字母為大寫外,其他均為小寫。但是有些專有名詞是需要全部大寫或者部分大寫的,要實(shí)現(xiàn)這樣的功能就需要在bib file 中把需要顯示為大寫的字母用{}括起來。
例如:要實(shí)現(xiàn) OFDMA network, 那么在bib file中,要寫成 {OFDMA} network;
要實(shí)現(xiàn) Nash bargaining solution, 那么在bib file 中要寫成 {N}ash bargaining solution.
Latex插入會(huì)議參考文獻(xiàn)時(shí) BOOKTITLE統(tǒng)一采用以下方式:看了很多,感覺Ran He CVPR2012的方式最好
booktitle={Conference on Computer Vision and Pattern Recognition};注意不能是{International Conference on Computer Vision and Pattern Recognition}
booktitle={International Conference on Computer Vision},
booktitle={European Conference on Computer Vision},
booktitle={Neural Information Processing Systems},
booktitle={International Conference on Machine Learning},
booktitle={International Joint Conference on Artificial Intelligence},
booktitle={AAAI Conference on Artificial Intelligence},這就是AAAI會(huì)議
booktitle={ACM SIGKDD Conference on Knowledge Discovery and Data Mining},這就是KDD會(huì)議
注意這兩個(gè)數(shù)據(jù)挖掘會(huì)議簡(jiǎn)稱
booktitle={IEEE International Conference on Data Mining}
,booktitle={SIAM International Conference on Data Mining},
mingming gong說UAI references用數(shù)字標(biāo)沒有問題, http://auai.org/uai2017/proceedings/papers/289.pdf,
http://auai.org/uai2017/proceedings/papers/11.pdf, 這兩個(gè)最終接受的論文都是用數(shù)字標(biāo)的, 他特地研究過。
不一定用那個(gè),真的無所謂.Asymmetric LSH是NIPS最佳論文獎(jiǎng),參考文獻(xiàn)19就寫的In KDD, 5寫的In SDM, 20寫的In NIPS。關(guān)鍵格式一致就可以。
書的引用方式:Top 10 algorithms in data mining的第83個(gè)文獻(xiàn),該文應(yīng)該是非常標(biāo)準(zhǔn)的方式。
Vapnik V (1995) The nature of statistical learning theory. Springer, New York
對(duì)應(yīng)的Latex方式:
@book{vapnik2000nature,
title={The nature of statistical learning theory},
author={Vapnik, Vladimir},
year={2000},
publisher={Springer, New York
}
}
對(duì)于沒有正式卷號(hào)期號(hào)的怎么寫bib文件?
仿照tongliang主頁(yè)寫法:@article{gui2016Re,
title={Representative Vector Machines: A unified framework for classical classifiers},
author={Gui, Jie and Liu, Tongliang and Tao, Dacheng and Sun, Zhenan and Tan, Tieniu},
journal={IEEE Transactions on Cybernetics},
doi={10.1109/TCYB.2015.2457234}
}
----------------------------------------以下內(nèi)容不必再看------------------------------------
注意不要加簡(jiǎn)稱CVPR 11之類,看Deng Cai Graph Regularized Nonnegative Matrix(TPAMI)第四十六個(gè)文獻(xiàn),patch alignment的第十八個(gè)文獻(xiàn)都沒有加會(huì)議簡(jiǎn)稱,
Yangqingjia CVPR 2012和Jianchao Yang CVPR 2009格式都是In CVPR
@INPROCEEDINGS{CHZH07,
Author = {Deng Cai and Xiaofei He and Wei Vivian Zhang and Jiawei Han},
TITLE = {Regularized Locality Preserving Indexing via Spectral Regression},
BOOKTITLE = {Proceedings of the 16th ACM Conference on information and knowledge management},
YEAR = {2007},
pages = {741--750},}
@INPROCEEDINGS{HCN05b,
AUTHOR = {Xiaofei He and Deng Cai and Partha Niyogi},
TITLE = {Tensor Subspace Analysis},
BOOKTITLE = {Advances in Neural Information Processing Systems 18},
YEAR = {2005}, }
booktitle={Proceedings of 2011 IEEE Conference on Computer Vision and Pattern Recognition}
booktitle={Proceedings of the 24th IEEE Conference on Computer Vision and Pattern Recognition}
The differences are 24th and 2011. I asked Professor Ran He on msn on 20120327 and he said that both are OK.
nannan wang(20120827): 標(biāo)準(zhǔn)就是統(tǒng)一就行。會(huì)議最后不要用Proceedings,年份一般也不寫,單獨(dú)寫,有簡(jiǎn)稱CVPR、NIPS都有,沒有都沒有。
booktitle={IEEE Conference on Computer Vision and Pattern Recognition}
如何排序并壓縮連續(xù)的引用,產(chǎn)生如[2,4-8] 形式的引用? [zhaofeng he]
如果你在Latex 中使用\cite{a,b,c,d,e,f} 則Latex 不會(huì)對(duì)條目進(jìn)行排序,因此,可能會(huì)產(chǎn)生象[6,2,5,8,4,7] 這樣很難看的排版效果。大多數(shù)人都希望對(duì)引用的條目進(jìn)行排序,并且對(duì)連續(xù)的條目使用壓縮的表示方式,即用[2,4-8] 表示上面的例子。使用cite 宏包可以解決這個(gè)問題。另一種方法是使用宏包natbib 并指定選項(xiàng)numbers 和sort&compress ,可以得到一樣的效果。如果使用BibTEX 則必須使用natbib所帶的數(shù)字式參考文獻(xiàn)風(fēng)格(plainnat.bst 和unsrtnat.bst)。
在使用 hyperref 宏包來生成超鏈接的時(shí)候會(huì)有點(diǎn)問題。cite 宏包會(huì)完全失效,產(chǎn)生沒有排序和壓縮的引用。而 natbib 則可以得到排序但沒有壓縮的引用效果。如果你想得到排序而且壓縮的效果,可以在加入natbib 宏包后再使用宏包 hypernat。
參考文獻(xiàn):Ctex FAQ-P.26
- 方法1:具體例子如下:\usepackage[sort&compress,square,numbers]{natbib}, 則可以得到排序但沒有壓縮的引用效果,但再使用\usepackage{hypernat},編譯出現(xiàn)錯(cuò)誤:
'hypernat.sty' not found的錯(cuò)誤。請(qǐng)chong wang幫忙,也沒能解決。
方法2:\usepackage[compress]{cite} [見我的Latex教材P367]。
以后就用這個(gè)方法
在gmailstore里的“Latex學(xué)習(xí)記錄”,20160826已經(jīng)整理,絕不再看,但gmailstore里刪不掉,本機(jī)的該文件已刪