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 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}
share|improve this question
    
for xelatex you should use the package polyglossia and not babel –  Herbert Feb 9 '12 at 18:47
add comment

2 Answers

\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

share|improve this answer
    
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. –  Herbert 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
add comment

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)

share|improve this answer
    
\subsection{Buch 1\rmfamily 問題の日本語} worked, thank you –  mania Feb 9 '12 at 18:13
add comment

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.