Hi

> El 15 nov 2025, a las 11:35, Ihor Radchenko <[email protected]> escribió:
> 
> "Pedro A. Aranda" <[email protected]> writes:
> 
>> Thanks a ton to @RadioNoiseE for the examples: with your help we can
>> now export org documents in Chinese or Japanese to PDF using XeLaTeX.
>> The current implementation has the following constraints:
>> 
>> 1. we use babel
>> 2. the main document language has to be jp or zh
>> 
>> It offers the possibility of having other secondary languages (I've 
>> tested with en-gb and es)
> 
> You still have an old
> 
>> ;; 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"))
> 
> in the code. Should it be removed?
That’s what made things work for lualatex/xelatex with plain font spec.
Remember that I was just talking about this working with *babel*…
We should discuss whether the current way is enough or we also want a pure 
fontspec/polyglossia solution too, given the added complexity shown in the MWEs

> Also, the new piece of code does not check for xelatex and will likely
> make lualatex compilation fail. xeCJK only works with xelatex.

Right, I’ll add that
> 
>> @all: Please install or refresh the feature/all-tex-fonts to check the 
>> results. A short section in the manual has been added, documenting my 
>> current understanding of the state of the branch.
> 
> I think that the documentation should mention that things only work for
> xelatex.
OK, I’ll add that too..
> 
> -- 
> 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>


Reply via email to