本博文使用的环境为:
操作系统:Ubuntu14.04
TeX系统:TeXLive 2014
如果是Windows系统,设置方式相似。
$ cat chinese01.asy
settings.tex="xelatex";
texpreamble("\usepackage{xeCJK}");
texpreamble("\setCJKmainfont{Adobe Song Std}");
size(200);
pair O=(0,0);
draw(Label("东",EndPoint),O--E,Arrow);
draw(Label("北",EndPoint),O--N,Arrow);
draw(Label("西",EndPoint),O--W,Arrow);
draw(Label("南",EndPoint),O--S,Arrow);
draw(Label("东北",EndPoint),O--NE,Arrow);
draw(Label("西北",EndPoint),O--NW,Arrow);
draw(Label("东南",EndPoint),O--SE,Arrow);
draw(Label("西南",EndPoint),O--SW,Arrow);编译一下,
asy -V -f pdf chinese01.asy
配置完毕,可以试试效果,
本文出自 “天道酬勤” 博客,请务必保留此出处http://lavenliu.blog.51cto.com/5060944/1661404
原文地址:http://lavenliu.blog.51cto.com/5060944/1661404