summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/exsheets
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-12-24 00:12:50 +0000
committerKarl Berry <karl@freefriends.org>2012-12-24 00:12:50 +0000
commitd09461c98baac5e3fe8d106d124b3e019b942120 (patch)
treee8f76567afc64dd09b927e024622591bd1ab8239 /Master/texmf-dist/doc/latex/exsheets
parent375e97afcbbf8e590636347387a3f5060b442f22 (diff)
exsheets (23dec12)
git-svn-id: svn://tug.org/texlive/trunk@28627 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/exsheets')
-rw-r--r--Master/texmf-dist/doc/latex/exsheets/README8
-rw-r--r--Master/texmf-dist/doc/latex/exsheets/exsheets_en.pdfbin651906 -> 654042 bytes
-rw-r--r--Master/texmf-dist/doc/latex/exsheets/exsheets_en.tex55
3 files changed, 49 insertions, 14 deletions
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
--- a/Master/texmf-dist/doc/latex/exsheets/exsheets_en.pdf
+++ b/Master/texmf-dist/doc/latex/exsheets/exsheets_en.pdf
Binary files 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}{<num>}\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}{<variant 1>}\ma{<variant 2>}\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{<lang2>} to be an alias of \code{<lang1>}. If \code{<lang1>}
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}{<dialect>}\ma{<lang>}\newline
+ Declares \code{<dialect>} to be a dialect of language \code{<lang>}. If a
+ translation for \code{<dialect>} is provided it is used by the translation
+ macros. If there is none the corresponding translation for \code{<lang>} is
+ used instead.
\Befehl{NewTranslation}{<lang>}\ma{<key>}\ma{<translation>}\newline
Defines a translation of key \code{<key>} for the language \code{<lang>}.
An error will be raised if a translation of \code{<key>} already exists.
@@ -2197,6 +2215,11 @@ These are the commands provided by \translations:
Defines a translation of key \code{<key>} for the language \code{<lang>}.
No error will be raised if a translation of \code{<key>} already exists.
This command can only be used in the preamble.
+ \Befehl{DeclareTranslationFallback}{<key>}\ma{<fallback>}\newline
+ Defines a fallback translation for key \code{<key>} that is used in case no
+ translation of \code{<key>} for the currently active language has been provided.
+ No error will be raised if a fallback for \code{<key>} already exists.
+ This command can only be used in the preamble.
\expandable\Befehl{GetTranslationFor}{<lang>}\ma{<key>}\newline
Fetches and prints the translation of \code{<key>} for the language \code{<lang>}.
This command is expandable.
@@ -2207,7 +2230,7 @@ These are the commands provided by \translations:
Fetches and saves the translation of \code{<key>} for the language \code{<lang>}
in the macro \code{<cmd>}.
\Befehl{SaveTranslation}{<cmd>}\ma{<key>}\newline
- Fetches and saves the translation of \code{<key>} or the currently active
+ Fetches and saves the translation of \code{<key>} for the currently active
language (as for example set by \paket{babel}) in the macro \code{<cmd>}.
\Befehl{LoadDictionary}{<name>}\newline
Loads a file named \code{<name>-<lang>.trsl} where \code{<lang>} 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