Google

Archives

Gallery

DSCN2248 DSCN2243 china DSCN2251

Figure format conversion in Linux

EPS 2 PNG
Manual conversion

Open the file in the GIMP (make sure you have ghostscript installed! — Windows Ghostscript installation instructions)

Enter 500 in the “resolution” input box
You may need to uncheck “try bounding box”, since the bounding box sometimes cuts off part of the image.

Enter large values for Height and Width if not using the bounding box

Select color
Select strong anti-aliasing for [...]

Taking full advantages of pdfLaTeX -- eps figure solution

Advantages of pdfLaTeX

LaTeX users generate postscript output using dvips. An alternative is to use pdfTeX to generate PDF files directly. The PDF format offers a number of advantages over postscript:

Smaller uncompressed file sizes.
Much more efficient bitmap inclusion.
Availability of hyperlinks.
Better accessibility for inexperienced users.
Adobe’s Acrobat reader offers facilities for electronic presentations

Limitation of pdfTeX

1. postscript figures cannot [...]

Commands for Compress and Decompress

Commands for Compress and Decompress

.tar

解包: tar xvf FileName.tar
打包:tar cvf FileName.tar DirName
(注:tar是打包,不是压缩!)
———————————————

.gz

解压1:gunzip FileName.gz
解压2:gzip -d FileName.gz
压缩:gzip FileName
.tar.gz
解压:tar zxvf FileName.tar.gz
压缩:tar zcvf FileName.tar.gz DirName

———————————————

.bz2

解压1:bzip2 -d FileName.bz2
解压2:bunzip2 FileName.bz2
压缩: bzip2 -z FileName
.tar.bz2
解压:tar jxvf FileName.tar.bz2
压缩:tar jcvf FileName.tar.bz2 DirName

———————————————

.bz

解压1:bzip2 -d FileName.bz
解压2:bunzip2 FileName.bz
压缩:未知
.tar.bz
解压:tar jxvf FileName.tar.bz
压缩:未知
———————————————

.Z

解压:uncompress FileName.Z
压缩:compress FileName
.tar.Z
解压:tar Zxvf FileName.tar.Z
压缩:tar Zcvf FileName.tar.Z DirName

———————————————

.tgz

解压:tar zxvf FileName.tgz
压缩:未知
.tar.tgz
解压:tar zxvf FileName.tar.tgz
压缩:tar zcvf FileName.tar.tgz FileName
———————————————

.zip

解压:unzip FileName.zip
压缩:zip FileName.zip DirName
———————————————

.rar

解压:rar a [...]

ubuntu 下 latex 中文支持script & samples

介绍如何在ubuntu 下按章cjk 支持,一下脚本在ubuntu 9.10 + kile 下测试好使。

latex 下安装中文支持,需要安装一系列宏包,然后拷贝生成字体什么的,甚是繁琐。一步抄作出问题,会浪费很多时间。

不如写成一个script, shell 脚本。出问题,或机器重装,运行此脚本即可,一劳永逸。

备忘。 脚本下载:install_cjk

samples :
\documentclass{article}
\usepackage{CJK}
\begin{document}
\begin{CJK}{UTF8}{song}
这是so8848
\end{CJK}
\end{document}

backup and sync with lftp

lftp is an amazing  command line ftp tool, which lets you operate remote files just like in a local filesystem in a terminal (bash).  If you work a lot with command line, I bet you would like it.  A frequently used functionality with lftp is backup or sync a remote directory with a local one.

Here is [...]