summaryrefslogtreecommitdiff
path: root/macros/xetex/latex/xecyr/doc/listings-utf8-ex.tex
blob: 6c0937af8bd94cb7a44b981f4b512e19c2dad170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
\documentclass[a4paper,10pt]{article}
\usepackage{fontspec}

\setromanfont{Times New Roman}

\usepackage{listings}
\lstset{%
language=[AlLaTeX]TEX,%
extendedchars=true,%
}

\begin{document}

\begin{lstlisting}
Корова пошла гулять.
\end{lstlisting}

\end{document}