I'm trying to highlight a text written in Russian using soulutf8 package. In the PDF file, rendered with XeLaTeX, instead of highlighted Russian letters, I've got nothing. With English symbols, it works as expected.


\documentclass[a4paper, 11pt]{article}

\usepackage[main=russian, english]{babel}

\setromanfont{PT Sans}



Текст на русском для проверки кириллицы.

\hl{Выделенный русский тест}

\hl{Highlighted English text}

The result I get:

enter image description here

  • 1
    you do not want legacy 8-bit encodings such as T2A with xetex, \usepackage[T2A]{fontenc} just use fontspec and Unicode encodings – David Carlisle Dec 1 '18 at 18:14
  • You shouldn't be using soulutf8 with XeLaTeX. On the other hand, soul seems not to be able to deal with Cyrillic characters. – egreg Dec 1 '18 at 21:34

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.