1

In russian typography the dashes are recommended to be typeset as "---, not as ~---, and "--~ as a dash between surnames, according to https://en.wikibooks.org/wiki/LaTeX/Internationalization#Cyrillic_script. The examples shown are using babel, but I use polyglossia and the result is wrong:

enter image description here

How can I use these babel way of typesetting without switching from polyglossia?

Here is a MWE (I use LuaLaTeX):

\documentclass{article}

\usepackage{polyglossia}
\defaultfontfeatures{Ligatures=TeX}
\setmainlanguage{russian}
\setmainfont{Georgia}
\newfontfamily\cyrillicfont{Georgia}

\begin{document}

    А"--- Б.

    Ньютон"--~Лейбниц.

\end{document}
2

You can activate the shorthands with the option babelshorthands (by language or globally, see the documentation):

\documentclass{article}

\usepackage{polyglossia}
\defaultfontfeatures{Ligatures=TeX}
\setmainlanguage[babelshorthands=true]{russian}
\setmainfont{Georgia}
\newfontfamily\cyrillicfont{Georgia}

\begin{document}

    А"--- Б.

    Ньютон"--~Лейбниц.

\end{document}

enter image description here

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.