diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/numspell/numspell.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/numspell/numspell.tex | 57 |
1 files changed, 40 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/latex/numspell/numspell.tex b/Master/texmf-dist/doc/latex/numspell/numspell.tex index 6c8467b8213..5c8186fe483 100644 --- a/Master/texmf-dist/doc/latex/numspell/numspell.tex +++ b/Master/texmf-dist/doc/latex/numspell/numspell.tex @@ -21,7 +21,7 @@ \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{numspell} -\usepackage[magyar,ngerman,french,english]{babel} +\usepackage[magyar,italian,ngerman,french,english]{babel} \usepackage{listings,xcolor,amsmath,upquote} \usepackage[group-separator={,}]{siunitx} \flushbottom @@ -52,7 +52,7 @@ keepspaces]} \begin{document} -\title{The {\bfseries\sffamily numspell} package\\{\large v1.1 (2017/09/20)}} +\title{The {\bfseries\sffamily numspell} package\\{\large v1.2 (2017/09/30)}} \author{Tibor Tómács\\{\normalsize\url{tomacs.tibor@uni-eszterhazy.hu}}} \date{} \maketitle @@ -60,7 +60,7 @@ keepspaces]} \section{Introduction} The aim of the \texttt{numspell} package is to spell the cardinal and ordinal numbers from 0 to $10^{67}-1$ (i.e.~maximum 66 digits). -Currently, the supported languages are English, German, French and Hungarian. +Currently, the supported languages are English, French, German, Hungarian and Italian. The spelling will happen in the current language. The \texttt{numspell} package requires the services of the following packages: \texttt{xstring}, \texttt{etoolbox}, \texttt{pdftexcmds}. @@ -388,13 +388,28 @@ For example \thenumspellMyNum} \end{description} +\section{Commands for Italian language} +The following commands only work, if \texttt{italian} language is active. +\begin{description} +\selectlanguage{italian} +\item\commandinline|\numspellitmasculine| (default)\\ +The ordinal numbers will be printed in masculine form. For example\\ +\verb|\ordnumspell{1}| $\to$ \ordnumspell{1} + +\item\commandinline|\numspellitfeminine|\\ +The ordinal numbers will be printed in feminine form. For example\\ +\verb|\numspellitfeminine\ordnumspell{1};|\\ +\verb|\numspellitmasculine\ordnumspell{1}|\\[2mm] +{\numspellitfeminine\ordnumspell{1}}; {\numspellitmasculine\ordnumspell{1}} +\end{description} + \section{Examples} \subsection*{Example \stepcounter{subsection}\arabic{subsection}} \begin{examplelst} \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} -\usepackage[magyar,ngerman,french,english]{babel} +\usepackage[magyar,italian,ngerman,french,english]{babel} \usepackage{numspell} \usepackage[group-separator={,}]{siunitx} \begin{document} @@ -402,49 +417,57 @@ For example \def\mynum{123456789} \noindent -In British English the spelling of \num{\mynum} is -\emph{``\numspell{\mynum}''}. - -\smallskip\noindent In American English the spelling of \num{\mynum} is {\numspellUS\emph{``\numspell{\mynum}''}}. \smallskip\noindent -In German the spelling of \num{\mynum} is -{\selectlanguage{ngerman}\emph{``\numspell{\mynum}''}}. +In British English the spelling of \num{\mynum} is +\emph{``\numspell{\mynum}''}. \smallskip\noindent In French the spelling of \num{\mynum} is {\selectlanguage{french}\emph{``\numspell{\mynum}''}}. \smallskip\noindent +In German the spelling of \num{\mynum} is +{\selectlanguage{ngerman}\emph{``\numspell{\mynum}''}}. + +\smallskip\noindent In Hungarian the spelling of \num{\mynum} is {\selectlanguage{magyar}\emph{`'\numspell{\mynum}''}}. +\smallskip\noindent +In Italian the spelling of \num{\mynum} is +{\selectlanguage{italian}\emph{``\numspell{\mynum}''}}. + \end{document} \end{examplelst} \def\mynum{123456789} \noindent -In British English the spelling of \num{\mynum} is \emph{``\numspell{\mynum}''}. - -\smallskip\noindent In American English the spelling of \num{\mynum} is {\numspellUS\emph{``\numspell{\mynum}''}}. \smallskip\noindent -In German the spelling of \num{\mynum} is -{\selectlanguage{ngerman}\emph{``\numspell{\mynum}''}}. +In British English the spelling of \num{\mynum} is \emph{``\numspell{\mynum}''}. \smallskip\noindent In French the spelling of \num{\mynum} is {\selectlanguage{french}\emph{``\numspell{\mynum}''}}. \smallskip\noindent +In German the spelling of \num{\mynum} is +{\selectlanguage{ngerman}\emph{``\numspell{\mynum}''}}. + +\smallskip\noindent In Hungarian the spelling of \num{\mynum} is {\selectlanguage{magyar}\emph{`'\numspell{\mynum}''}}. +\smallskip\noindent +In Italian the spelling of \num{\mynum} is +{\selectlanguage{italian}\emph{``\numspell{\mynum}''}}. + \bigskip \subsection*{Example \stepcounter{subsection}\arabic{subsection}} \begin{examplelst} @@ -472,7 +495,7 @@ In Hungarian the spelling of \num{\mynum} is \begin{document} The -\@whilenum\value{mycount}<31 +\@whilenum\value{mycount}<51 \do{\ordnumspell{\themycount}\stepcounter{mycount},\ }\dots \end{document} @@ -481,7 +504,7 @@ The \makeatletter \newcounter{mycount} The -\@whilenum\value{mycount}<31 +\@whilenum\value{mycount}<51 \do{\ordnumspell{\themycount}\stepcounter{mycount},\ }\dots \makeatother |