summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagging
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-10 03:00:50 +0000
committerNorbert Preining <norbert@preining.info>2019-09-10 03:00:50 +0000
commita1c3d5afa1daf60d772eb18931e05c5397e7404c (patch)
tree2a4223ec285ae7993f47d69600480c0ded8c9922 /macros/latex/contrib/tagging
parentcb5ec966f1a3e9b26dcd7fc1b13998e03581b8fd (diff)
CTAN sync 201909100300
Diffstat (limited to 'macros/latex/contrib/tagging')
-rw-r--r--macros/latex/contrib/tagging/README16
-rw-r--r--macros/latex/contrib/tagging/tagging.pdfbin111778 -> 111644 bytes
-rw-r--r--macros/latex/contrib/tagging/tagging.sty25
-rw-r--r--macros/latex/contrib/tagging/tagging.tex28
4 files changed, 37 insertions, 32 deletions
diff --git a/macros/latex/contrib/tagging/README b/macros/latex/contrib/tagging/README
index 2892db0cf3..f5f9efc5cb 100644
--- a/macros/latex/contrib/tagging/README
+++ b/macros/latex/contrib/tagging/README
@@ -1,19 +1,21 @@
- The `tagging' package provides document configuration by
+ The `tagging' package provides document configuration by
including or omitting tagged input.
- tagging is licenced under the LPPL. For more details,
+ tagging is licenced under the LPPL. For more details,
please see the accompanying manual: tagging.pdf.
Change History
~~~~~~~~~~~~~~
-2019-09-07 Kindly provided and inspired by Frank Mittelbach:
+2019-09-09 1.1.0.1 Fix a stupid bug
- Bug fixes
- Removed interference with comment environment (from verbatim package)
- Allow initial active tag list to be passed as package options
+2019-09-07 1.1 Kindly provided and inspired by Frank Mittelbach:
-2011-08-22 Initial release, providing:
+ Bug fixes
+ <nonsense by BL>: Removed interference with comment environment (from verbatim package)
+ Allow initial active tag list to be passed as package options
+
+2011-08-22 1.0 Initial release, providing:
\tagged{list}{y} Conditional inclusion
\untagged{list}{n} Conditional exclusion
diff --git a/macros/latex/contrib/tagging/tagging.pdf b/macros/latex/contrib/tagging/tagging.pdf
index 986f5d141a..0cf5ca5170 100644
--- a/macros/latex/contrib/tagging/tagging.pdf
+++ b/macros/latex/contrib/tagging/tagging.pdf
Binary files differ
diff --git a/macros/latex/contrib/tagging/tagging.sty b/macros/latex/contrib/tagging/tagging.sty
index 5f8c4b994c..d0f1497a16 100644
--- a/macros/latex/contrib/tagging/tagging.sty
+++ b/macros/latex/contrib/tagging/tagging.sty
@@ -1,5 +1,5 @@
% tagging.sty
-% Copyright 2011 Brent Longborough
+% Copyright 2019 Brent Longborough
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -12,16 +12,15 @@
% This work has the LPPL maintenance status `maintained'.
% The Current Maintainer of this work is Brent Longborough.
%
-% This work consists of these files:
+% This work consists of these files:
% tagging.sty, tagging.tex, and tagging.pdf
% --------------------------------------------------------------
-\ProvidesPackage{tagging}[2019/09/07 v1.1]
+\ProvidesPackage{tagging}[2019/09/09 v1.1.0.1]
\RequirePackage{etoolbox,verbatim}
\newcommand{\taggedy}{\relax}
\newcommand{\taggedn}{\relax}
-\newcomment{tagged@ignore}
\newcommand\usetag[1]{%
\def\do##1{\csdef{tagged@##1}{}}%
\docsvlist{#1}}%
@@ -33,12 +32,12 @@
\newenvironment{taggedblock}[1]%
{\def\do##1{%
\ifcsname tagged@##1\endcsname%
- \let\tagged@ignore\relax%
- \let\endtagged@ignore\relax%
+ \let\comment\relax%
+ \let\endcomment\relax%
\fi}%
\docsvlist{#1}%
- \tagged@ignore\ignorespaces}% FMi
- {\endtagged@ignore\ignorespacesafterend}% FMi
+ \comment\ignorespaces}% FMi
+ {\endcomment\ignorespacesafterend}% FMi
\newenvironment{untaggedblock}[1]{%
\csdef{@tagged@flag}{}% FMi
\def\do##1{%
@@ -47,11 +46,11 @@
\fi}%
\docsvlist{#1}%
\ifcsname @tagged@flag\endcsname%
- \let\tagged@ignore\relax%
- \let\endtagged@ignore\relax%
+ \let\comment\relax%
+ \let\endcomment\relax%
\fi%
- \tagged@ignore\ignorespaces}% FMi
- {\endtagged@ignore\ignorespacesafterend}% FMi
+ \comment\ignorespaces}% FMi
+ {\endcomment\ignorespacesafterend}% FMi
\newcommand{\iftagged}[3]%
@@ -66,5 +65,5 @@
\newcommand{\untagged}[2]{\iftagged{#1}{}{#2}}
%FMi Allow tags to be activated as package options
-\DeclareOption*{\usetag{\CurrentOption}}
+\DeclareOption*{\usetag{\CurrentOption}}
\ProcessOptions
diff --git a/macros/latex/contrib/tagging/tagging.tex b/macros/latex/contrib/tagging/tagging.tex
index 11dfea4587..55925ec748 100644
--- a/macros/latex/contrib/tagging/tagging.tex
+++ b/macros/latex/contrib/tagging/tagging.tex
@@ -1,6 +1,10 @@
+% !TEX TS-program = latexmkl
+% !TEX encoding = UTF-8 Unicode
+% !TeX spellcheck = en_GB
+% -----------------------------------------------------
% tagging.tex
% Copyright 2019 Brent Longborough
-%
+% -----------------------------------------------------
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
@@ -12,7 +16,7 @@
% This work has the LPPL maintenance status `maintained'.
% The Current Maintainer of this work is Brent Longborough.
%
-% This work consists of these files:
+% This work consists of these files:
% tagging.sty, tagging.tex, and tagging.pdf
% -----------------------------------------------------
\documentclass[a4paper,12pt,twoside,openany]{memoir}
@@ -39,8 +43,8 @@
\newcommand{\tpn}{tagging}
\newcommand{\tpfname}{\textsf{\tpn.sty}}
\newcommand{\tpname}{\textsf{\itshape \tpn}}
-\newcommand{\gitVtag}{\space1.1}
-\newcommand{\gitVtagn}{\space1.1}
+\newcommand{\gitVtag}{\space1.1.0.1}
+\newcommand{\gitVtagn}{\space1.1.0.1}
% -----------------------------------------------------
\usepackage[%
bookmarksnumbered,
@@ -60,7 +64,7 @@
\Large A package for document configuration
}
\author{Brent Longborough}
-\date{7th September, 2019}
+\date{9th September, 2019}
\maketitle
{\centering
@@ -113,7 +117,7 @@ and the active tags.
Alternatively, you might prefer to tag pieces of the document
as applying to given models, by labelling them with one more
-model designations.
+model designations.
For such an application, you would probably have
a number of master document source files,
each of which would activate the appropriate tags,
@@ -128,7 +132,7 @@ Yet another application might involve describing the way
in which something --- an idea, an algorithm, for instance --- has evolved.
The description of the evolving thing could be labelled with its stages,
and then repeatedly imbedded from a master source document with different
-active tags to reflect the stage in its evolution.
+active tags to reflect the stage in its evolution.
The possibilities are, if not limitless,
at least very extensive.
@@ -215,7 +219,7 @@ is included in the document only if \emph{none} of the tags in
The tag control commands determine which tags
are active at any point in the document.
The document starts with all tags inactive;
-\tpname\ requires that you explicitly activate
+\tpname\ requires that you explicitly activate
the tags you need.
Once a tag has been activated, it remains active from that point
@@ -230,7 +234,7 @@ This command activates \emph{all} the tags in \texttt{\itshape<taglist>}.
\subsection{{\ttfamily\textbackslash usepackage[{\itshape<taglist>}]\{\tpn\}}}
If you wish, you may activate one or more tags, once, in your
document preamble by passing a taglist as options when you call
-the package.
+the package.
\emph{All} the tags in \texttt{\itshape<taglist>} are activated.
Any tags activated this way can still be deactivated and
reactivated as many times as you may need in the body of the
@@ -238,7 +242,7 @@ document.
% - - - - - - - - - - - - - - - - - - - - - - - - - - -
\subsection{{\ttfamily\textbackslash droptag\{{\itshape<taglist>}\}}}
This command deactivates \emph{all} the tags in \texttt{\itshape<taglist>}.
-\tpname\ is too simple to include a command
+\tpname\ is too simple to include a command
to ``deactivate all known tags'' --- sorry.
% - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -324,7 +328,7 @@ it comes with:
\section{Acknowledgements and dependencies}
\tpname\ is based on an idea by \href{http://tex.stackexchange.com/users/2674/leo-liu}{Leo Liu}.
-It would have been a lot more difficult to implement without the help of
+It would have been a lot more difficult to implement without the help of
Philipp Lehman's
\href{http://www.ctan.org/tex-archive/macros/latex/contrib/etoolbox}{etoolbox}
and of
@@ -361,7 +365,7 @@ version 2005/12/01 or later.
This work has the LPPL maintenance status `maintained';
the Current Maintainer of this work is Brent Longborough.
-This work consists of the files
+This work consists of the files
tagging.sty, tagging.tex, and tagging.pdf
% - - - - - - - - - - - - - - - - - - - - - - - - - - -