Skip to content

Commit

Permalink
hidetags checking empty value correctly. Fix #93
Browse files Browse the repository at this point in the history
  • Loading branch information
Strauman committed Mar 18, 2019
1 parent c7813d7 commit c17b349
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This is the documentation for version v0.2.3-experimental, and might not be the

# Versions
Download latest(/github)-version here: [exercisebank.zip](https://github.com/Strauman/exerciseBank/blob/master/exercisebank.zip)
GitHub at version: v0.2.3-experimental (2018/12/07) build 113
GitHub at version: v0.2.3-experimental (2018/12/08) build 114

CTAN at version: v0.2.2 (2018/10/04) build 97

Expand Down
8 changes: 4 additions & 4 deletions exercisebank.sty
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% Source (with comments) can be found at https://github.com/Strauman/exercisebank/
%% The LaTeX package exercisebank - version v0.2.3-experimental (2018/12/07) - build 113
%% The LaTeX package exercisebank - version v0.2.3-experimental (2018/12/08) - build 114
%% exercisebank.sty: Exercise bank
%% -------------------------------------------------------------------------------------------
%% Copyright (c) 2018 by Andreas Storvik Strauman <andreas dot s dot strauman at uit dot no>
Expand All @@ -13,9 +13,9 @@
%% version 2008/05/04 or later.
%% This work has the LPPL maintenance status `author-maintained'.
%% This work consists of all files listed in README
\ProvidesPackage{exercisebank}[2018/12/07 v0.2.3-experimental Creates a setup that gives freedom in making sets and exercises.]
\ProvidesPackage{exercisebank}[2018/12/08 v0.2.3-experimental Creates a setup that gives freedom in making sets and exercises.]
\xdef\exbank@quiet{1}
\def\exercisebankversion{v0.2.3-experimental - Build 113}
\def\exercisebankversion{v0.2.3-experimental - Build 114}
\PackageWarningNoLine{exercisebank-v0.2.3-experimental}{This package is in the beta stage, and if something unexpected happens please, oh pretty please, report it to https://github.com/Strauman/exercisebank. Thank you!}
\@ifundefined{ownLineNoSpacesGotIt}{\@latex@warning{Compilation wont work unless \string\end{problem} and \string\end{solution} are on their own lines and without any spaces. This warning can be removed by doing \string\def\string\ownLineNoSpacesGotIt{} before \@backslashchar usepackage{exercisebank}}
}{}
Expand Down Expand Up @@ -920,7 +920,7 @@ nohead/.code = {\exb@noheadArgtrue\ea\gdef\csname setlist@\exb@currentSetID @noh
\At\EndPartproblem{\gdef\exb@currentPoints{0}}
\def\exb@hidetaglist{}
\At\DecideProblemDisplay{\ifexb@DisplayCurrentProblem\relax%
\ifx\exb@hidetaglist\relax\else
\ifx\exb@hidetaglist\empty\relax\else
\exb@intersection@any{\exb@currentTags}{\exb@hidetaglist}{\global\exb@opthidestrue}{}%
\fi
\fi
Expand Down
Binary file modified exercisebank.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion release/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ https://github.com/Strauman/exercisebank/

Licence:

The LaTeX package exercisebank - version v0.2.3-experimental (2018/12/07) - build 113
The LaTeX package exercisebank - version v0.2.3-experimental (2018/12/08) - build 114
exercisebank.sty: Exercise bank
-------------------------------------------------------------------------------------------
Copyright (c) 2018 by Andreas Storvik Strauman
Expand Down
Binary file modified release/example.zip
Binary file not shown.
Binary file modified release/exercisebank-doc.pdf
Binary file not shown.
16 changes: 8 additions & 8 deletions release/exercisebank-doc.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%% exercisebank v0.2.3-experimentalb113 - 2018/12/07
%% The LaTeX package exercisebank - version v0.2.3-experimental (2018/12/07) build 113
%% exercisebank v0.2.3-experimentalb114 - 2018/12/08
%% The LaTeX package exercisebank - version v0.2.3-experimental (2018/12/08) build 114
%% Manual/Documentation for exercisebank.sty
%% -------------------------------------------------------------------------------------------
%% Copyright (c) 2018 by Andreas Storvik Strauman
Expand Down Expand Up @@ -120,7 +120,7 @@


\setlength{\parindent}{0pt}
\title{{exercisebank - manual\\ v0.2.3-experimental{\\[-0.5em]\footnotesize(build 113)}}}
\title{{exercisebank - manual\\ v0.2.3-experimental{\\[-0.5em]\footnotesize(build 114)}}}
\author{Andreas Strauman}
\begin{document}
\maketitle
Expand Down Expand Up @@ -309,7 +309,7 @@ \subsection{Points and tags for exercises}
Turns on the solutions, so they are shown.
\end{docCommand}
\begin{docCommand}{SolutionsOnly}{}\addcontentsline{toc}{subsubsection}{\refCom{SolutionsOnly}}
\defnew{v0.2.3-experimental\\2018/12/07 }
\defnew{v0.2.3-experimental\\2018/12/08 }
Displays only solutions (if there are any) to the part problem
\end{docCommand}
\begin{docEnvironment}{problem}{}
Expand Down Expand Up @@ -414,7 +414,7 @@ \subsection{Points and tags for exercises}
\defnew{v0.2.1\\2018/09/24 }
\end{docCommand}
\begin{docCommand}{buildset}{\oarg{intro|nohead|nointro}\marg{setname}}\addcontentsline{toc}{subsubsection}{\refCom{buildset}}
\updated{v0.2.3-experimental\\2018/12/07 }
\updated{v0.2.3-experimental\\2018/12/08 }
This command runs the set given. The set has do be defined by \dac{makeset}. E.eg
\begin{dispListing}
\makeset{myExerciseSet}{exercisefile1, \select{exercisefile2}{1,2}}
Expand Down Expand Up @@ -596,7 +596,7 @@ \subsection{Points and tags for exercises}
\end{docCommand}
\filbreak\subsection{Problem options and tagging}
\begin{docCommand}{nextproblem}{}\addcontentsline{toc}{subsubsection}{\refCom{nextproblem}}
\updated{v0.2.3-experimental\\2018/12/07 }
\updated{v0.2.3-experimental\\2018/12/08 }
Prior to a problem environment in an exercise file you can pass options
using the \dac{nextproblem} command. If you e.g. wanted to hide one regardless
of what set it is you'd do
Expand Down Expand Up @@ -665,7 +665,7 @@ \subsection{Points and tags for exercises}

\end{docCommand}
\begin{docCommand}{ClearHook}{}\addcontentsline{toc}{subsubsection}{\refCom{ClearHook}}
\defnew{v0.2.3-experimental\\2018/12/07 }
\defnew{v0.2.3-experimental\\2018/12/08 }
Deletes all information from a hook.
Note that if preceded by \dac{rigid}, then the
ENTIRE hook will be cleared.
Expand Down Expand Up @@ -860,7 +860,7 @@ \section{Changelog}
\newversion{v0.2.2 2018/10/04}
\change{Made trailing commas ignored in all lists (\dac\makeset,\dac\buildset,\dac\select,\dac\exclude, etc.)}
\change{Fixed bug where tags wouldn't hide.}
\newversion{v0.2.3-experimental 2018/12/07}
\newversion{v0.2.3-experimental 2018/12/08}
\change{Added possibility of custom part problem header from \dac\nextproblem}
\change{Added possibility of showing problem only when \dac\DisplaySolutions active}
\change{Corrected use of the length \dac\ppMarginBelow}
Expand Down
8 changes: 4 additions & 4 deletions release/exercisebank.sty
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% Source (with comments) can be found at https://github.com/Strauman/exercisebank/
%% The LaTeX package exercisebank - version v0.2.3-experimental (2018/12/07) - build 113
%% The LaTeX package exercisebank - version v0.2.3-experimental (2018/12/08) - build 114
%% exercisebank.sty: Exercise bank
%% -------------------------------------------------------------------------------------------
%% Copyright (c) 2018 by Andreas Storvik Strauman <andreas dot s dot strauman at uit dot no>
Expand All @@ -13,9 +13,9 @@
%% version 2008/05/04 or later.
%% This work has the LPPL maintenance status `author-maintained'.
%% This work consists of all files listed in README
\ProvidesPackage{exercisebank}[2018/12/07 v0.2.3-experimental Creates a setup that gives freedom in making sets and exercises.]
\ProvidesPackage{exercisebank}[2018/12/08 v0.2.3-experimental Creates a setup that gives freedom in making sets and exercises.]
\xdef\exbank@quiet{1}
\def\exercisebankversion{v0.2.3-experimental - Build 113}
\def\exercisebankversion{v0.2.3-experimental - Build 114}
\PackageWarningNoLine{exercisebank-v0.2.3-experimental}{This package is in the beta stage, and if something unexpected happens please, oh pretty please, report it to https://github.com/Strauman/exercisebank. Thank you!}
\@ifundefined{ownLineNoSpacesGotIt}{\@latex@warning{Compilation wont work unless \string\end{problem} and \string\end{solution} are on their own lines and without any spaces. This warning can be removed by doing \string\def\string\ownLineNoSpacesGotIt{} before \@backslashchar usepackage{exercisebank}}
}{}
Expand Down Expand Up @@ -920,7 +920,7 @@ nohead/.code = {\exb@noheadArgtrue\ea\gdef\csname setlist@\exb@currentSetID @noh
\At\EndPartproblem{\gdef\exb@currentPoints{0}}
\def\exb@hidetaglist{}
\At\DecideProblemDisplay{\ifexb@DisplayCurrentProblem\relax%
\ifx\exb@hidetaglist\relax\else
\ifx\exb@hidetaglist\empty\relax\else
\exb@intersection@any{\exb@currentTags}{\exb@hidetaglist}{\global\exb@opthidestrue}{}%
\fi
\fi
Expand Down
2 changes: 1 addition & 1 deletion src/hidetags.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
\def\exb@hidetaglist{}
\At\DecideProblemDisplay{
\ifexb@DisplayCurrentProblem\relax%
\ifx\exb@hidetaglist\relax\else
\ifx\exb@hidetaglist\empty\relax\else
\exb@intersection@any{\exb@currentTags}{\exb@hidetaglist}{\global\exb@opthidestrue}{}%
\fi
\fi
Expand Down
2 changes: 1 addition & 1 deletion src/packaging/texpackvars.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
packagename=exercisebank
github=https://github.com/Strauman/exercisebank/
version=0.2.3
build=113
build=114
packfile=exbankpack.tex

0 comments on commit c17b349

Please sign in to comment.