6

I have the following in my TeX:

\subsection{Buch 1 問題の日本語}

In my Table of Contents it is correctly displayed but in the subsection itself you can only see 1.1 Buch 1. I guess this is because the subsection title is bold in the main text and the Table of Contents text is not.

Some kind of solution to this to force the 問題の日本語 part not to be bold?

Minimal working example: (use XeLatex)

\documentclass[12pt]{scrartcl}

\usepackage{xltxtra} 
\usepackage[ngerman]{babel}
\usepackage{setspace}
\onehalfspacing
\setmainfont[ItalicFont=Arial Kursiv]{Arial Unicode MS} 

\begin{document}
\tableofcontents

\section{bla}
\subsection{Buch 1 問題の日本語}

\end{document}
1
  • for xelatex you should use the package polyglossia and not babel
    – user2478
    Feb 9 '12 at 18:47
3

The problem is not the bold font. scrartcl uses the sans family to print the subsection title. This is latin modern sans in your document. Either set the sans family to Arial too:

 \setsansfont[ItalicFont=Arial Kursiv]{Arial Unicode MS} 

Or switch to the main font before the japanese:

  \subsection{Buch 1\rmfamily 問題の日本語}    

(untested due to lack of time)

1
  • \subsection{Buch 1\rmfamily 問題の日本語} worked, thank you
    – mania
    Feb 9 '12 at 18:13
2
\documentclass[12pt]{scrartcl}

\usepackage{fontspec} 
\usepackage[ngerman]{babel}
\usepackage{setspace}
\onehalfspacing
\setmainfont[ItalicFont=Arial Italic]{Arial Unicode MS} 

\begin{document}
\tableofcontents

\section{bla}
\subsection{Buch 1 \textnormal{問題の日本語}}

\end{document}

enter image description here

3
  • Doesn't work for me. I have MikTex 2.9 and use Texworks
    – mania
    Feb 9 '12 at 18:12
  • \textnormal{...} is only important for you.
    – user2478
    Feb 9 '12 at 18:26
  • Oh I'm sorry, I just saw the fontspec part being different, you're right.
    – mania
    Feb 9 '12 at 18:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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