星期一, 九月 29, 2008

Latex格式控制两例

CJK中文段落首行缩进:
\setlength{\parindent}{2em}

双倍行距(double spacing):

To doublespace a LaTeX document, you should include the line

\usepackage{setspace}

after your \documentclass line.
Before your \begin{document} command,

\doublespacing

will make the text of the whole document doublespaced. Footnotes,
figures, and tables will still be singlespaced, however. For one-and-a-half
spacing, instead use the command

\onehalfspacing

In order to make a part of the text of your document singlespaced, you can
put:

\begin{singlespace}

at the beginning of the text you want singlespaced, and

\end{singlespace}

at the end.
You can also set the spacing to be something other than doublespaced; for
example, if you wanted to have one-and-a-quarter spacing between lines,
use the line

\setstretch{1.25}

before your \begin{document} command, and after the
\usepackage{setspace} line.

(NOTE: there is another package, called “doublespace” which will
usually work exactly the same way as setspace. However, it interacts
poorly with some graphics packages.)

星期一, 九月 15, 2008

TeXLive测试文件

\documentclass{article}
\usepackage{CJK}
\newcommand{\song}{\CJKfamily{song}}
\newcommand{\fang}{\CJKfamily{fang}}
\newcommand{\kai}{\CJKfamily{kai}}
\newcommand{\hei}{\CJKfamily{hei}}
\newcommand{\xinwei}{\CJKfamily{xinwei}}
\newcommand{\xingkai}{\CJKfamily{xingkai}}
\newcommand{\caiyun}{\CJKfamily{caiyun}}
\newcommand{\youyuan}{\CJKfamily{youyuan}}
\newcommand{\liti}{\CJKfamily{liti}}
\newcommand{\xihei}{\CJKfamily{xihei}}
\begin{document}
\begin{CJK}{UTF8}{song}
\Huge{

{\song这是宋体}

{\fang这是仿宋}

{\kai这是楷体}

{\hei 这是黑体}

{\xinwei这是新魏}

{\xingkai这是行揩}

{\caiyun这是彩云}

{\youyuan这是幼圆}

{\liti这是隶体}

{\xihei这是细黑}
}
\end{CJK}
\end{document}

TeXLive 2008

自身只带两种中文字体,gbsn和bkai。
在Linux下,可以下载这个文件zhTexFonts。其中有配置的说明。

Windows的就懒得配置了,我可以是连接到服务器上编译tex文件。

另外在Beamer中使用中文时注意:
……
\usepackage{CJKutf8}
……

而不是名仅为CJK的包。

星期日, 九月 14, 2008

后来想想

虽然很少用到doc,xls什么的,但是经常会收到一些类似的文件,比如很多政府机关/学校的公文。索性安装了一个OpenOffice。

星期六, 九月 13, 2008

关于汶川地震的小插曲

有一位算是和自己比较亲近的人,有一次在聚会上居然说国人如此之多,地震搞死的人少了,我当时就和他翻了脸。到现在我们都没再说过话。

想想我自己的表达方式或许也有些问题。该先生平时就喜欢大嘴巴,喜欢说一些“标新立异”的话,其实他人并不坏,慢慢说或许各方面的情况会比较圆满。也算互相是个教训吧。

彻底告别盗版

或许我的认识不够,为什么Linux这么好用而且是免费的,有这么多的人还要去用昂贵和不那么好用的微软系列。

两周前买了一台联想U110,模样确实经典,很可惜随机的系统是微软的。想装一个Linux,但是目前还没有像样的x3100显卡的Linux驱动,只得作罢。

随机还带了一套试用版的Office home & students。还有一套所谓的正版,但功能非常缩水的work。后者很快就删掉了,前者也到期了。仔细想想,使用期之内也真没怎么用,那么就再见吧。现在可以很自豪的说,我已经很长很长时间没有用盗版了。

另外,今后为了增加点击率,我将多在此放一些有关Linux的使用技巧。