Apr 26, 2025

xelatex, switching from windows to Mac, Chinese font problems

 之前在windows上的微軟正黑體換到mac上後xelatex就編譯不過了。mac上好像只有黑體沒有正黑體。所以說latex可以獨立於作業軟體mac或windows好像不太對。而且我也遇到不少其它問題。我的mac是macOS Mojave version 10.14.6。

FontAwesome problem on Mac with xelatex

 xelatex fontawesome_problem.tex

This is XeTeX, Version 3.14159265-2.6-0.999992 (TeX Live 2020) (preloaded format=xelatex)

 restricted \write18 enabled.

entering extended mode

(./fontawesome_problem.tex

LaTeX2e <2020-02-02> patch level 5

L3 programming layer <2020-03-06>

(/usr/local/texlive/2020/texmf-dist/tex/latex/standalone/standalone.cls

Document Class: standalone 2018/03/26 v1.3a Class to compile TeX sub-files stan

dalone

Apr 24, 2025

Vim notes

Notes. Useful commands.
  1. 游標的位置是在游標方塊的左邊,按i insert插入的話,會在游標方塊的左邊插入。如果有兩個游標方塊(比如說游標在{或}上時),游標的位置是在比較深色的那個。在Mac上是這樣子。
  2. p是貼在游標的右方。
  3. ciw - change inner word, word includes underscores but not hyphens
  4. ci' - change inner content in ' ', without ' '.只要指標在' '裡面就可以。
  5. ca' - change outer content in ' ', with ' '.
  6. ci} - change content until }, without }. 只要指標在{ }裡面就可以。
  7. ca} - change content until }, with }
  8. vi) or vi}