0

I try to render some math equations using LaTeXiT, but Chinese characters does not show correctly: enter image description here

The text I tried to render is english 中文 English.

I made the following setup:

  1. add \usepackage{xeCJK} to LaTeXiT preamble
  2. Set LaTeXiT to use XeLaTeX engine in the Typesetting section: enter image description here

I also made sure that TexShop can show Chinese characters correctly after adding \usepackage{xeCJK} and use XeLaTeX. Also I found no error in the LaTeXiT log.

How do I setup LaTeXiT to show Chinese characters correctly?

  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Sep 03 '21 at 02:53
  • 1
    Please show the code you're trying to run, rather than a screenshot of fragments of said code. – Mico Sep 03 '21 at 03:59
  • unrelated but do not use inputenc with xelatex, it does nothing other than generate a warning that inputenc should not be used. – David Carlisle Sep 03 '21 at 07:40
  • Side Note: Assuming you installed TeX Live 2021 with the MacTeX installer Preferences setting for pdflatex and xelated should be /Library/TeX/texbin. That way it will always point to the active TeX distribution. I know I'd forget what I've done and then will be puzzled when I change active distributions and no longer have TeX Live 2021. – Herb Schulz Sep 03 '21 at 13:50
  • Maybe, more general information about how to typeset Chinese with (La)TeX can help: https://tex.stackexchange.com/q/17611/47927 – Jasper Habicht Sep 28 '22 at 09:31

1 Answers1

0

I just found a solution on a Chinese website, and the solution is to embrace Chinese characters in \mbox, for example: English \mbox{中文} English enter image description here

  • @DavidCarlisle LaTeXiT is an equation editor (https://www.chachatelier.fr/latexit/latexit-features.php), so what could be happening could be symbol-related in that $x+y=z \mbox{中文}$ shows the Chinese characters under xeCJK with xelatex, but $x+y=z 中文$ does not. – Cicada Sep 03 '21 at 09:34
  • @Cicada ah yes thanks, I deleted the first comment – David Carlisle Sep 03 '21 at 09:46