Thursday, February 25, 2016

Ubuntu fonts

查找字体:
fc-list :lang=zh | sort

列出字体到文件:
fc-list -f "%{family}\n" :lang=zh > zhfont.txt

安装字体:
下载 .ttf true type fonts,双击,安装。

Install LaTex packages manually on Ubuntu

The following four steps permit manual installation of packages on Debian/Ubuntu (and presumably other Linux) systems.
If you have .sty file already, ignore step 1 and 2.
  1. Download the package from CTAN (e.g., xCJKnumb.tar).
  2. Extract the files and place them in an appropriate directory (e.g., /usr/local/share/texmf/tex/latex/xCJKnumb). This location is preferable to the main installation tree (/usr/share/texmf-texlive/tex/latex/) as the files are more likely to be preserved during upgrades.
  3. Generate the .sty file by running latex on the appropriate source files (e.g., latex xCJKnumb.ins and latex xCJKnumb.dtx).
  4. Update the ls-R file in this source tree (e.g., cd /usr/local/share/texmf/ ; sudo mktexlsr). Because /usr/local/share/texmf/tex/ is not searched recursively by kpathsea (cf. kpsepath tex), the ls-R file at the root directory of this search path must be updated to make the system aware of the new package.
References: 

把握現在: Latex 章節名稱及目錄改為中文

把握現在: Latex 章節名稱及目錄改為中文: Latex章節預設的名稱是Chapter 1 2 3 這樣一直下去 如果要改成中文"第一章" 這樣的話需要 titlesec, titletoc,CJKnumb這三個package 如果是使用XeLatex最後一個要改成xCJKnumb 這個package...