0

I have a document with a lot of different languages, some of which appear in \part{}, \section{}, etc. blocks. For example, the following MWE:

\documentclass[12pt,a4paper,oneside]{scrbook}
\setkomafont{sectioning}{\rmfamily \bfseries}
\usepackage{fontspec}
\setmainfont[Mapping=tex-text,Numbers=OldStyle]{Linux Libertine O}
\makeatletter
\usepackage{csquotes}
\usepackage{luacode}
\usepackage{polyglossia}
\setdefaultlanguage[variant=american]{english}
\setotherlanguage[variant=poly]{greek}
\usepackage{xstring}
\defaultfontfeatures{Mapping=tex-text}
\newfontfamily\greekfont[Script=Greek]{SBL Greek}
\tracinglostchars=2

\makeatother

\begin{document}

\part{Analysis Part Six: Anestis Logothetis{\textemdash}{\begin{greek}\textsc{Άναστάσεις}\end{greek}}}

Some text about {\begin{greek}\textsc{Άναστάσεις}\end{greek}}

\end{document}

For me, the word "Άναστάσεις" is properly set by \textsc in the body text, but not in the title. If I try language setting in other languages (I have another section title with German) the "Part" name is preceded by "Titlegerman" (indicating that the "\end{german} part just got appended to "Title").

Short version of the question: is there a way to have foreign-language words properly typeset in \part, \chapter, \section, etc. blocks? And to appear this way in the TOC?

Additionally, I should point out that Noto Sans doesn't handle \textsc correctly at all for Greek scripts, which is why I'm sticking with SBL Greek here.

Thanks for the help!

3
  • Seems that SBL Greek does not have bold small caps, so you only get bold in the \part title. In the document body, the text is not bold, so you get small caps. You need a font that has bold Greek small caps (not sure if there are any fonts out there that have that). This has nothing to do with the language as such, this is a font issue. I could not reproduce any language switching issues, but I'd probably prefer \text<language>{...} over \begin{<language>}...\end{<language>} in the argument of a title: \textgreek{\textsc{Άναστάσεις}}
    – moewe
    Mar 1 at 17:03
  • As a matter of fact, the Kerkis font both has a boldface smallcaps style and is part of texlive. I'll see about making it work. If there a way to specify that one font type just for the boldface smallcaps that would be used in titles?
    – user242047
    Mar 1 at 19:16
  • Edit: I found a way to implement it in this thread. That solves the problem (though I would have preferred a SemiBoldSmallCaps, as the Bold is too thick), so I'm good. Thanks!
    – user242047
    Mar 1 at 19:30

Your Answer

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

Browse other questions tagged or ask your own question.