Skip to content

Instantly share code, notes, and snippets.

@ScumCoder
Created June 28, 2016 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ScumCoder/03cba04492e73ac544155dc03bf991de to your computer and use it in GitHub Desktop.
Save ScumCoder/03cba04492e73ac544155dc03bf991de to your computer and use it in GitHub Desktop.
minted problem with Unicode
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[english,main=russian]{babel}
\usepackage{minted}
\begin{document}
\newminted{cpp}{
breaklines,
breakanywhere
}
\begin{cppcode}
int main(void)
{
// Привет
// longlinewithnospaceslonglinewithnospaceslonglinewithnospaceslonglinewithnospaceslonglinewithnospaceslonglinewithnospaceslonglinewithnospaceslonglinewithnospaceslonglinewithnospaceslonglinewithnospaces
}
\end{cppcode}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment