summaryrefslogtreecommitdiff
path: root/macros/xetex/latex/xecyr/doc/listings-utf8-ex.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/xetex/latex/xecyr/doc/listings-utf8-ex.tex')
-rw-r--r--macros/xetex/latex/xecyr/doc/listings-utf8-ex.tex18
1 files changed, 18 insertions, 0 deletions
diff --git a/macros/xetex/latex/xecyr/doc/listings-utf8-ex.tex b/macros/xetex/latex/xecyr/doc/listings-utf8-ex.tex
new file mode 100644
index 0000000000..6c0937af8b
--- /dev/null
+++ b/macros/xetex/latex/xecyr/doc/listings-utf8-ex.tex
@@ -0,0 +1,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}