Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using LuaLaTeX to write my thesis, because LuaLaTeX has better compatibility. However, now I found that there seems to be conflict between the package luatex-ja (which provides neccessary CJK support) and the package fontspec. I think maybe it could be worked around, but I don't know how. Here is a mini example.

\documentclass{article}
\usepackage{luatexja-fontspec}
\setmainjfont{HanaMinA}
\newfontfamily\diacritics{FreeIdgSerif}
\newcommand\dc[1]{{\diacritics #1}}
\begin{document}
The diacritic symbol \dc{ḱe^^^^e548^^^^e535}  included in FreeIdgSerif has not been printed.
\end{document}

Compiling it, the following result will be printed out:two symbols are not printed out

However, if I change to xelatex and use the package xeCJK:

\documentclass{article}
\usepackage{xeCJK}
%\usepackage{luatexja-fontspec}
%\setmainjfont{HanaMinA}
\newfontfamily\diacritics{FreeIdgSerif}
\newcommand\dc[1]{{\diacritics #1}}
\begin{document}
The diacritic symbol \dc{ḱe^^^^e548^^^^e535}  included in FreeIdgSerif has not been printed.
\end{document}

The correct result will be printed out like this:The desired result

So, there seems to be conflict between luatex-ja and fontspec. My question: how can I get the same result like with XeLaTeX? Any idea?

share|improve this question

closed as off-topic by egreg, Kurt, Paul Gaborit, Werner, Przemysław Scherwentke Oct 8 '13 at 0:33

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

    
Actually, the [][] have been inputted correctly. If I change them, I'm afraid that the source code would be not correct then. They are not shown on the website due to lack of the diacritic symbols in the browser, I think ... –  insight Jan 28 '13 at 22:13
    
They are U+1E31 U+0065 U+E548 U+E535, so a valid input would be ḱe^^^^e548^^^^e535. Where is it possible to see that font? –  egreg Jan 28 '13 at 22:34
1  
Ok, I corrected the input. Thanks! These symbols are not available in usual fonts like times new roman. In FreeIdgSerif (a linguistic font) provided here, for example, the symbols are available. It is possible to see them, for example, in normal office programms, like libreoffice. The problem is that \newfontfamily of fontspec does not work with luatexj, seemingly because that it was somewhat redefined in luatexj. –  insight Jan 28 '13 at 23:00
    
luatexja has been updated in the meantime; does the new version work? –  egreg Sep 7 '13 at 21:07
4  
This question appears to be off-topic because it is about a problem solved with a software update –  egreg Oct 7 '13 at 22:38

Browse other questions tagged or ask your own question.