From d09461c98baac5e3fe8d106d124b3e019b942120 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 24 Dec 2012 00:12:50 +0000 Subject: exsheets (23dec12) git-svn-id: svn://tug.org/texlive/trunk@28627 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/exsheets/README | 8 +-- .../texmf-dist/doc/latex/exsheets/exsheets_en.pdf | Bin 651906 -> 654042 bytes .../texmf-dist/doc/latex/exsheets/exsheets_en.tex | 55 +++++++++++++++++---- 3 files changed, 49 insertions(+), 14 deletions(-) (limited to 'Master/texmf-dist/doc/latex/exsheets') diff --git a/Master/texmf-dist/doc/latex/exsheets/README b/Master/texmf-dist/doc/latex/exsheets/README index 44746a43b46..6e757340b4d 100644 --- a/Master/texmf-dist/doc/latex/exsheets/README +++ b/Master/texmf-dist/doc/latex/exsheets/README @@ -1,12 +1,12 @@ -------------------------------------------------------------------------- -EXSHEETS v0.6 - 2012/12/18 +EXSHEETS v0.6a - 2012/12/23 bundled packages: the EXSHEETS package Yet another package for the creation of exercise sheets -the TRANSLATIONS package +the TRANSLATIONS package v0.6 a simple translator -the CNTFORMATS package +the CNTFORMATS package v0.4 A different way to read counters. All mentioned packages are described in exsheets_en.pdf @@ -32,7 +32,7 @@ The Current Maintainer of this work is Clemens Niederberger. The exsheets package consists of the files - exsheets.sty, exsheets_headings.def, exsheets_headings.cfg, exsheets_tasks.def, exsheets_tasks.cfg, exsheets_configurations.cfg, - - exsheets_en.tex, exsheets_en.pdf, + - exsheets_en.tex, exsheets_en.pdf, grading-table.tex, - README -------------------------------------------------------------------------- The translations package consists of the files diff --git a/Master/texmf-dist/doc/latex/exsheets/exsheets_en.pdf b/Master/texmf-dist/doc/latex/exsheets/exsheets_en.pdf index ce878434f15..c45db3ede3d 100644 Binary files a/Master/texmf-dist/doc/latex/exsheets/exsheets_en.pdf and b/Master/texmf-dist/doc/latex/exsheets/exsheets_en.pdf differ diff --git a/Master/texmf-dist/doc/latex/exsheets/exsheets_en.tex b/Master/texmf-dist/doc/latex/exsheets/exsheets_en.tex index 9e8d9faf667..25dd1be0929 100644 --- a/Master/texmf-dist/doc/latex/exsheets/exsheets_en.tex +++ b/Master/texmf-dist/doc/latex/exsheets/exsheets_en.tex @@ -62,6 +62,10 @@ } , gobble = 1 } +\makeatletter +\edef\trnsltversion{\@trnslt@version} +\edef\cntfmtsversion{\@cntfmts@version} +\makeatother \cnpkgusecolorscheme{friendly} \usepackage[biblatex]{embrac}[2012/06/29] @@ -104,10 +108,16 @@ % translations: \newcommand*\translations{{\scshape\textcolor{main}{translations}}\xspace} \addcmds{ - cuisine, DeclareLanguage, DeclareLanguageAlias, DeclareTranslation, - GetTranslation, GetTranslationFor, kitchen, LoadDictionary, - LoadDictionaryFor, NewTranslation, ProvideDictionaryFor, - RenewTranslation, SaveTranslation, SaveTranslationFor, selectlanguage + cuisine, + DeclareLanguage, DeclareLanguageAlias, DeclareLanguageDialect, + DeclareTranslation, + GetTranslation, GetTranslationFor, + kitchen, + LoadDictionary, LoadDictionaryFor, + NewTranslation, + ProvideDictionaryFor, + RenewTranslation, + SaveTranslation, SaveTranslationFor, selectlanguage } % cntformats: @@ -227,6 +237,8 @@ \DeclareTranslation{German}{Kueche}{K\"uche} \DeclareTranslation{Spanish}{Kueche}{cocina} \DeclareTranslation{French}{Kueche}{cuisine} +\DeclareTranslation{English}{foo}{foo} +\DeclareTranslation{British}{foo}{bar} \usepackage{alphalph} \makeatletter @@ -1008,11 +1020,11 @@ purpose \ExSheets provides the following commands: is initially set to \code{2}. \Befehl{variant}{}\newline Choose the active variant. The argument must be a number between \code{1} - and the number set with \cmd*{variations}. Initially set to \code{1}. + and the number set with \cmd*{SetVariations}. Initially set to \code{1}. \Befehl{vary}{}\ma{}\newline This command is the one actually used in the document. It has a number of - required arguments equal to the number set with \cmd*{variations}. All of its - arguments are discarded except the one specified with \cmd*{variant}. + required arguments equal to the number set with \cmd*{SetVariations}. All of + its arguments are discarded except the one specified with \cmd*{variant}. \end{beschreibung} \begin{beispiel} @@ -2167,7 +2179,8 @@ will be loaded \cmd*{AtBeginDocument}. \secidx*{Custom Configurations} \secidx*{\ExSheets}[ExSheets] -\part{The \translations package}\label{part:translations}\secidx{\translations}[translations] +\part{The \translations package (\trnsltversion)} +\label{part:translations}\secidx{\translations}[translations] \section{Motivation}\secidx[Motivation]{\translations}[translations] I wrote this package when I was in need for an expandable version of \paket*{translator}'s \cmd{translate}. If you don't need that then there is no @@ -2185,6 +2198,11 @@ These are the commands provided by \translations: Declares \code{} to be an alias of \code{}. If \code{} doesn't exist yet a warning will be raised and it will be defined. This command can only be used in the preamble. + \Befehl{DeclareLanguageDialect}{}\ma{}\newline + Declares \code{} to be a dialect of language \code{}. If a + translation for \code{} is provided it is used by the translation + macros. If there is none the corresponding translation for \code{} is + used instead. \Befehl{NewTranslation}{}\ma{}\ma{}\newline Defines a translation of key \code{} for the language \code{}. An error will be raised if a translation of \code{} already exists. @@ -2197,6 +2215,11 @@ These are the commands provided by \translations: Defines a translation of key \code{} for the language \code{}. No error will be raised if a translation of \code{} already exists. This command can only be used in the preamble. + \Befehl{DeclareTranslationFallback}{}\ma{}\newline + Defines a fallback translation for key \code{} that is used in case no + translation of \code{} for the currently active language has been provided. + No error will be raised if a fallback for \code{} already exists. + This command can only be used in the preamble. \expandable\Befehl{GetTranslationFor}{}\ma{}\newline Fetches and prints the translation of \code{} for the language \code{}. This command is expandable. @@ -2207,7 +2230,7 @@ These are the commands provided by \translations: Fetches and saves the translation of \code{} for the language \code{} in the macro \code{}. \Befehl{SaveTranslation}{}\ma{}\newline - Fetches and saves the translation of \code{} or the currently active + Fetches and saves the translation of \code{} for the currently active language (as for example set by \paket{babel}) in the macro \code{}. \Befehl{LoadDictionary}{}\newline Loads a file named \code{-.trsl} where \code{} corresponds @@ -2238,6 +2261,17 @@ Here is a small example of usage: \cuisine \end{beispiel} +There is also preliminary support for dialects: +\begin{beispiel} + % in the preamble: + % \DeclareTranslation{English}{foo}{foo} + % \DeclareTranslation{British}{foo}{bar} + \GetTranslationFor{English}{foo} \\ + \GetTranslationFor{British}{foo} \\ + \GetTranslationFor{American}{foo} +\end{beispiel} + + A typical dictionary file should look as follows: \begin{beispiel}[code only] % this is file housing-german.trsl @@ -2251,7 +2285,8 @@ A typical dictionary file should look as follows: \end{beispiel} \secidx*{\translations}[translations] -\part{The \cntformats package}\label{part:cntformats}\secidx{\cntformats}[cntformats] +\part{The \cntformats package (\cntfmtsversion)} +\label{part:cntformats}\secidx{\cntformats}[cntformats] \section{Motivation}\secidx[Motivation]{\cntformats}[cntformats] \cntformats provides a way to format counters with what I will call patterns. This does not in any way effect the usual \LaTeXe\ way of treating counters and -- cgit v1.2.3