Pedro Andres Aranda Gutierrez <[email protected]> writes:
>> You also removed xeCJK. Why?
>>
> Woops, I went too far...
+ ;; If the CJK font families have been included
+ ;; Check for polyglossia and/or babel and warn?
+ ;; Or advise for these packages to be added to `org-latex-package-alist'
??
+ (when (and cjk-packages (equal compiler "xelatex"))
+ (message "Adding the CJK packages")
+ (goto-char (point-min))
+ (forward-line 2)
+ (insert "\\usepackage[CJKspace]{xeCJK}\n"))
>From the forum replies, it looks like
\usepackage{ctex} is strictly better - it loads xeCJK foe xelatex, and
also right packages for lualatex and even pdflatex.
Also, maybe we should load these conditional of #+language? Say, by
adding to `org-latex-language-alist'. Then, we might be able to
generalize similar specialized packages to more languages.
>> And I am getting
>> ⛔ Warning (ox-latex): PDF file produced with warnings: [Missing
>> character(s): please load an appropriate font with the fontspec package]
>> Despite everything being rendered just fine.
> ...
> The warning, however, is triggered by:
>
> = Missing character: There is no (U+200B) in font
> [lmroman10-regular]:mapping=t
> = ex-text;!
> = Missing character: There is no (U+200B) in font
> [lmroman10-regular]:mapping=t
> = ex-text;!
>
> The character it is complaining about is a zero width space
> <https://unicode-explorer.com/c/200B>.
> I would need to investigate where this character comes from.
> But it has nothing to do with adding or not xeCJK.
It is right from
包时,org当中的加粗转为中间文件*tex*时是 - 200B*tex*200B escaping
emphasis markup, as full with spaces are not used in Chinese writing.
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>