2016年6月26日星期日

Mac上在线Tex编辑工具 sharetex.com 如何支持中文

sharetex.com 是一个在线编写tex,直接编译查看pdf的好工具。

但是缺省配置是for洋大人,不能支持中文。

其实只需要修改一个地方:


将编译器修改为 XeLaTeX 即可。

同时在编写TeX 源文件的时候,

写入   \usepackage{xeCJK}

就可以在sharetex.com 用中文撰写了。


2016年6月23日星期四

在Mac OSX 上X11窗口可视化运行调试postscript

本文创作于2016年, 所有软件和包的状况均依赖于当时最新进展。


  1. install ghostscript on Mac OS X
    kunth 的网站上有一个 ghostscript for Mac OS X installation package


Ghostscript 9.19 was released March 23, 2016. Below is a Macintosh install package for Ghostscript 9.19. The package works on both PPC and Intel, for Leopard and above. Please test this package, which will be part of TeX Live 2016. In case of trouble, you can revert to Ghostscript 9.18 below.
    2 .在 https://www.xquartz.org 安装XQuartz  的相关包

     
    3. 然后调换 gs 的命令行


 ls -l /usr/local/bin/gs

/usr/local/bin/gs -> /usr/local/bin/gs-noX11

 sudo ln -sf   /usr/local/bin/gs-X11 /usr/local/bin/gs


     当然也可以不替换,每次执行 gs-X11 就好了

    这样就可以在terminal.app 中执行 gs >> showpage 的时候,实时看到执行的结果了。