跳转至

CTeX 中文显示问题解决

1. Problem Specification

  • After upgrading to BlackArch Linux, Chinese characters in PDF files made by XeLaTeX cannot display.
  • Neither of Evince, Document Viewer in GNOME, PDFView in Emacs can display Chinese Characters, but Chrome can display Chinese correctly.
  • CTEX is used in compiling LaTeX, XeLaTeX complied without errors, except a warning like "Package fontspec Warning: Font "FandolSong-Regular" does not contain requested (fontspec) Script "CJK"."

2. Not Working Solutions

  • Installing Windows fonts
  • Install the fandol fonts in /home/hxp/.fonts/fonts/opentype/public/fandol

3. Solution

Install poppler-data package

sudo yay -S poppler-data