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.

The following minimal example fed into xelatex:

\documentclass{article}

\usepackage{xeCJK}
\setCJKmainfont{MingLiU}
\usepackage{times}

\begin{document}
    Test 汉语
\end{document}

typesets the CJK correctly, but does not typeset the Roman text in Times, but in Computer Modern instead.

What's the correct way to have xeCJK only affect the CJK text and leave any Roman font settings unchanged?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You have to use the XeLaTeX methods. For instance this works:

\documentclass{article}

\usepackage{xeCJK}
\setCJKmainfont{Kai} % I don't have your MingLiu font
\setmainfont{TeX Gyre Termes} % choose any Times-like font

\begin{document}
    Test 汉语
\end{document}

enter image description here

share|improve this answer
    
If I understand this correctly, there's no way I can use the in-built Times (with small caps) -- it's all in or all out? –  jogloran Apr 19 '13 at 7:14
    
@jogloran If the system font has no small caps, you're out of luck. TeX Gyre Termes has small caps. –  egreg Apr 19 '13 at 8:22
    
A free Times-alike with small caps! Thanks. I ended up submitting my paper with caps instead of small caps, but I'll keep this in mind for future work. –  jogloran Apr 19 '13 at 12:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.