home »

A locked post

I'm sorry, this post has been locked for personal reasons.

Category: /web | Permalink

A locked post

I'm sorry, this post has been locked for personal reasons.

Category: /web | Permalink

A locked post

I'm sorry, this post has been locked for personal reasons.

Category: /news | Permalink

A locked post

I'm sorry, this post has been locked for personal reasons.

Category: /life | Permalink

A locked post

I'm sorry, this post has been locked for personal reasons.

Category: /life | Permalink

译稿

最近抽空翻译了点东西,R. B. Grossman, The Art of Writing Reasonable Organic Reaction Mechanisms, 2nd ed., Springer. (2003) 的一部分,《 合理推断有机反应机理的艺术》,下载链接如下:

» 样稿 (中文); MD5 (验证)

为版权和编辑打交道,目前结果还不确定,所以暂时停下来了。

专业著作的读者群小,而这些读者更应该直接读英文原版。如果原版是小语种,译 成英文或许更有意义。

Category: /news | Permalink

How this website was built

This wesite is powered by Blosxom (a Perl-based CGI utility) and hosted by SDF.

The following plugins are used. They can be downloaded from the official plugins list, or the unofficial plugins list.

  • archives - Shows a tree display of years/months and the number of posts in each.
  • autoblock - Automaticly wraps blocks in HTML tags, including paragraph, code, and blockquotes.
  • breadcrumbs - Builds a clickable trail to your current position in the weblog's path.
  • cache_timestamps - Keeps timestamps in cache.
  • categories - Builds a tree display of paths/categories populated with weblog posts.
  • extensionless - Makes Blosxom recognize date-based, extensionless URIs for both stories *and* categories.
  • flavourdir - Keeps your flavours in a separate flavour directory rather than alongside all of your blog posts.
  • fmtcat - Formats categories nicely with separators.
  • googletag - Translates <google>keyword</google> to a google search link.
  • hide - Hides special posts, but allows the stories to be searched by the find plugin.
  • interpolate_fancy - Includes a link to the post's path using various template variables.
  • latex_render - Supports LaTeX math formulae.
  • paging - Provides page navigation, with previous/next links.
  • seemore - Allows for long or spoiler-y posts to be split, with a "See more..." link.
  • storytitle - Allows you to use the story title in the title of a page. Only works with stories on own page.
  • strip_unix_comments - Removes any line beginning with a # character.
  • wazzup - Displays a list of links to the most-recent posts.

Category: /about | Permalink

Contact info

liyi.jpg

Name: Li Yi
Email: email.jpg

Feel free to drop me an email. For further information, please let me know.

Category: | Permalink

两个小工具

(for Microsoft Windows)

* AddMyNote (70K): 给 Microsoft Word 文档的脚注标号加方括号。

MD5 (AddMyNote.exe) = 2542224692558d7c04a3c536af50b867

中文文档中脚注标号的数字一般要求用方括号括住,而 Microsoft Word 默认脚注 标号不带括号。这个小工具提供的宏和模板可以给脚注标号加(或去掉)方括号。 安装这个插件后会出现新菜单,可以批量转换,使用很方便。其前身是 AddMyFootnote。

安装过程中不必改变默认路径,解压后出现安装文件夹 AddMyNote_Setup/,可在 安装成功后删除。

* notice-ins (21K): 定时提醒,功能简单,挺好用的。

MD5 (notice-ins.zip) = 5fa0d3675559133394be551350ba45ea

Category: /computer | Permalink

A locked post

I'm sorry, this post has been locked for personal reasons.

Category: /news | Permalink

A locked post

I'm sorry, this post has been locked for personal reasons.

Category: /news | Permalink

A locked post

I'm sorry, this post has been locked for personal reasons.

Category: /history | Permalink

A locked post

PLEASE note that this post has been locked for personal reasons.

Category: /computer/tex | Permalink

Acroread for Debian

Acroread is the linux branch of the Adobe Acrobat Reader. Anyone can get the tar ball from Adobe. The deb package (current version: 7.08) can be found here. The additional font packages can be downloaded via this page.

Category: /computer/debian | Permalink

A locked post

I'm sorry, this post has been locked for personal reasons.

Category: /computer | Permalink

A locked post

I'm sorry, this post has been locked for personal reasons.

Category: /news | Permalink

`listings' conflicts with `CJK'

`listings' (v1.3) conflicts with `CJK' (v4.7.0) in teTeX 3.0.

The solution is to add

\lstset{extendchars=false}

to the preamble of your LaTeX source file.

See: Debian Bug report logs - #348636

Category: /computer/tex | Permalink

配置 SCIM

环境:Debian (3.1, sarge): Xorg (1:7.1.0-11); GNOME (1:2.14.3.5); SCIM (1.4.4-7)。

1. 设置 locale

# dpkg-reconfigure locales

选择 locales,如 en_US.UTF-8, zh_CN.UTF-8, zh_CN.GBK。

2. 安装 SCIM

# apt-get install scim scim-gtk2-immodule scim-modules-socket \
> scim-modules-table scim-pinyin scim-tables-zh

3. 修改 /etc/gtk-2.0/gtk.immodules

- "xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh" 
+ "xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh:en" 
- "scim" "SCIM Input Method" "scim" "/usr/share/locale" ""
+ "scim" "SCIM Input Method" "scim" "/usr/share/locale" "zh:en"

4. 重启 X

中、英文环境下都可以输入中文。

Category: /computer/debian | Permalink

硬盘安装 Debian

1. 下载安装文件

Debian 镜像列表 中选择镜像,下载以下三个文件,存放到 C:/debian/ 目录下:

  • debian-31r4-i386-netinst.iso (112M)
  • vmlinuz (798K)
  • initrd.gz (2.9M)

第一个文件在镜像的 /debian-cd/3.1_r4/ 目录中;

后两个文件在 /debian/dists/Debian3.1r4/main/installer-i386/current/images/hd-media/ 目录中。

2. 安装 Grub4DOS

下载 Grub for DOS,按提示安装到 Windows 的 C: 盘。实际上只需把二进制文件 grldr 拷贝到 C: 盘根目录。

编辑 C:/boot.ini ,添加:

C:\GRLDR="Start GRUB"

3. 安装基本系统

重启,进入 Grub 启动菜单,选择 Boot Grub,在 Grub 命令行依次输入以下三行:

grub> kernel (hd0,0)/debian/vmlinux root=/dev/ram \
> ramdisk_size=512000 devfs=mount,all
grub> initrd (hd0,0)/debian/initrd.gz
grub> boot

即开始安装基本系统。

注:

A. 分区基本原则:

  • 必须有主分区 / 和 swap,用户目录 /home 最好单独分区,如果用来做数据库或服务器,分区应当更细;
  • swap 分区的大小:当内存小于 256M 时,swap 分区大小为内存大小的二倍;当内存大于 512M 时,分给 swap 分区约 512M。

B. 桌面环境及其它软件包

在安装基本系统时,按提示设置好网络和 sources.list ,安装好基本系统以后,用 APT 安装桌面系统及其它软件包。

Category: /computer/debian | Permalink

Timezone

1. Set "UTC=no" in "/etc/default/rcS".

2. Set as your own location in "/etc/timezone".

3. Load hardware clock to system. ("hwclock -s")

$ man date
$ man hwclock

Category: /computer/debian | Permalink

teTeX 3.0 的中文配置

以前一直用 CJK 宏包处理中文,基本够用,后来改用更符合中文用户使用习惯 的 CCT 宏包。下面这些内容源于以前配置 tetex-2.0 的步骤,改动后用 于tetex-3.0。现在不用了,放在这里留个纪念。

1. 建立 $TEXMFHOME 目录,拷贝 gbkfonts 二进制文件

$ mkdir ~/texmf
$ cp /your/path/gbkfonts ~/texmf/

2. copy truetype 中文字体

$ mkdir ~/texmf/fonts/truetype/chinese/
$ cp /your/path/sim*.ttf ~/texmf/fonts/truetype/chinese/

常用的有宋体、黑体、楷体。

3. 生成字体

$ cd ~/temxf/
$ ./gbkfonts ~/texmf/fonts/truetype/chinese/simsun.ttf song
$ ./gbkfonts ~/texmf/fonts/truetype/chinese/simhei.ttf hei
$ ./gbkfonts ~/texmf/fonts/truetype/chinese/simkai.ttf kai

4. 调整目录

标准 TeX 目录结构TDS)调整生成的文件:

$ mkdir -p  ~/texmf/fonts/{map/{dvipdfm,dvips,pdftex,ttf2pk},\
> enc/{dvips/chinese,pdftex/chinese}}
$ mv ~/texmf/dvips/cjk.map ~/temxf/fonts/map/dvips/
$ mv ~/texmf/pdftex/config/*.map ~/texmf/fonts/map/pdftex/
$ mv ~/texmf/dvipdfm/config/*.map ~/texmf/fonts/map/dvipdfm/
$ mv ~/texmf/ttf2pk/ttfonts.map ~/texmf/fonts/map/ttf2pk/
$ mv ~/texmf/dvips/chinese/* ~/texmf/fonts/enc/dvips/chinese/
$ mv ~/texmf/pdftex/enc/* ~/texmf/fonts/enc/pdftex/chinese/

5. dvips 的必要配置

$ mkdir ~/texmf/dvips/config/
$ cp /usr/share/texmf-tetex/dvips/config.ps ~/texmf/dvips/config/
$ cat "p +cjk.map" >> ~/texmf/dvips/config/config.ps

6. 刷新 TeX 文件名数据库

$ texhash

Category: /computer/tex | Permalink

Contact

liyi.jpg

Name: Li Yi (李毅)
Email: email.png

Categories
Archives
Subscribe