texlive[55188] Master/texmf-dist: exercises (18may20)

commits+karl at tug.org commits+karl at tug.org
Mon May 18 00:31:50 CEST 2020


Revision: 55188
          http://tug.org/svn/texlive?view=revision&revision=55188
Author:   karl
Date:     2020-05-18 00:31:49 +0200 (Mon, 18 May 2020)
Log Message:
-----------
exercises (18may20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/exercises/README.md
    trunk/Master/texmf-dist/doc/latex/exercises/exercises.pdf
    trunk/Master/texmf-dist/source/latex/exercises/exercises.dtx
    trunk/Master/texmf-dist/source/latex/exercises/exercises.ins
    trunk/Master/texmf-dist/tex/latex/exercises/exercises.sty

Modified: trunk/Master/texmf-dist/doc/latex/exercises/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/exercises/README.md	2020-05-17 22:30:58 UTC (rev 55187)
+++ trunk/Master/texmf-dist/doc/latex/exercises/README.md	2020-05-17 22:31:49 UTC (rev 55188)
@@ -2,7 +2,7 @@
 The package allows you to customize the layout of those environments.
 The optional points in exercises can be added automatically. In addition you’re able to hide the solutions.
 
-This is exercises version 1.0, 19 September 2015. exercises is distributed 
+This is exercises version 1.1, 17 Mai 2020. exercises is distributed 
 under the LaTeX Project Public License (LPPL).
 
 

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

Modified: trunk/Master/texmf-dist/source/latex/exercises/exercises.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/exercises/exercises.dtx	2020-05-17 22:30:58 UTC (rev 55187)
+++ trunk/Master/texmf-dist/source/latex/exercises/exercises.dtx	2020-05-17 22:31:49 UTC (rev 55188)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright (C) 2015 by Roger Jud <rogerjud at outlook.com>
+% Copyright (C) 2000 by Roger Jud <rogerjud at outlook.com>
 % -------------------------------------------------------
 % 
 % This file may be distributed and/or modified under the
@@ -17,7 +17,7 @@
 %
 % \iffalse
 %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-%<package>\ProvidesPackage{exercises}[2015/09/19 v1.0 .dtx exercises file]
+%<package>\ProvidesPackage{exercises}[2000/05/17 v1.1 .dtx exercises file]
 %
 %<*driver>
 \documentclass[a4paper]{ltxdoc}
@@ -29,7 +29,7 @@
 linkcolor=black,%
 urlcolor=black,%
 }
-\usepackage[printsolution=true]{exercises}[2015/09/19]
+\usepackage[printsolution=true]{exercises}[2000/05/17]
 \usepackage[utf8]{inputenc}
 \usepackage[english]{babel}
 \usepackage{amsmath}
@@ -71,6 +71,7 @@
 %
 % 
 % \changes{v1.0}{2015/09/19}{Initial version}
+% \changes{v1.1}{2000/05/17}{Add the command ifsolutionthenelse}
 %
 % \GetFileInfo{exercises.sty}
 %
@@ -312,11 +313,55 @@
 % 
 %
 %
+% \subsection{Print text depending on wether the solution is printed or not}
+% With the command |\ifsolutionthenelse{}{}| you can print text depending on wether the solution is printed or not. 
 %	
-%	
+% \iffalse
+%<*example>
+% \fi
+\begin{latexcode}
+\usepackage[printsolution=true]{exercises}
+\ifsolutionthenelse{%
+		\subsection*{This is the header for the solutions}%
+	}%
+	{%
+		\subsection*{This is the header for the exercises}%
+	}
+\end{latexcode}
+% \iffalse
+%</example>
+% \fi
+% 
+% \emph{produces}
 %
+% \subsection*{This is the header for the solutions}
 %
 %
+% \emph{while}
+%
+%
+%
+%
+% \iffalse
+%<*example>
+% \fi
+\begin{latexcode}
+\usepackage[printsolution=false]{exercises}
+\ifsolutionthenelse{%
+		\subsection*{This is the header for the solutions}%
+	}%
+	{%
+		\subsection*{This is the header for the exercises}%
+	}
+\end{latexcode}
+% \iffalse
+%</example>
+% \fi
+% 
+% \emph{produces}
+%
+% \subsection*{This is the header for the exercises}
+%
 % \StopEventually{\PrintChanges}
 %
 % \section[Implementation]{Implementation -- how I've done it (only in German)}
@@ -923,7 +968,7 @@
 %
 % \begin{macro}{\exercisenewpage}
 % \begin{macro}{\solutionnewpage}
-% Die Befehle |exercisenewpage| und |solutionnewpage| erlauben es, einen Seitenumbruch in abhängigkeit der Lösungsausgabe einzufügen.
+% Die Befehle |exercisenewpage| und |solutionnewpage| erlauben es, einen Seitenumbruch in Abhängigkeit der Lösungsausgabe einzufügen.
 %    \begin{macrocode}
 \newcommand{\exercisenewpage}{\ifthenelse{\boolean{exercises at printsolution}}{}{\newpage}}
 %    \end{macrocode}
@@ -934,5 +979,18 @@
 % \end{macro}
 % \end{macro}
 %
+%
+%
+% \subsection{Befehl für die bedingte Textausgabe}
+%
+% \begin{macro}{\ifsolutionthenelse}
+% Der Befehl |ifsolutionthenelse{}{}| erlaubt es, Text in Abhängigkeit der Lösungsausgabe auszugeben.
+%    \begin{macrocode}
+\newcommand{\ifsolutionthenelse}[2]{\ifthenelse{\boolean{exercises at printsolution}}{#1}{#2}}
+%    \end{macrocode}
+%
+% \end{macro}
+
+%
 % \Finale
 \endinput

Modified: trunk/Master/texmf-dist/source/latex/exercises/exercises.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/exercises/exercises.ins	2020-05-17 22:30:58 UTC (rev 55187)
+++ trunk/Master/texmf-dist/source/latex/exercises/exercises.ins	2020-05-17 22:31:49 UTC (rev 55188)
@@ -1,5 +1,5 @@
 %%
-%% Copyright (C) 2015 by Roger Jud <rogerjud at outlook.com>
+%% Copyright (C) 2020 by Roger Jud <rogerjud at outlook.com>
 %%
 %% This file may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.2 of this license
@@ -21,7 +21,7 @@
 
 This is a generated file.
 
-Copyright (C) 2015 by Roger Jud <rogerjud at outlook.com>
+Copyright (C) 2020 by Roger Jud <rogerjud at outlook.com>
 
 This file may be distributed and/or modified under the conditions of
 the LaTeX Project Public License, either version 1.2 of this license

Modified: trunk/Master/texmf-dist/tex/latex/exercises/exercises.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/exercises/exercises.sty	2020-05-17 22:30:58 UTC (rev 55187)
+++ trunk/Master/texmf-dist/tex/latex/exercises/exercises.sty	2020-05-17 22:31:49 UTC (rev 55188)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (C) 2015 by Roger Jud <rogerjud at outlook.com>
+%% Copyright (C) 2020 by Roger Jud <rogerjud at outlook.com>
 %% 
 %% This file may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.2 of this license
@@ -21,7 +21,7 @@
 %% 1999/12/01 or later.
 %% 
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
-\ProvidesPackage{exercises}[2015/09/19 v1.0 .dtx exercises file]
+\ProvidesPackage{exercises}[2000/05/17 v1.1 .dtx exercises file]
 \RequirePackage{verbatim}
 \RequirePackage{ifthen}
 \RequirePackage{kvoptions}
@@ -195,6 +195,8 @@
 }%
 \newcommand{\exercisenewpage}{\ifthenelse{\boolean{exercises at printsolution}}{}{\newpage}}
 \newcommand{\solutionnewpage}{\ifthenelse{\boolean{exercises at printsolution}}{\newpage}{}}
+\newcommand{\ifsolutionthenelse}[2]{\ifthenelse{\boolean{exercises at printsolution}}{#1}{#2}}
+
 \endinput
 %%
 %% End of file `exercises.sty'.



More information about the tex-live-commits mailing list.