diff options
Diffstat (limited to 'Master/texmf/doc/texlive/texlive-sr/texlive-sr.sty')
-rw-r--r-- | Master/texmf/doc/texlive/texlive-sr/texlive-sr.sty | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/Master/texmf/doc/texlive/texlive-sr/texlive-sr.sty b/Master/texmf/doc/texlive/texlive-sr/texlive-sr.sty new file mode 100644 index 00000000000..fa60ef7c860 --- /dev/null +++ b/Master/texmf/doc/texlive/texlive-sr/texlive-sr.sty @@ -0,0 +1,61 @@ +\def\Status{1} + +% Settings specific for Serbian translation and its XeLaTeX code +% --------------------------------------------------------------------- + +% Extra packages needed for XeLaTeX +\RequirePackage{polyglossia} +% Import the original tex-live.sty from texlive-en; this must be done +% after fontspec (fontspec is loaded by polyglossia). xltxtra loads +% xunicode: +\RequirePackage{tex-live} +\RequirePackage{xltxtra} +% ... and: +\RequirePackage[center,it,small]{caption} +\RequirePackage{relsize} + +% Load the default and all other languages. +% For the sake of simplicity, we enclose non-Serbian text in +% appropriate \textLL{} only if we need different hyphenation. +\setdefaultlanguage[script=cyrillic]{serbian} +\setotherlanguage{english} +\setotherlanguage{german} +\setotherlanguage{french} +\setotherlanguage{italian} +\setotherlanguage{polish} +\setotherlanguage{czech} +\setotherlanguage{slovak} +\setotherlanguage{dutch} +\setotherlanguage{finnish} + +% OTF fonts that we use; cf. README-SR.txt. +% (We use only tex-text for the sake of simplicity.) +\setmainfont[RawFeature={+ss11,+ss12},Mapping=tex-text]{Old Standard} +\newfontfamily\serbianfont[RawFeature={+ss11,+ss12},% + Mapping=tex-text]{Old Standard} +% We do not want ligatures in filenames, directories, commands, etc. +\setsansfont[Ligatures=NoCommon]{CMU Sans Serif} +\setmonofont[Ligatures=NoCommon]{CMU Typewriter Text Light} + +% A bit more tuning: +% "Windows" is a very frequent word so let's get it properly +% hyphenated. The same for Kpathsea: +\newcommand{\Windows}{\textenglish{Windows}} +\def\KPS{\textenglish{Kpathsea}} +% We need different quotes for Serbian. +\renewcommand{\samp}[1]{\char"201E\texttt{#1}\char"201C{}} +% There is no slanted Old Standard, so use XeTeX's fake slant feature. +\newfontfamily\slantfont[FakeSlant=.2]{Old Standard} +\newfontfamily\cmutt{CMU Typewriter Text} +\renewcommand{\var}[1]{{\slantfont#1}} +\renewcommand{\textsl}[1]{{\slantfont#1}} +\def\Ucom#1{{\cmutt\bfseries#1}} +\renewcommand{\BibTeX}{B{\smaller IB}\TeX{}} + +% Finally: +\widowpenalty=4000 +\clubpenalty=4000 +\frenchspacing +\flushbottom + +\endinput |