I thought it might be useful for someone who wants to use the latex for their presentations. In my case, I have used the latex graphical package TIKZ/PGF a lot. This package is very powerful and handy for drawing nice pictures, e.g., mind maps, arrows, coordinates, math plot, node chains.
Here I would like to publish my source code and share some magics (-:. You can download my thesis, presentation and its source code by clicking following links:
Guoliang Liu. "Bayes Filters with Improved Measurements
For Visual Object Tracking", PhD Dissertation, University of Goettingen,
Mar 2012. (PDF, PPT, LATEX CODE )
Showing posts with label latex. Show all posts
Showing posts with label latex. Show all posts
Friday, April 13, 2012
Saturday, August 13, 2011
IEEE LATEX TEMPLATE \markboth doesn't work
Because the default setting of the template is one side document, so to enable the \markboth,
you have to add twoside to the documentclass options:
\documentclass[10pt,journal,letterpaper,compsoc,twoside]{IEEEtran}
you have to add twoside to the documentclass options:
\documentclass[10pt,journal,letterpaper,compsoc,twoside]{IEEEtran}
Thursday, February 24, 2011
如何在UBUNTU10.10版本中使用LATEX制作中文论文
折腾了两天,一直想着把我在WINDOWS里用CTEX写的论文搞到UBUNTU下来。
最近的UBUNTU当然界面是十二分的漂亮。但是也丢掉了一些比较有用的包包,比如TEX-COMMON等,这些是CCT安装必须的文档。
所以现在不能按照以前的路子装CCT和CJK了。。
幸好最新的UBUNTU是支持CJK(China, Japan, Korea)的,所以首要工作就是安装CJK和LATEX的组件
然后就是安装字体了。
看了看自动化学报的LATEX模板,要用到GBK,而新装的CJK里只有GB。
所以就到网上到处搜索GBK的字体,
从ftp://ftp.cc.ac.cn/pub/cct/CJK/ 下载了ctex-0.7-1.i386.rpm和CJK-GBKfonts-0.3-15.i386.rpm两个文件
然后用alien命令转换rpm到deb,在UBUNTU下直接用DPKG命令安装两个DEB文件。
对于字体,可以直接从WINDOWS里COPY,我的WINDOWS XP只有两种汉字字体,所以只能到网络上寻找以下六种常用字体:
#sudo gbkfont-inst simsun.ttf song
#sudo gbkfont-inst simkai.ttf kai
#sudo gbkfont-inst simhei.ttf hei
#sudo gbkfont-inst simfang.ttf fang
#sudo gbkfont-inst simyou.ttf you
#sudo gbkfont-inst simli.ttf li
具体操作方法可以参考http://zeroxu.ycool.com/post.1446655.html。
不过他的是安装CCT,我的是安装CJK,有点不同。。
最后就是别忘记了TEXHASH来更新LATEX的路径。
现在就可以在UBUNTU下进行完美的中文论文排版和输入了。。
最近的UBUNTU当然界面是十二分的漂亮。但是也丢掉了一些比较有用的包包,比如TEX-COMMON等,这些是CCT安装必须的文档。
所以现在不能按照以前的路子装CCT和CJK了。。
幸好最新的UBUNTU是支持CJK(China, Japan, Korea)的,所以首要工作就是安装CJK和LATEX的组件
然后就是安装字体了。
看了看自动化学报的LATEX模板,要用到GBK,而新装的CJK里只有GB。
所以就到网上到处搜索GBK的字体,
从ftp://ftp.cc.ac.cn/pub/cct/CJK/ 下载了ctex-0.7-1.i386.rpm和CJK-GBKfonts-0.3-15.i386.rpm两个文件
然后用alien命令转换rpm到deb,在UBUNTU下直接用DPKG命令安装两个DEB文件。
对于字体,可以直接从WINDOWS里COPY,我的WINDOWS XP只有两种汉字字体,所以只能到网络上寻找以下六种常用字体:
#sudo gbkfont-inst simsun.ttf song
#sudo gbkfont-inst simkai.ttf kai
#sudo gbkfont-inst simhei.ttf hei
#sudo gbkfont-inst simfang.ttf fang
#sudo gbkfont-inst simyou.ttf you
#sudo gbkfont-inst simli.ttf li
具体操作方法可以参考http://zeroxu.ycool.com/post.1446655.html。
不过他的是安装CCT,我的是安装CJK,有点不同。。
最后就是别忘记了TEXHASH来更新LATEX的路径。
现在就可以在UBUNTU下进行完美的中文论文排版和输入了。。
Wednesday, February 23, 2011
解决UBUNTU下GVIM等显示中文为乱码的问题
由于WINDOWS下的汉字一般默认是GB格式,而UBUNTU下的汉字是UTF8,所以UBUNTU不能正常显示WINDOWS下书写的汉字,
比较笨拙的解决办法是下载安装zh-autoconverter,使用命令autob5来进行转换。
另外一个在GVIM上比较好的方法是,打开.vimrc,
添加以下命令:
let &termencoding=&encoding
set fileencodings=utf-8,gbk,ucs-bom,cp936
果然问题解决了。。。
比较笨拙的解决办法是下载安装zh-autoconverter,使用命令autob5来进行转换。
另外一个在GVIM上比较好的方法是,打开.vimrc,
添加以下命令:
let &termencoding=&encoding
set fileencodings=utf-8,gbk,ucs-bom,cp936
果然问题解决了。。。
Wednesday, February 16, 2011
告诉你如何让自动化学报使用最新的CTEX
国内的LATEX用户逐渐增多,当然LINUX下书写英文论文非常便捷。但是中文支持却差强人意。CTEX是在为WINDOWS用户开发的一款LATEX中文书写工具,添加了对中文的支持,感觉做的非常棒。界面功能非常的多。但是国内中文期刊还都是在用WORD排版,对于这种新鲜事物,敢为人先的就是自动化学报。
就连自动化学报也固步自封,只支持老版本的CTEX,没有提出针对新版本的方案。
其实看下它的模板,唯一和新版本不兼容的只是PSFIG插件没装。一种解决方案是自己手动安装PSFIG,我尝试过了,是不通的。另外一种方案就是放弃PSFIG,将模板中的\PSFIG命令全部换成\includegraphics命令,编译通过。图像和中文显示完美。另外编译的时候要采取两步处理,第一步是LATEX命令生成DVI文件,然后用DVI2PDF生成PDF文件。
就连自动化学报也固步自封,只支持老版本的CTEX,没有提出针对新版本的方案。
其实看下它的模板,唯一和新版本不兼容的只是PSFIG插件没装。一种解决方案是自己手动安装PSFIG,我尝试过了,是不通的。另外一种方案就是放弃PSFIG,将模板中的\PSFIG命令全部换成\includegraphics命令,编译通过。图像和中文显示完美。另外编译的时候要采取两步处理,第一步是LATEX命令生成DVI文件,然后用DVI2PDF生成PDF文件。
Friday, January 21, 2011
Monday, November 16, 2009
Convert bib file to bbl file
I have a bibliography database file which was created by kbib. I want to use it on latex. In the tex file, I add
"
\bibliographystyle{plain}
\bibliography{bibfile}
"
just begin the end of documentation.
When I first compile the file, it told me it can not find reference .bbl file. So I use bibtex to build a .bbl file which can be used in latex.
$ bibtex filename.aux
here .aux was created by first run of latex. It automatically transfer data from bibfile.bib to filename.bbl by filename.aux.
It's great. Because you just need one database, then you can use it forever.
Thanks latex.
"
\bibliographystyle{plain}
\bibliography{bibfile}
"
just begin the end of documentation.
When I first compile the file, it told me it can not find reference .bbl file. So I use bibtex to build a .bbl file which can be used in latex.
$ bibtex filename.aux
here .aux was created by first run of latex. It automatically transfer data from bibfile.bib to filename.bbl by filename.aux.
It's great. Because you just need one database, then you can use it forever.
Thanks latex.
No bounding box.
! LaTeX Error: Cannot determine size of graphic
in ... (no BoundingBox).
Today I encounter this problem when I play with latex-beamer. The problem is that when I compile it I was using latex but not pdflatex...Because latex just can use .eps picture. The command pdflatex just accept .pdf, .png, except .eps.
After converting the image from png to eps, it works with latex. AFter converting eps to png, pdflatex also works.
in ... (no BoundingBox).
Today I encounter this problem when I play with latex-beamer. The problem is that when I compile it I was using latex but not pdflatex...Because latex just can use .eps picture. The command pdflatex just accept .pdf, .png, except .eps.
After converting the image from png to eps, it works with latex. AFter converting eps to png, pdflatex also works.
Wednesday, October 21, 2009
vim-latexsuit
When I install it by apt-get on ubuntu, it doesn't work. Afterwards I download its source file and install it manually. Now it works.
But it uses evince as default dvi viewer and the output is quite bad. So I first change the default viewer by right click the icon of file and choose xdvi. It works just when I open the dvi file but not for gvim.
So I think I need set vim-latex's parameter. Finally I get it:
Open a .tex file and type "let g:Tex_ViewRule_dvi = 'xdvi'" . Now use the shortcut \lv of this suit, it show the file by xdvi.
I add this line to ./vim/ftplugin/tex.vim file. Now it works fine.
I also try the kdvi, but it can not work here. I still don't know the reason.
But it uses evince as default dvi viewer and the output is quite bad. So I first change the default viewer by right click the icon of file and choose xdvi. It works just when I open the dvi file but not for gvim.
So I think I need set vim-latex's parameter. Finally I get it:
Open a .tex file and type "let g:Tex_ViewRule_dvi = 'xdvi'" . Now use the shortcut \lv of this suit, it show the file by xdvi.
I add this line to ./vim/ftplugin/tex.vim file. Now it works fine.
I also try the kdvi, but it can not work here. I still don't know the reason.
Subscribe to:
Posts (Atom)