On writing a book with LyX


I use Zotero with the LyZ plugin for managing resources that need to be inserted into my books. Such resources include references and CC0 images.

How to render...

... Chinese Characters

Change these settings:
  • In Document > Settings... > Document Class > Document Class, choose "Chinese Book (CTeX)".
  • In Document > Settings... > Language > Language, choose "Chinese".
  • In Document > Settings... > Formats > Output Format > Default output format, choose "PDF (XeTeX)". XeTeX, in my experience, is the best renderer.

About Fonts

Assuming you have Homebrew installed, you can install Chinese fonts that is freely available for publications, such as Source Han Serif. First, you need to add the tap:
brew tap homebrew/cask-fonts
Now, install Source Han Serif:
brew cask install font-source-han-serif
Finally, you can change more settings now. In Document > Settings... > Fonts, tick "Use non-TeX fonts". Choose "Source Han Serif" in "Roman". I also chose the same font for "Sans Serif", but you probably should not.

... Emojis

To render Emojis, I use xelatex-emoji. In Document > Settings... > LaTeX Preamble, add: