All Downloads are FREE. Search and download functionalities are using the official Maven repository.

build.test.functional.expected.cyrillic.tex Maven / Gradle / Ivy

There is a newer version: 2.4
Show newest version
\documentclass[a4paper,russian]{article}
% generated by Docutils 
\usepackage{fixltx2e} % LaTeX patches, \textsubscript
\usepackage{cmap} % fix search and cut-and-paste in Acrobat
\usepackage{ifthen}
\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}

%%% Custom LaTeX preamble
% PDF Standard Fonts
\usepackage{mathptmx} % Times
\usepackage[scaled=.90]{helvet}
\usepackage{courier}

%%% User specified packages and stylesheets
\usepackage{cmlgc}

%%% Fallback definitions for Docutils-specific commands

% titlereference role
\providecommand*{\DUroletitlereference}[1]{\textsl{#1}}

% hyperlinks:
\ifthenelse{\isundefined{\hypersetup}}{
  \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue,unicode=true]{hyperref}
  \urlstyle{same} % normal text font (alternatives: tt, rm, sf)
}{}


%%% Body
\begin{document}


%___________________________________________________________________________

\section*{\phantomsection%
  Заголовок%
  \addcontentsline{toc}{section}{Заголовок}%
  \label{id1}%
}

первый пример: \glqq{}Здравствуй, мир!\grqq{}


%___________________________________________________________________________

\section*{\phantomsection%
  Title%
  \addcontentsline{toc}{section}{Title}%
  \label{title}%
}

\otherlanguage{english}{first example: \glqq{}Hello world\grqq{}.}


%___________________________________________________________________________

\section*{\phantomsection%
  Notes%
  \addcontentsline{toc}{section}{Notes}%
  \label{notes}%
}

This example tests rendering of Latin and Cyrillic characters by the LaTeX
and XeTeX writers. Check the compiled PDF for garbage characters in text and
bookmarks.

To work around a problem with Cyrillic in PDF-bookmarks in \DUroletitlereference{hyperref}
versions older than v6.79g 2009/11/20, the test caller \texttt{latex\_cyrillic.py}
sets \texttt{hyperref\_options} to \texttt{'unicode=true'} while \texttt{xetex\_cyrillic.py}
sets it to \texttt{'unicode=false'}. The recommended option for current
(2011-08-24) hyperref versions is \texttt{'pdfencoding=auto'}.

\end{document}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy