summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/srbook-mem
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/srbook-mem
Initial commit
Diffstat (limited to 'macros/latex/contrib/srbook-mem')
-rw-r--r--macros/latex/contrib/srbook-mem/README30
-rw-r--r--macros/latex/contrib/srbook-mem/SerbianBookMem.pdfbin0 -> 213835 bytes
-rw-r--r--macros/latex/contrib/srbook-mem/SerbianBookMem.tex118
-rw-r--r--macros/latex/contrib/srbook-mem/Test.pdfbin0 -> 27055 bytes
-rw-r--r--macros/latex/contrib/srbook-mem/Test.tex35
-rw-r--r--macros/latex/contrib/srbook-mem/TestLight.pdfbin0 -> 46904 bytes
-rw-r--r--macros/latex/contrib/srbook-mem/TestLight.tex36
-rw-r--r--macros/latex/contrib/srbook-mem/srbook-mem.sty77
8 files changed, 296 insertions, 0 deletions
diff --git a/macros/latex/contrib/srbook-mem/README b/macros/latex/contrib/srbook-mem/README
new file mode 100644
index 0000000000..99c51d1639
--- /dev/null
+++ b/macros/latex/contrib/srbook-mem/README
@@ -0,0 +1,30 @@
+
+ README
+
+This package provide a number of the book, part and chapter in letters, in
+serbian language in latin scripts, for memoir class.
+
+Produce Knjiga Prva like First Book, Deo Prvi like First Part and
+Glava Prva like Chapter first.
+
+There is options [light] which very nice and smooth.
+
+memoir class is such to many predefines chapterstyle, so you may choose
+just a package (\usepackage{srbook-mem}) i find the output is very nice for the
+following chapterstyle:
+
+default:companion:chappell:ell:ger:ntglike:thatcher
+
+The second options is [wilson] (\usepackage[wilson]{srbook-mem}), which produce
+Jedan, Dva, \dots{} like One, Two \dots{} i find the output is very nice for the
+following chapterstyle:
+
+wilsondob:komalike:crosshead:section:article:tandh:section
+
+Licence: under GNU GPL
+
+Zoran T. Filipovic
+Jurija Gagarina 263/6
+11070 Novi Beograd
+Srbija
+zoran dot filipovic at yahoo dot com
diff --git a/macros/latex/contrib/srbook-mem/SerbianBookMem.pdf b/macros/latex/contrib/srbook-mem/SerbianBookMem.pdf
new file mode 100644
index 0000000000..19284ce60f
--- /dev/null
+++ b/macros/latex/contrib/srbook-mem/SerbianBookMem.pdf
Binary files differ
diff --git a/macros/latex/contrib/srbook-mem/SerbianBookMem.tex b/macros/latex/contrib/srbook-mem/SerbianBookMem.tex
new file mode 100644
index 0000000000..8b2680aa3d
--- /dev/null
+++ b/macros/latex/contrib/srbook-mem/SerbianBookMem.tex
@@ -0,0 +1,118 @@
+
+\documentclass[a4paper,12pt]{memoir}
+\usepackage[T1]{fontenc}
+\usepackage[latin1]{inputenc}
+\usepackage{lmodern}
+\usepackage{verbatim}
+\usepackage{soul}
+\usepackage{xspace}
+
+\title{The \textsf{srbook-mem} package}
+\author{Zoran T. Filipovi\'{c} \\
+ Jurija Gagarina 263/6 \\
+ 11070 New Belgrade, Serbia}
+
+\usepackage[serbian,english]{babel}
+\usepackage[wilson]{srbook-mem}
+
+%%% NICE WIDHTOUT WILSONDOB OPTIONS IN SRBOOK-MEM (NO LIGHT)
+%%% \usepackage{srbook-mem}
+
+%\chapterstyle{default}
+%\chapterstyle{companion}
+%\chapterstyle{chappell}
+%\chapterstyle{ell}
+%\chapterstyle{ger}
+%\chapterstyle{ntglike}
+%\chapterstyle{thatcher}
+
+%%% NICE WIDTH WILSONDOB OPTIONS IN SRBOOK-MEM (NO LIGHT)
+%%% \usepackage[wilsondob]{srbook-mem}
+
+\chapterstyle{wilsondob}
+%\chapterstyle{komalike}
+%\chapterstyle{crosshead}
+%\chapterstyle{section}
+%\chapterstyle{article}
+%\chapterstyle{tandh}
+%\chapterstyle{section}
+
+\begin{document}
+\frenchspacing
+\maketitle
+
+\begin{abstract}
+In this document I try to explain how to produce a number of the book, part and chapter in
+letters for serbian language in latin scripts. This package working very nice under \verb|memoir|
+documentclass.
+\end{abstract}
+
+\section*{Introduction}
+
+If you defines serbian language (latin scripts) in babel package, and type
+\verb|\book{},\part{},\chapter{}| that produce, in \verb|memoir| class, something like that: \textbf{Book I}, \textbf{Deo I} and \textbf{Glava I}. In many book in serbian language, and for many publisher we must produce something like that:
+\textbf{Knjiga Prva} like \textbf{First Book}, \textbf{Deo Prvi} like \textbf{First Part}
+and \textbf{Glava Prva} like \textbf{Chapter First}.
+
+In this meaning, I produce this package which working with \verb|memoir| documentclass.
+
+\section*{The package}
+
+If you want use this packages, you just put couple line like:
+
+\begin{verbatim}
+\documentclass[a4paper,12pt]{memoir}
+\usepackage[T1]{fontenc}
+\usepackage[latin1]{inputenc}
+\usepackage[serbian]{babel}
+\usepackage{srbook-mem}
+\begin{document}
+your text
+\end{document}
+\end{verbatim}
+
+and that is produce \verb|\book| to the ten numbers (in letters), \verb|\part| to
+the twenty numbers (in letters) and \verb|\chapter| to the fourty numbers (in letters).
+
+Package provide a options which I call \verb|light| which produce Knjiga Prva, Deo Prvi,
+Glava Prva, width \verb|normalfont|. The default font is bold. I find that is options
+\verb|light| is very nice and smooth. However, because is \verb|memoir| class is such
+to many predefines chapterstyle, you may choose just a package, typing
+\verb|\usepackage{srbook-mem}|, width no \verb|light| options. I find that the output is very nice for the following chapterstyle:
+\begin{center}
+\verb|default:companion:chappell:ell:ger:ntglike:thatcher|
+\end{center}
+
+That is produce number in letter in chapter for serbian language in latin script.
+
+The second options is to typing \verb|\usepackage[wilson]{srbook-mem}|, which produce
+Jedan, Dva, \dots{} like One, Two \dots{} I find that the output is very nice for the
+following chapterstyle:
+\begin{center}
+\verb|wilsondob:komalike:crosshead:section:article:tandh:section|
+\end{center}
+
+So, if you want to use this options you must
+typing, in preambula, line \verb|\usepackage[wilson]{srbook-mem}| push you machine
+to going, and the output is:
+
+\selectlanguage{serbian}
+
+\book{Ovo je prva knjiga}
+
+\part{Ovo je prvi deo}
+\selectlanguage{serbian}
+\chapter{Ovo je prva glava}
+
+However, you just see the \verb|Test.pdf| and \verb|TestLight.pdf| and---for
+my \TeX friend---evrything will be clear.
+
+\chapter{Ovo je druga glava}
+
+Or you just see this \verb|SerbianBookMem.tex| files, and \dots
+
+\chapter{Ovo je tre\'{c}a glava}
+
+Happy \TeX ing! In serbian language, of course!
+
+\end{document} \ No newline at end of file
diff --git a/macros/latex/contrib/srbook-mem/Test.pdf b/macros/latex/contrib/srbook-mem/Test.pdf
new file mode 100644
index 0000000000..dfa96d939c
--- /dev/null
+++ b/macros/latex/contrib/srbook-mem/Test.pdf
Binary files differ
diff --git a/macros/latex/contrib/srbook-mem/Test.tex b/macros/latex/contrib/srbook-mem/Test.tex
new file mode 100644
index 0000000000..278aebff7a
--- /dev/null
+++ b/macros/latex/contrib/srbook-mem/Test.tex
@@ -0,0 +1,35 @@
+
+\documentclass[a4paper,openany,twoside,12pt]{memoir}
+\usepackage[T1]{fontenc}
+\usepackage[cp1250]{inputenc}
+\usepackage{textcomp}
+
+\usepackage[serbian]{babel}
+\usepackage{srbook-mem}
+
+\stockaiv \pageaiv
+\textwidth = 15cm \textheight = 23cm
+\setlrmargins{2.5cm}{*}{*} \setulmargins{2.5cm}{*}{*}
+
+\checkandfixthelayout[lines]
+ \checkthelayout[fixed] \fixthelayout
+\baselineskip\onelineskip
+
+\begin{document}
+\selectlanguage{serbian}
+
+\book{Ovo je naslov prve knjige}
+
+\part{Ovo je naslov prvog dela}
+
+\chapter{Ovo je naslov prve glave}
+
+tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst
+tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst
+tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst
+tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst
+tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst
+tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst
+
+\chapter{Ovo je naslov druge glave}
+\end{document}
diff --git a/macros/latex/contrib/srbook-mem/TestLight.pdf b/macros/latex/contrib/srbook-mem/TestLight.pdf
new file mode 100644
index 0000000000..c867c1a37e
--- /dev/null
+++ b/macros/latex/contrib/srbook-mem/TestLight.pdf
Binary files differ
diff --git a/macros/latex/contrib/srbook-mem/TestLight.tex b/macros/latex/contrib/srbook-mem/TestLight.tex
new file mode 100644
index 0000000000..21d2ca76d3
--- /dev/null
+++ b/macros/latex/contrib/srbook-mem/TestLight.tex
@@ -0,0 +1,36 @@
+
+\documentclass[a4paper,openany,twoside,12pt]{memoir}
+\usepackage[T1]{fontenc}
+\usepackage[cp1250]{inputenc}
+\usepackage{textcomp}
+
+\usepackage[serbian]{babel}
+\usepackage[light]{srbook-mem}
+
+\stockaiv \pageaiv
+\textwidth = 15cm \textheight = 23cm
+\setlrmargins{2.5cm}{*}{*} \setulmargins{2.5cm}{*}{*}
+
+\checkandfixthelayout[lines]
+ \checkthelayout[fixed] \fixthelayout
+\baselineskip\onelineskip
+
+\begin{document}
+\selectlanguage{serbian}
+
+\book{Ovo je naslov prve knjige}
+
+\part{Ovo je naslov prvog dela}
+
+\chapter{Ovo je naslov prve glave}
+
+tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst
+tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst
+tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst
+tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst
+tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst
+tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst tekst
+
+\chapter{Ovo je naslov druge glave}
+
+\end{document}
diff --git a/macros/latex/contrib/srbook-mem/srbook-mem.sty b/macros/latex/contrib/srbook-mem/srbook-mem.sty
new file mode 100644
index 0000000000..81e805bd12
--- /dev/null
+++ b/macros/latex/contrib/srbook-mem/srbook-mem.sty
@@ -0,0 +1,77 @@
+
+\ProvidesPackage{srbook-mem}
+
+\def\bookname{Knjiga}
+\renewcommand*{\thebook}{\ifcase\value{book}\or Prva\or Druga\or
+ Tre\'{c}a\or \v{C}evrta\or Peta\or \v{S}esta\or Sedma\or Osma\or
+ Deveta\or Deseta
+\fi\space}
+
+\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}
+
+\renewcommand*{\thechapter}{\ifcase\value{chapter}\or Prva\or Druga\or
+ Tre\'{c}a\or \v{C}evrta\or Peta\or \v{S}esta\or Sedma\or Osma\or
+ Deveta\or Deseta\or Jedanaesta\or Dvanaesta\or Trinaesta\or
+ \v{C}etrnaesta\or Petnaesta\or \v{S}esnaesta\or Sedamnaesta\or
+ Osamnaesta\or Devetnaesta\or Dvadeseta\or Dvadesetprva\or
+ Dvadesetdruga\or Dvadesettre\'{c}a\or Dvadeset\v{c}etvrta\or
+ Dvadesetpeta\or Dvadeset\v{s}esta\or Dvadesetsedma\or Dvadesetosma\or
+ Dvadesetdeveta\or Trideseta\or Tridesetprva\or Tridesetdruga\or
+ Tridesettre\'{c}a\or Trideset\v{c}etvrta\or Tridesetpeta\or
+ Trideset\v{s}esta\or Tridesetsedma\or Tridesetosma\or
+ Tridesetdeveta\or \v{C}etrdeseta
+\fi\space}
+
+\DeclareOption{wilson}{
+\renewcommand*{\thechapter}{\ifcase\value{chapter}\or Jedan\\\or Dva\\\or
+ Tri\\\or \v{C}etiri\\\or Pet\\\or \v{S}est\\\or Sedam\\\or Osam\\\or
+ Devet\\\or Deset\\\or Jedanaest\\\or Dvanaest\\\or Trinaest\\\or
+ \v{C}etrnaest\\\or Petnaest\\\or \v{S}esnaest\\\or Sedamnaest\\\or
+ Osamnaest\\\or Devetnaest\\\or Dvadeset\\\or Dvadesetjedan\\\or
+ Dvadesetdva\\\or Dvadesettri\\\or Dvadeset\v{c}etiri\\\or
+ Dvadesetpet\\\or Dvadeset\v{s}est\\\or Dvadesetsedam\\\or Dvadesetosam\\\or
+ Dvadesetdevet\\\or Trideset\\\or Tridesetjedan\\\or Tridesetdva\\\or
+ Tridesettri\\\or Trideset\v{c}etiri\\\or Tridesetpet\\\or
+ Trideset\v{s}est\\\or Tridesetsedam\\\or Tridesetosam\\\or
+ Tridesetdevet\\\or \v{C}etrdeset
+\fi\space}
+}
+%\ProcessOptions\relax
+\DeclareOption{light}{\renewcommand*{\booknamefont}{\normalfont\huge}
+\renewcommand*{\thebook}{\normalfont \ifcase\value{book}\or Prva\or
+ Druga\or Tre\'{c}a\or \v{C}evrta\or Peta\or \v{S}esta\or Sedma\or
+ Osma\or Deveta\or Deseta
+\fi\space}
+}
+%\ProcessOptions\relax
+\DeclareOption{light}{\renewcommand*{\partnamefont}{\normalfont\huge}
+\renewcommand{\thepart}{\normalfont \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}
+}
+%\ProcessOptions\relax
+\DeclareOption{light}{\renewcommand*{\chapnamefont}{\normalfont\Large}
+\renewcommand{\thechapter}{\normalfont\LARGE \ifcase\value{chapter}\or Prva\or Druga\or
+ Tre\'{c}a\or \v{C}evrta\or Peta\or \v{S}esta\or Sedma\or Osma\or
+ Deveta\or Deseta\or Jedanaesta\or Dvanaesta\or Trinaesta\or
+ \v{C}etrnaesta\or Petnaesta\or \v{S}esnaesta\or Sedamnaesta\or
+ Osamnaesta\or Devetnaesta\or Dvadeseta\or Dvadesetprva\or
+ Dvadesetdruga\or Dvadesettre\'{c}a\or Dvadeset\v{c}etvrta\or
+ Dvadesetpeta\or Dvadeset\v{s}esta\or Dvadesetsedma\or Dvadesetosma\or
+ Dvadesetdeveta\or Trideseta\or Tridesetprva\or Tridesetdruga\or
+ Tridesettre\'{c}a\or Trideset\v{c}etvrta\or Tridesetpeta\or
+ Trideset\v{s}esta\or Tridesetsedma\or Tridesetosma\or
+ Tridesetdeveta\or \v{C}etrdeseta
+\fi\space}
+}
+\ProcessOptions\relax
+
+