summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/serbianpart/SerbianPart.tex
blob: 201a4f2c11a20a7c815e59329f572537ddb40f65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62

\documentclass[a4paper,12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{lmodern}
\usepackage{verbatim}
\usepackage{soul}
\usepackage{xspace}

\title{The \textsf{serbianpart} package}
\author{Zoran T. Filipovi\'{c}\protect\footnote{My email is zoran.filipovic@yahoo.com} \\ 
        Jurija Gagarina 263/6 \\ 
        11070 New Belgrade, Serbia \\}
        %\textsf{zoran.filipovic@yahoo.com}}

\usepackage[serbian,english]{babel}
\usepackage{serbianpart}

\begin{document}
\frenchspacing
\maketitle

\begin{abstract}
In this document I try to explain how to produce a number of the part in letters,
in serbian language in latin scripts.
\end{abstract}

\section{Introduction}

If you defines serbian language (latin scripts) in babel package, and type 
\verb|\part{}| that produce something like that: \textbf{Deo I}. In many book 
in serbian language, and for many publisher we must produce something like that: 
\textbf{Deo Prvi}, \textbf{Deo Drugi}, \textbf{Deo Tre\'{c}i}, \ldots like 
\textbf{First Part}, \textbf{Second Part} \ldots 

In this meaning, I type, in preambula: 

\begin{verbatim}
\renewcommand*{\thepart}{\ifcase\value{part}\or Prvi\or Drugi\or 
 Tre\'{c}i\or \v{C}evrti\or Peti\or \v{S}esti\or Sedmi\or Osmi\or
 Deveti\or Deseti\or Jedanaesti\or Dvanaesti\or Trinaesti\or
 \v{C}etrnaesti\or Petnaesti\or \v{S}esnaesti\or Sedamnaesti\or
 Osamnaesti\or Devetnaesti\or Dvadeseti
\fi\space}
\end{verbatim}

which in \LaTeX\ class (article, report and book) \textit{\&} \verb|memoir| class 
produce \textbf{Deo Prvi}, \textbf{Deo Drugi}, \textbf{Deo Tre\'{c}i} \ldots to the 
twenty part. 

This line you must typing just \textit{after} a \verb|\usepackage[serbian]{babel}|

\section{The package}

However, if you prefer a packages, you just put a \verb|\usepackage{serbianpart}| just 
after line \verb|\usepackage[serbian]{babel}| seat on you chear and turn you machine 
to going. After a few seconds you machine produce samething like that:

\selectlanguage{serbian}
\part{The serbianpart package}

\end{document}