summaryrefslogtreecommitdiff
path: root/macros/latex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex')
-rw-r--r--macros/latex/contrib/exercises/README.md2
-rw-r--r--macros/latex/contrib/exercises/exercises.dtx68
-rw-r--r--macros/latex/contrib/exercises/exercises.ins4
-rw-r--r--macros/latex/contrib/exercises/exercises.pdfbin414151 -> 420909 bytes
-rw-r--r--macros/latex/contrib/vcell/README.md2
-rw-r--r--macros/latex/contrib/vcell/vcell.pdfbin147125 -> 147086 bytes
-rw-r--r--macros/latex/contrib/vcell/vcell.sty10
-rw-r--r--macros/latex/contrib/vcell/vcell.tex1
8 files changed, 75 insertions, 12 deletions
diff --git a/macros/latex/contrib/exercises/README.md b/macros/latex/contrib/exercises/README.md
index 037dc5c6c3..42dfb37fe7 100644
--- a/macros/latex/contrib/exercises/README.md
+++ b/macros/latex/contrib/exercises/README.md
@@ -2,7 +2,7 @@ This is the distribution directory for exercises, a LaTeX package to typeset exe
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).
diff --git a/macros/latex/contrib/exercises/exercises.dtx b/macros/latex/contrib/exercises/exercises.dtx
index d818e495e6..4ec2313f34 100644
--- a/macros/latex/contrib/exercises/exercises.dtx
+++ b/macros/latex/contrib/exercises/exercises.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2015 by Roger Jud <rogerjud@outlook.com>
+% Copyright (C) 2000 by Roger Jud <rogerjud@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 @@ filecolor=black,%
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 @@ urlcolor=black,%
%
%
% \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 @@ Sum of points: \totalpoints
%
%
%
+% \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 @@ Sum of points: \totalpoints
%
% \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@printsolution}}{}{\newpage}}
% \end{macrocode}
@@ -934,5 +979,18 @@ Sum of points: \totalpoints
% \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@printsolution}}{#1}{#2}}
+% \end{macrocode}
+%
+% \end{macro}
+
+%
% \Finale
\endinput
diff --git a/macros/latex/contrib/exercises/exercises.ins b/macros/latex/contrib/exercises/exercises.ins
index 355319f2e6..114e9e6cf0 100644
--- a/macros/latex/contrib/exercises/exercises.ins
+++ b/macros/latex/contrib/exercises/exercises.ins
@@ -1,5 +1,5 @@
%%
-%% Copyright (C) 2015 by Roger Jud <rogerjud@outlook.com>
+%% Copyright (C) 2020 by Roger Jud <rogerjud@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@outlook.com>
+Copyright (C) 2020 by Roger Jud <rogerjud@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
diff --git a/macros/latex/contrib/exercises/exercises.pdf b/macros/latex/contrib/exercises/exercises.pdf
index 646c3a38be..f28241e411 100644
--- a/macros/latex/contrib/exercises/exercises.pdf
+++ b/macros/latex/contrib/exercises/exercises.pdf
Binary files differ
diff --git a/macros/latex/contrib/vcell/README.md b/macros/latex/contrib/vcell/README.md
index 15f8c63b82..b45e138f87 100644
--- a/macros/latex/contrib/vcell/README.md
+++ b/macros/latex/contrib/vcell/README.md
@@ -3,7 +3,7 @@ The LaTeX `vcell` package
Vertical alignment of content inside table cells
-Release 2020-05-15
+Release 2020-05-16
Overview
--------
diff --git a/macros/latex/contrib/vcell/vcell.pdf b/macros/latex/contrib/vcell/vcell.pdf
index 1389e0ad60..a0629885c0 100644
--- a/macros/latex/contrib/vcell/vcell.pdf
+++ b/macros/latex/contrib/vcell/vcell.pdf
Binary files differ
diff --git a/macros/latex/contrib/vcell/vcell.sty b/macros/latex/contrib/vcell/vcell.sty
index 4c8957a0ab..7e6c98d5b6 100644
--- a/macros/latex/contrib/vcell/vcell.sty
+++ b/macros/latex/contrib/vcell/vcell.sty
@@ -1,5 +1,5 @@
%
-% vcell.sty V1.0 version (15-May-2020)
+% vcell.sty V1.0.1 version (16-May-2020)
%
% Author: Xavier Dionne <info@latex-tables.com>
%
@@ -8,9 +8,13 @@
% The contents of this package are distributed under the LaTeX Project
% Public License, version 1.3c or later.
% https://www.latex-project.org/lppl/lppl-1-3c/
+%
+% Changelog :
+% [v 1.0.1] - Fixed an issue where the height was calculated
+% twice if the cell had a depth
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
-\ProvidesPackage{vcell}[2020/05/15 v1.0]
+\ProvidesPackage{vcell}[2020/05/16 v1.0.1]
\newdimen\rowheight
\newdimen\rowht
\newdimen\rowdp
@@ -29,7 +33,7 @@
\def\savecellheight{%
\ifdim\ht\@celltemp>\rowht\global\setlength{\rowht}{\ht\@celltemp}\fi%
- \ifdim\dp\@celltemp>\rowdp\global\setlength{\rowdp}{\ht\@celltemp}\fi%
+ \ifdim\dp\@celltemp>\rowdp\global\setlength{\rowdp}{\dp\@celltemp}\fi%
\ifdim\dimexpr\dp\@celltemp+\ht\@celltemp>\rowheight{\global\setlength{\rowheight}{\dimexpr\dp\@celltemp+\ht\@celltemp}}\fi
}
\long\def\savecellbox#1{%
diff --git a/macros/latex/contrib/vcell/vcell.tex b/macros/latex/contrib/vcell/vcell.tex
index 0ba9a80376..5f228bbd9d 100644
--- a/macros/latex/contrib/vcell/vcell.tex
+++ b/macros/latex/contrib/vcell/vcell.tex
@@ -12,6 +12,7 @@
\begin{document}
\title{The package \texttt{vcell} : Vertical alignment for cells}
\author{Xavier Dionne\thanks{The author wrote this package for its online table generator (\texttt{https://latex-tables.com}). You can contact him at info [at] latex-tables [dot] com.}}
+\date{May 16, 2020}
\maketitle
\section{Introduction}