texlive[48423] Master/texmf-dist: worksheet (17aug18)

commits+karl at tug.org commits+karl at tug.org
Sat Aug 18 00:07:26 CEST 2018


Revision: 48423
          http://tug.org/svn/texlive?view=revision&revision=48423
Author:   karl
Date:     2018-08-18 00:07:25 +0200 (Sat, 18 Aug 2018)
Log Message:
-----------
worksheet (17aug18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/worksheet/README.md
    trunk/Master/texmf-dist/doc/latex/worksheet/worksheet.pdf
    trunk/Master/texmf-dist/doc/latex/worksheet/worksheet.tex
    trunk/Master/texmf-dist/tex/latex/worksheet/worksheet.sty

Modified: trunk/Master/texmf-dist/doc/latex/worksheet/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/worksheet/README.md	2018-08-17 22:07:14 UTC (rev 48422)
+++ trunk/Master/texmf-dist/doc/latex/worksheet/README.md	2018-08-17 22:07:25 UTC (rev 48423)
@@ -1,9 +1,9 @@
-This package provides functions and an environment for easy worksheet creation:
+This package provides macros and an environment for easy worksheet creation:
 	use the exercise environment for formating exercises in a simple, efficient design;
-	make custom, automatically numbered worksheet titles likewise \LaTeX\ title functions;
+	make custom, automatically numbered worksheet titles in the same way as the \LaTeX\ title macros;
 	provide course and author information with a scrlayer-scrpage based automated header;
-	conforming to different Babel Languages (At this time only English and German are supported.).
+	conforming to different Babel languages (At this time only English, French and German are supported.).
 
-This package is guaranteed to work with pdflatex and xelatex, only depending on scrlayer-scrpage. It is recommended to use xelatex including fontspec package and setting sans font to "Helvetica Neue" or "Raleway".
+This package is guaranteed to work with pdflatex and xelatex, only depending on scrlayer-scrpage and Babel. It is recommended to use xelatex including fontspec package and setting sans font to "Helvetica Neue" or "Raleway".
 
 Package worksheet by Benjamin Zöllner (c)2018. This work may be distributed and/or modified under the conditions of the LaTeX Project Public License (latest version).

Modified: trunk/Master/texmf-dist/doc/latex/worksheet/worksheet.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/worksheet/worksheet.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/worksheet/worksheet.tex	2018-08-17 22:07:14 UTC (rev 48422)
+++ trunk/Master/texmf-dist/doc/latex/worksheet/worksheet.tex	2018-08-17 22:07:25 UTC (rev 48423)
@@ -291,32 +291,36 @@
 \subsubsection*{2. Example}
 Changing the directory path of "lv.tex" ("lv.tex" does exist in "./MySubDirectory/"):
 \sourceCodeMinipage{
-	\sourceCodeWorksheetChangelvFile{./MySubDirectory/lv.tex}\\[2ex]
+	\sourceCodeWorksheetChangelvFile{./MySubDirectory/lv.tex}\\[1.5ex]
 	\sourceCodeWorksheetAuthors{Ignored Author}\\
-	\sourceCodeWorksheetCourseName{Ignored Header}\\[2ex]
+	\sourceCodeWorksheetCourseName{Ignored Header}\\[1.5ex]
 	\sourceCodeBegin{document}...
 }
+\vfil
+\begin{center}
+		\begin{minipage}[b]{\textwidth}
+			\begin{minipage}[b]{0.5\textwidth}
+				\noindent Content of "MySubDirectory/lv.tex":\par\addvspace{0.5\baselineskip}\noindent
+				{\ttfamily\raggedright \aqua{\textbackslash def}\textbackslash coursename\{Example Header\}\\
+				\aqua{\textbackslash def}\textbackslash authors\{Example Author\}}
+			\end{minipage}%
+			\begin{minipage}[b]{0.5\textwidth}
+				\noindent Also a german version of "MYSubDirectory/lv.tex" is possible:\par\addvspace{0.5\baselineskip}\noindent
+				{\ttfamily\raggedright \aqua{\textbackslash def}\textbackslash lvname\{Example Header\}\\
+				\aqua{\textbackslash def}\textbackslash autoren\{Example Author\}}
+			\end{minipage}
+		\end{minipage}
+\end{center}
 
-\noindent Content of "MySubDirectory/lv.tex":
-\sourceCodeMinipage{
-	\aqua{\textbackslash def}\textbackslash coursename\{Example Header\}\\
-	\aqua{\textbackslash def}\textbackslash authors\{Example Author\}
-}
 
-Also a german version of "MYSubDirectory/lv.tex" is possible:
-\sourceCodeMinipage{
-	\aqua{\textbackslash def}\textbackslash lvname\{Example Header\}\\
-	\aqua{\textbackslash def}\textbackslash autoren\{Example Author\}
-}
-
 % play it safe to display Example Header on both Pages, if this Section is 2 Pages long
 \thispagestyle{headings}
 
 % Babel Languages
 \newpage\section{Conforming to Babel Languages}
-This package automatically changes its appearance to a specific language, after a specific language is selected with {\ttfamily\textbackslash selectlanguage\{...\}}. Supported languages are:
+This package automatically changes its appearance to a specific language, after a specific language is selected with {\ttfamily\textbackslash selectlanguage\{...\}}. Supported Babel languages are:
 \begin{center}
-\textbf{english, german and ngerman}
+\textbf{english, french, german and ngerman}
 \end{center}
 
 % Babel Languages Example
@@ -327,7 +331,8 @@
 \sourceCodeMinipage{
 	\sourceCodeWorksheetShowScore\\
 	\sourceCodeWorksheetShowLearningTargets\\
-	\sourceCodeWorksheetShowDifficulty\\[1ex]
+	\sourceCodeWorksheetShowDifficulty\\
+	\sourceCodeWorksheetShowOccurrence\\[1ex]
 	\sourceCodeBeginExercise\spring{\%}\\{}
 	{\small[\sourceCodeScore{10}\sourceCodeEasy\sourceCodeLearningTargets{1, 2, 3}\sourceCodeOccurrence{Exam WS 2018}]}\\
 	This is an exercise written in english and described in a sentence. Maybe there is another sentence which is not enough though. This last sentence should do.\\
@@ -346,6 +351,7 @@
 \worksheetShowScore
 \worksheetShowLearningTargets
 \worksheetShowDifficulty
+\worksheetShowOccurrence
 \begin{exercise}%
 [\score{10}\easy\learningtargets{1, 2, 3}\occurrence{Exam WS 2018}] This is an exercise written in english and described in a sentence. Maybe there is another sentence which is not enough though. This last sentence should do.
 \end{exercise}
@@ -375,6 +381,6 @@
 to show worksheet header. Per default \emph{scrlayer-scrpage's} header is redefined and -- per default -- pagestyle "headings" is selected; suppress all this behaviour by calling \sourceCodeWorksheetHideHeader{} \textbf{before} {\ttfamily\aqua{\textbackslash begin}\{document\}}.\par
 
 \subsection*{Babel}
-The package worksheet redefines {\ttfamily\textbackslash selectlanguage\{...\}} keeping the original functionality plus checking the selected language's support and changing the internal language if the selected language is supported.
+The package worksheet redefines {\ttfamily\textbackslash selectlanguage\{...\}} keeping the original macro functionality plus checking the selected language's support and changing the internal language if the selected language is supported.
 
 \end{document}

Modified: trunk/Master/texmf-dist/tex/latex/worksheet/worksheet.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/worksheet/worksheet.sty	2018-08-17 22:07:14 UTC (rev 48422)
+++ trunk/Master/texmf-dist/tex/latex/worksheet/worksheet.sty	2018-08-17 22:07:25 UTC (rev 48423)
@@ -6,7 +6,7 @@
 %------------------------------------------------------------------------------------------------------------%
 
 \NeedsTeXFormat{LaTeX2e}[2018]
-\ProvidesPackage{worksheet}[2018/08/08 by Benjamin Zoellner (c)2018 v1.0 This Package provides functions and an environment for easy worksheet creation]
+\ProvidesPackage{worksheet}[2018/08/08 by Benjamin Zoellner (c)2018 v1.1 This Package provides macros and an environment for easy worksheet creation]
 
 \PassOptionsToPackage{headsepline=1pt}{scrlayer-scrpage}
 \RequirePackage{scrlayer-scrpage}
@@ -21,7 +21,7 @@
 \newcounter{@worksheet at numberFound}
 \newcounter{@worksheet at numberEnded}
 
-% evil String Search Hacking using Latex-Kernel Functions \in@ & \ifin@
+% evil String Search Hacking using Latex-Kernel Macros \in@ & \ifin@
 \def\@worksheet at isInString#1#2{TT\fi\begingroup % What the f**k?!
 \edef\x{\endgroup\noexpand\in@{#1}{#2}}\x\ifin@}
 
@@ -64,18 +64,27 @@
 	\xdef\@worksheet at languageSelection@score{Maximum Score}
 	\xdef\@worksheet at languageSelection@learningTargets{Learning Targets}
 	\xdef\@worksheet at languageSelection@difficulty{Difficulty Level}
-	\xdef\@worksheet at languageSelection@easy{Easy}
-	\xdef\@worksheet at languageSelection@medium{Medium}
-	\xdef\@worksheet at languageSelection@hard{Hard}
+	\xdef\@worksheet at languageSelection@easy{easy}
+	\xdef\@worksheet at languageSelection@medium{medium}
+	\xdef\@worksheet at languageSelection@hard{hard}
 }
+\def\@worksheet at selectLanguage@french{
+	\xdef\@worksheet at languageSelection@exercise{Exercice}
+	\xdef\@worksheet at languageSelection@score{Points}
+	\xdef\@worksheet at languageSelection@learningTargets{Buts}
+	\xdef\@worksheet at languageSelection@difficulty{Difficulté}
+	\xdef\@worksheet at languageSelection@easy{facile}
+	\xdef\@worksheet at languageSelection@medium{moyen}
+	\xdef\@worksheet at languageSelection@hard{difficile}
+}
 \def\@worksheet at selectLanguage@german{
 	\xdef\@worksheet at languageSelection@exercise{Aufgabe}
 	\xdef\@worksheet at languageSelection@score{Punkte}
 	\xdef\@worksheet at languageSelection@learningTargets{Lernziele}
 	\xdef\@worksheet at languageSelection@difficulty{Schwierigkeitsgrad}
-	\xdef\@worksheet at languageSelection@easy{Leicht}
-	\xdef\@worksheet at languageSelection@medium{Mittel}
-	\xdef\@worksheet at languageSelection@hard{Schwer}
+	\xdef\@worksheet at languageSelection@easy{leicht}
+	\xdef\@worksheet at languageSelection@medium{mittel}
+	\xdef\@worksheet at languageSelection@hard{schwer}
 }
 \def\@worksheet at selectLanguage@ngerman{\@worksheet at selectLanguage@german}
 



More information about the tex-live-commits mailing list