summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-07-11 22:20:47 +0000
committerKarl Berry <karl@freefriends.org>2015-07-11 22:20:47 +0000
commit169f36cf85710819b29b10a3f1f2943b6282b437 (patch)
treef374cf937ca51a171d9f43275e5667b7e89a3b95
parent43acef71933c2d1bbe6f685b4a7896db35cdfb39 (diff)
datatool (11jul15)
git-svn-id: svn://tug.org/texlive/trunk@37837 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/datatool/CHANGES26
-rw-r--r--Master/texmf-dist/doc/latex/datatool/README27
-rw-r--r--Master/texmf-dist/doc/latex/datatool/datatool-code.pdfbin922877 -> 923804 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datatool/datatool-user.pdfbin605320 -> 606573 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datatool/datatool-user.tex117
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/data-raw-psaved.dbtex33
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/data-raw-saved.dbtex167
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/data.csv5
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/data2.csv4
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/exp25a.csv4
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/exp25b.csv4
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/exp30a.csv4
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/fruit.csv6
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/groupa.csv11
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/groupb.csv11
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/index.csv4
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/mydata.csv5
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/mynewdata.csv5
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/onecol.csv5
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/plotdata.csv5
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/polygon.csv6
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/profits.csv5
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/rawdata.csv2
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/rawdata2.csv2
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample-autokeys-data.csv (renamed from Master/texmf-dist/doc/latex/datatool/samples/rawdata3.csv)0
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample-autokeys.pdfbin24927 -> 24923 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample-autokeys.tex2
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample-barchart.pdfbin35078 -> 35068 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample-datatooltk.pdfbin22872 -> 22860 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample-dict.pdfbin122606 -> 122595 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample-europecv-bib.pdfbin89563 -> 89557 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample-gidx.pdfbin179702 -> 179590 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample-glossary.pdfbin104321 -> 104238 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample-index.pdfbin128798 -> 128779 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample-mail-merge.pdfbin21627 -> 21623 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample-piechart.pdfbin33976 -> 33966 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample-sort.pdfbin61072 -> 61064 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample-student-scores.pdfbin34627 -> 34616 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample-two-per-row.pdfbin31764 -> 31751 bytes
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample3.csv4
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/sample4.csv5
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/scores2.csv10
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/semesterscores.csv7
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/students.csv7
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/studentscores.csv7
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/test-export-from-calc.csv3
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/test-missing-some-headers.csv2
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/test-rawtex.dbtex167
-rw-r--r--Master/texmf-dist/doc/latex/datatool/samples/test-scores.csv10
-rw-r--r--Master/texmf-dist/source/latex/datatool/datatool.dtx162
-rw-r--r--Master/texmf-dist/source/latex/datatool/datatool.ins4
-rw-r--r--Master/texmf-dist/tex/latex/datatool/databar.sty4
-rw-r--r--Master/texmf-dist/tex/latex/datatool/databib.sty4
-rw-r--r--Master/texmf-dist/tex/latex/datatool/datagidx.sty4
-rw-r--r--Master/texmf-dist/tex/latex/datatool/datapie.sty4
-rw-r--r--Master/texmf-dist/tex/latex/datatool/dataplot.sty4
-rw-r--r--Master/texmf-dist/tex/latex/datatool/datatool-base.sty45
-rw-r--r--Master/texmf-dist/tex/latex/datatool/datatool-fp.sty4
-rw-r--r--Master/texmf-dist/tex/latex/datatool/datatool-pgfmath.sty4
-rw-r--r--Master/texmf-dist/tex/latex/datatool/datatool.sty32
-rw-r--r--Master/texmf-dist/tex/latex/datatool/person.sty12
61 files changed, 287 insertions, 678 deletions
diff --git a/Master/texmf-dist/doc/latex/datatool/CHANGES b/Master/texmf-dist/doc/latex/datatool/CHANGES
index cd5ac54b758..311f435b815 100644
--- a/Master/texmf-dist/doc/latex/datatool/CHANGES
+++ b/Master/texmf-dist/doc/latex/datatool/CHANGES
@@ -1,3 +1,27 @@
+v2.23:
+
+ * datatool:
+
+ - etex no longer loaded.
+
+ - added \DTLisinlist and \DTLmaketabspace
+
+ - Bug fix (\@dtl@starttrim): fixed issue that caused
+ loss of group at the start of a line when reading a csv file
+
+ - Bug fix: unstarred (case-sensitive) version of \DTLsort
+ now correctly uses case-sensitive sort.
+
+ - Bug fix: error in \DTLifSubString
+
+ * person:
+
+ - Bug fix: replaced \ifpersonmale with \ifmale within the
+ definitions of \persongender and \getpersongender
+
+ - Bug fix: replaced \@thisperson with #1 in \ifmale and
+ \iffemale
+
v2.22:
* datatool-base:
@@ -356,7 +380,7 @@ v2.0 (2009/02/27):
datatool.sty:
* Rewritten database internal representation to make the code
- faster (thanks to Morten H\o gholm for the suggestion)
+ faster (thanks to Morten H\o gholm for this)
* added etex as a required package
* Database columns can now have an associated header (in addition
to the key)
diff --git a/Master/texmf-dist/doc/latex/datatool/README b/Master/texmf-dist/doc/latex/datatool/README
index 4e551211d9d..28ef7ab8756 100644
--- a/Master/texmf-dist/doc/latex/datatool/README
+++ b/Master/texmf-dist/doc/latex/datatool/README
@@ -1,6 +1,6 @@
-LaTeX Bundle : datatool v2.22
+LaTeX Bundle : datatool v2.23
-Last Modified : 2014-06-10
+Last Modified : 2015-07-11
Author : Nicola Talbot
@@ -106,29 +106,6 @@ person.sty:
*The datatool bundle replaces the csvtools bundle which is now obsolete.*
-REQUIRED PACKAGES:
-
-The datatool.sty and datatool-base.sty packages requires the following packages/files:
-
-xkeyval
-ifthen
-xfor
-substr (at least 2009/10/20)
-etex
-etoolbox
-amsmath
-
-The datatool-fp package requires fp.sty
-The datatool-pgfmath package requires pgfmath.sty
-
-The datapie.sty, dataplot.sty and databar.sty packages
-additionally require the tikz/pgf bundle.
-
-*Remember to refresh TeX's database*
-
-The package and documentation source code is also supplied as a
-dtx and ins file located in texmf/source.
-
This material is subject to the LaTeX Project Public License.
See http://www.ctan.org/license/lppl1.3 for the details of that license.
diff --git a/Master/texmf-dist/doc/latex/datatool/datatool-code.pdf b/Master/texmf-dist/doc/latex/datatool/datatool-code.pdf
index 7ca6fba6710..5a1571a4282 100644
--- a/Master/texmf-dist/doc/latex/datatool/datatool-code.pdf
+++ b/Master/texmf-dist/doc/latex/datatool/datatool-code.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/datatool/datatool-user.pdf b/Master/texmf-dist/doc/latex/datatool/datatool-user.pdf
index db0bb8965f4..fac3cc3d181 100644
--- a/Master/texmf-dist/doc/latex/datatool/datatool-user.pdf
+++ b/Master/texmf-dist/doc/latex/datatool/datatool-user.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/datatool/datatool-user.tex b/Master/texmf-dist/doc/latex/datatool/datatool-user.tex
index 32208ad80e5..91a26817787 100644
--- a/Master/texmf-dist/doc/latex/datatool/datatool-user.tex
+++ b/Master/texmf-dist/doc/latex/datatool/datatool-user.tex
@@ -37,7 +37,14 @@
\doxitem{Counter}{counter}{counters}
\doxitem{Option}{option}{package options}
-\newcommand*{\desctr}[1]{\ctrfmt{#1}\DescribeCounter{#1}}
+\newcommand*{\desctr}[1]{\DescribeCounter{#1}\ctrfmt{#1}}
+
+\newrobustcmd{\dbs}{\texttt{\string\\}}
+
+\newcommand{\idbs}{%
+ \dbs\index{\string\\\actualchar\dbs\encapchar usage}%
+}
+
%bibliography database
\DTLnewdb{docbib}
@@ -91,11 +98,11 @@
\MakeShortVerb{"}
\DeleteShortVerb{\|}
- \title{User Manual for datatool bundle version~2.22}
+ \title{User Manual for datatool bundle version~2.23}
\author{Nicola L.C. Talbot\\
\url{http://www.dickimaw-books.com/}}
- \date{2014-06-10}
+ \date{2015-07-11}
\maketitle
\pagenumbering{roman}
@@ -110,7 +117,7 @@ The \styfmt{datatool} bundle comes with the following documentation:
\item[\url{datatool-code.pdf}]
Advanced users wishing to know more about the inner workings of
all the packages provided in the \styfmt{datatool} bundle should
- read \qt{Documented Code for datatool v2.22}
+ read \qt{Documented Code for datatool v2.23}
\item[INSTALL] Installation instructions.
@@ -1325,6 +1332,12 @@ The remarks about \cs{DTLifStartsWith} also apply to
\cs{DTLisPrefix}. This command performs a case sensitive
match.
+\begin{definition}[\DescribeMacro{\DTLisinlist}]%
+\cs{DTLisinlist}\marg{element}\marg{list}
+\end{definition}
+This checks if \meta{element} is in \meta{list}. (Internally uses
+\cs{DTLifinlist}.)
+
\chapter{Fixed Point Arithmetic}
\label{sec:fp}
@@ -2323,6 +2336,14 @@ to a tab separator using the command:
\begin{definition}[\DescribeMacro{\DTLsettabseparator}]%
\cs{DTLsettabseparator}
\end{definition}
+Note that this command changes the category code of the tab
+character to~12 (other). If, after you have loaded your data, you want to
+reset the tab category code to~10 (space), you can use:
+\begin{definition}[\DescribeMacro{\DTLmaketabspace}]%
+\cs{DTLmaketabspace}
+\end{definition}
+Don't use this command before you load any tab-separated data.
+
To set the separator to a character other than a tab, you need to use
\begin{definition}[\DescribeMacro{\DTLsetseparator}]%
\cs{DTLsetseparator}\marg{character}
@@ -2332,8 +2353,8 @@ The delimiter can be changed using
\cs{DTLsetdelimiter}\marg{character}
\end{definition}
\begin{important}
-Note that spaces count in the default \TeX\ manner (unless you
-specify a whitespace character as the delimiter).
+Note that spaces count in the usual \TeX\ manner and won't be
+trimmed from either side of the separators.
\end{important}
For example, suppose you have a file called \texttt{mydata.csv}
@@ -2951,7 +2972,7 @@ you can then display the database in a table as follows:
\bfseries Score (\%)%
\DTLforeach{scores}{%
\firstname=FirstName,\surname=Surname,\score=Score}{%
-\\
+\\% start new row
\firstname & \surname & \score}
\end{tabular}
\end{table}
@@ -2960,6 +2981,13 @@ This produces \autoref{tab:scores}. (Note that since I didn't
need the student registration number, I didn't bother to
assign a command to the key "StudentNo".)
+\begin{important}
+Note that the new row command \idbs\ has been placed at the
+start of the final argument in the above example. This is necessary
+as placing it at the end of the argument will cause an unwanted row
+at the end of the table. This is a feature of the loop mechanism.
+\end{important}
+
\begin{table}[htbp]
\caption[Student scores (displaying a database in a
table)]{Student scores}\label{tab:scores}
@@ -3794,9 +3822,17 @@ If a database is created using \cs{DTLnewdb}, \cs{DTLnewrow}
and \cs{DTLnewdbentry} (rather than loading it from an ASCII
file), it is possible for some of the entries to have null values
when a value is not assigned to a given key for a given row.
-(Note that a null value is not the same as an empty value. Empty
+It's also possible for data fetched from a~SQL database using
+\app{datatooltk} to contain null values\footnote{You can also use
+the \app{datatooltk} GUI to assign null values.}, but data loaded using
+\cs{DTLloaddb} (or \cs{DTLloadrawdb}) will have empty not null
+values for any blank cells.
+
+\begin{important}
+Note that a null value is not the same as an empty value. Empty
values can be tested using \sty{etoolbox}'s \ics{ifdefempty} or
-similar.)
+similar.
+\end{important}
When you iterate through the database using \cs{DTLforeach}
(described in \autoref{sec:dbforeach}),
@@ -3818,8 +3854,7 @@ This is the null value for a number.
\cs{DTLifnull}\marg{cmd}\marg{true part}\marg{false part}
\end{definition}
This checks if \meta{cmd} is null where \meta{cmd} is a control
-sequence,
-if it is, then \meta{true part}
+sequence, if it is, then \meta{true part}
is done, otherwise \meta{false part} is done. This macro is
illustrated in \autoref{ex:null} below.
@@ -3830,7 +3865,7 @@ This checks if \meta{cmd} is null or empty, where \meta{cmd} is a
control sequence. If it is it does \meta{true part}, otherwise
\meta{false part}.
-\begin{example}{Null Values}{ex:null}
+\begin{example}{Null vs Empty Values}{ex:null}
Consider the following (which creates a database called "emailDB"):
\begin{verbatim}
\DTLnewdb{emailDB}
@@ -3859,7 +3894,8 @@ Consider the following (which creates a database called "emailDB"):
In the above example, the first row of the database contains
an entry with the key "Email2", but the second row doesn't.
Whereas the second row contains an entry with the key "RegNum",
-but the first row doesn't.
+but the first row doesn't. That is, this database has two null (not
+empty) values.
The following code puts the information in a \env{tabular}
environment:
@@ -3961,7 +3997,7 @@ Surname,FirstName,RegNum,Email1,Email2
\end{ttfamily}\par\vskip\baselineskip\noindent
and you load the data from this file using \cs{DTLloaddb}
(defined in \autoref{sec:loaddb}). Now the
-database has no null values, but has an empty value for the
+database has \emph{no null values}, but has an \emph{empty} value for the
key "RegNum" on the first row of the database, and an empty
value for the key "Email2" on the second row of the database.
Now, the following code
@@ -3992,6 +4028,11 @@ produces:\par\vskip\baselineskip\noindent
=Surname,\emailI=Email1,\emailII=Email2,\regnum=RegNum}{\relax
\\\firstname & \surname & \emailI & \DTLifnull{\emailII}{}{\emailII} & \DTLifnull{\regnum}{}{\regnum}}\relax
\end{tabular}
+
+Now the missing entries are simply blank instead of containing
+\emph{Missing}. This is because they're empty not null. In this
+case, you may prefer to use \cs{DTLifnullorempty} instead of
+\cs{DTLifnull}.
\end{example}
\section{Editing Database Rows}
@@ -7121,17 +7162,17 @@ commands defined in this section. You will also need to have the
\sty{pgf}/\sty{tikz} packages installed. The \sty{datapie} package
may be given the following options:
\begin{description}
-\item[{\pkgopt[datapie]{color}}] Colour option (default).
-\item[{\pkgopt[datapie]{gray}}] Grey scale option.
-\item[{\pkgopt[datapie]{rotateinner}}]
+\item[{\pkgopt{color}}] Colour option (default).
+\item[{\pkgopt{gray}}] Grey scale option.
+\item[{\pkgopt{rotateinner}}]
Rotate inner labels so that they are aligned
with the pie chart radial axis.
-\item[{\pkgopt[datapie]{norotateinner}}]
+\item[{\pkgopt{norotateinner}}]
Don't rotate inner labels (default).
-\item[{\pkgopt[datapie]{rotateouter}}]
+\item[{\pkgopt{rotateouter}}]
Rotate outer labels so that they are aligned
with the pie chart radial axis.
-\item[{\pkgopt[datapie]{norotateouter}}]
+\item[{\pkgopt{norotateouter}}]
Don't rotate outer labels (default).
\end{description}
@@ -7168,26 +7209,26 @@ is 2cm.
\item[\csopt{DTLpiechart}{innerratio}]
The distance from the centre of the
pie chart to the point where the inner labels are placed is given
-by this value multiplied by the ratio. The default value is 0.5.
+by this value multiplied by the radius. The default value is 0.5.
\item[\csopt{DTLpiechart}{outerratio}]
The distance from the centre of the
pie chart to the point where the outer labels are placed is given
-by this value multiplied by the ratio. The default value is 1.25.
+by this value multiplied by the radius. The default value is 1.25.
\item[\csopt{DTLpiechart}{cutawayratio}]
The distance from the centre of the pie chart
to the point of cutaway segments is given by this value multiplied
-by the ratio. The default value is 0.2.
+by the radius. The default value is 0.2.
\item[\csopt{DTLpiechart}{inneroffset}]
This is the absolute distance from the centre
of the pie chart to the point where the inner labels are placed.
You should use only one or other of \csopt{DTLpiechart}{innerratio}
and \csopt{DTLpiechart}{inneroffset}, not both. If you also want to
-specify the radius, you must use \csopt{DTLpiechart}{ratio}
+specify the radius, you must use \csopt{DTLpiechart}{radius}
before \csopt{DTLpiechart}{inneroffset}. If omitted, the inner
-offset is obtained from the ratio multiplied by the
+offset is obtained from the radius multiplied by the
\csopt{DTLpiechart}{innerratio} value.
\item[\csopt{DTLpiechart}{outeroffset}]
@@ -7195,9 +7236,9 @@ This is the absolute distance from the centre
of the pie chart to the point where the outer labels are placed.
You should use only one or other of \csopt{DTLpiechart}{outerratio}
and \csopt{DTLpiechart}{outeroffset}, not both. If you also want to
-specify the radius, you must use \csopt{DTLpiechart}{ratio}
+specify the radius, you must use \csopt{DTLpiechart}{radius}
before \csopt{DTLpiechart}{outeroffset}. If omitted, the outer
-offset is obtained from the ratio multiplied by the
+offset is obtained from the radius multiplied by the
\csopt{DTLpiechart}{outerratio} value.
\item[\csopt{DTLpiechart}{cutawayoffset}]
@@ -7237,7 +7278,7 @@ so it can only take the values "true" and "false". If the value is
omitted "true" is assumed. If true, the inner labels are rotated
along the spokes of the pie chart, otherwise the inner labels are not
rotated. There are analogous package options
-\pkgopt[datapie]{rotateinner} and \pkgopt[datapie]{norotateinner}.
+\pkgopt{rotateinner} and \pkgopt{norotateinner}.
\item[\csopt{DTLpiechart}{rotateouter}]
This is a boolean setting, so it can only take
@@ -7245,7 +7286,7 @@ the values "true" and "false". If the value is omitted "true" is
assumed. If true, the outer labels are rotated along the spokes of
the pie chart, otherwise the outer labels are not rotated.
There are analogous package options
-\pkgopt[datapie]{rotateouter} and \pkgopt[datapie]{norotateouter}.
+\pkgopt{rotateouter} and \pkgopt{norotateouter}.
\end{description}
@@ -7520,7 +7561,7 @@ appropriate for apples and green is appropriate for pears, blue
doesn't really correspond to lemons or limes.
\begin{definition}[\DescribeMacro{\DTLdopiesegmentcolor}]%
-\cs{DTLdopiesegmentcolor}\meta{n}
+\cs{DTLdopiesegmentcolor}\marg{n}
\end{definition}
This sets the current text colour to that of the \meta{n}th
segment.
@@ -8468,15 +8509,15 @@ direction.)
The \sty{databar} package options are as follows:
\begin{description}
-\item[{\pkgopt[databar]{color}}] Created coloured bar charts
+\item[{\pkgopt{color}}] Created coloured bar charts
(default).
-\item[{\pkgopt[databar]{gray}}] Created grey scale bar charts.
+\item[{\pkgopt{gray}}] Created grey scale bar charts.
-\item[{\pkgopt[databar]{vertical}}] Created vertical bar charts
+\item[{\pkgopt{vertical}}] Created vertical bar charts
(default).
-\item[{\pkgopt[databar]{horizontal}}] Created horizontal bar charts.
+\item[{\pkgopt{horizontal}}] Created horizontal bar charts.
\end{description}
@@ -8706,9 +8747,9 @@ horizontal bars.
\cs{DTLbarXlabelalign}
\end{definition}
This specifies the text alignment of the lower bar labels. This
-defaults to "left,rotate=-90" if you use the \pkgopt[databar]{vertical}
+defaults to "left,rotate=-90" if you use the \pkgopt{vertical}
package option or the \csopt{DTLbarchart}{verticalbars} setting,
-and defaults to "right" if you use the \pkgopt[databar]{horizontal}
+and defaults to "right" if you use the \pkgopt{horizontal}
package option or the \csopt{DTLbarchart}{verticalbars}"=false"
setting.
@@ -9480,7 +9521,7 @@ before the month name in the bibliography file, e.g.\
\item Once I have loaded and sorted my database, I can then
display it using \cs{DTLbibliography}. This uses the style
-given by the \sty{databib} \pkgopt[databib]{style} package option,
+given by the \sty{databib} \pkgopt{style} package option,
or the \cs{DTLbibliographystyle} command, both of which are
described in \autoref{sec:bibstyle}.
@@ -9519,7 +9560,7 @@ document as follows:
\section{Changing the bibliography style}
\label{sec:bibstyle}
The style of the bibliography produced using \cs{DTLbibliography}
-depends on the \pkgopt[databib]{style}
+depends on the \pkgopt{style}
package option, or can be set using
\begin{definition}[\DescribeMacro{\DTLbibliographystyle}]%
\cs{DTLbibliographystyle}\marg{style}
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/data-raw-psaved.dbtex b/Master/texmf-dist/doc/latex/datatool/samples/data-raw-psaved.dbtex
deleted file mode 100644
index 24c32fd469c..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/data-raw-psaved.dbtex
+++ /dev/null
@@ -1,33 +0,0 @@
-\DTLifdbexists{mydata}%
-{\PackageError{datatool}{Database `mydata'
-already exists}{}%
-\aftergroup\endinput}{}%
-\bgroup\makeatletter
-\dtl@message{Reconstructing database
-`mydata'}%
-\expandafter\global\expandafter
-\newtoks\csname dtlkeys@mydata\endcsname
-\expandafter\global
- \csname dtlkeys@mydata\endcsname={%
-\db@plist@elt@w \db@col@id@w 1\db@col@id@end@ \db@key@id@w Incubation Temperature\db@key@id@end@ \db@type@id@w 1\db@type@id@end@ \db@header@id@w Incubation Temperature\db@header@id@end@ \db@col@id@w 1\db@col@id@end@ \db@plist@elt@end@ \db@plist@elt@w \db@col@id@w 2\db@col@id@end@ \db@key@id@w Incubation Time\db@key@id@end@ \db@type@id@w 1\db@type@id@end@ \db@header@id@w Incubation Time\db@header@id@end@ \db@col@id@w 2\db@col@id@end@ \db@plist@elt@end@ \db@plist@elt@w \db@col@id@w 3\db@col@id@end@ \db@key@id@w Time to Growth\db@key@id@end@ \db@type@id@w 1\db@type@id@end@ \db@header@id@w Time to Growth\db@header@id@end@ \db@col@id@w 3\db@col@id@end@ \db@plist@elt@end@ }
-\expandafter\global\expandafter
-\newtoks\csname dtldb@mydata\endcsname
-\expandafter\global
-\csname dtldb@mydata\endcsname={%
-\db@row@elt@w \db@row@id@w 1\db@row@id@end@ \db@col@id@w 1\db@col@id@end@ \db@col@elt@w 40\db@col@elt@end@ \db@col@id@w 1\db@col@id@end@ \db@col@id@w 2\db@col@id@end@ \db@col@elt@w 120\db@col@elt@end@ \db@col@id@w 2\db@col@id@end@ \db@col@id@w 3\db@col@id@end@ \db@col@elt@w 40\db@col@elt@end@ \db@col@id@w 3\db@col@id@end@ \db@row@id@w 1\db@row@id@end@ \db@row@elt@end@ \db@row@elt@w \db@row@id@w 2\db@row@id@end@ \db@col@id@w 1\db@col@id@end@ \db@col@elt@w 40\db@col@elt@end@ \db@col@id@w 1\db@col@id@end@ \db@col@id@w 2\db@col@id@end@ \db@col@elt@w 90\db@col@elt@end@ \db@col@id@w 2\db@col@id@end@ \db@col@id@w 3\db@col@id@end@ \db@col@elt@w 60\db@col@elt@end@ \db@col@id@w 3\db@col@id@end@ \db@row@id@w 2\db@row@id@end@ \db@row@elt@end@ \db@row@elt@w \db@row@id@w 3\db@row@id@end@ \db@col@id@w 1\db@col@id@end@ \db@col@elt@w 35\db@col@elt@end@ \db@col@id@w 1\db@col@id@end@ \db@col@id@w 2\db@col@id@end@ \db@col@elt@w 180\db@col@elt@end@ \db@col@id@w 2\db@col@id@end@ \db@col@id@w 3\db@col@id@end@ \db@col@elt@w 20\db@col@elt@end@ \db@col@id@w 3\db@col@id@end@ \db@row@id@w 3\db@row@id@end@ \db@row@elt@end@ \db@row@elt@w \db@row@id@w 4\db@row@id@end@ \db@col@id@w 1\db@col@id@end@ \db@col@elt@w 55\db@col@elt@end@ \db@col@id@w 1\db@col@id@end@ \db@col@id@w 2\db@col@id@end@ \db@col@elt@w 190\db@col@elt@end@ \db@col@id@w 2\db@col@id@end@ \db@col@id@w 3\db@col@id@end@ \db@col@elt@w 40\db@col@elt@end@ \db@col@id@w 3\db@col@id@end@ \db@row@id@w 4\db@row@id@end@ \db@row@elt@end@ }
-\expandafter\global
- \expandafter\newcount\csname dtlrows@mydata\endcsname
-\expandafter\global
- \csname dtlrows@mydata\endcsname=4\relax
-\expandafter\global
- \expandafter\newcount\csname dtlcols@mydata\endcsname
-\expandafter\global
- \csname dtlcols@mydata\endcsname=3\relax
-\expandafter
- \gdef\csname dtl@ci@mydata@Incubation Temperature\endcsname{1}%
-\expandafter
- \gdef\csname dtl@ci@mydata@Incubation Time\endcsname{2}%
-\expandafter
- \gdef\csname dtl@ci@mydata@Time to Growth\endcsname{3}%
-\egroup
-\def\dtllastloadeddb{mydata}
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/data-raw-saved.dbtex b/Master/texmf-dist/doc/latex/datatool/samples/data-raw-saved.dbtex
deleted file mode 100644
index c4eca6df538..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/data-raw-saved.dbtex
+++ /dev/null
@@ -1,167 +0,0 @@
-\DTLifdbexists{mydata}%
-{\PackageError{datatool}{Database `mydata'
-already exists}{}%
-\aftergroup\endinput}{}%
-\bgroup\makeatletter
-\dtl@message{Reconstructing database
-`mydata'}%
-\expandafter\global\expandafter
-\newtoks\csname dtlkeys@mydata\endcsname
-\expandafter\global
- \csname dtlkeys@mydata\endcsname={%
-%
-\db@plist@elt@w %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@key@id@w Incubation Temperature%
-\db@key@id@end@ %
-\db@type@id@w 1%
-\db@type@id@end@ %
-\db@header@id@w Incubation Temperature%
-\db@header@id@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@plist@elt@end@ %
-\db@plist@elt@w %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@key@id@w Incubation Time%
-\db@key@id@end@ %
-\db@type@id@w 1%
-\db@type@id@end@ %
-\db@header@id@w Incubation Time%
-\db@header@id@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@plist@elt@end@ %
-\db@plist@elt@w %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@key@id@w Time to Growth%
-\db@key@id@end@ %
-\db@type@id@w 1%
-\db@type@id@end@ %
-\db@header@id@w Time to Growth%
-\db@header@id@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@plist@elt@end@
-}%
-\expandafter\global\expandafter
-\newtoks\csname dtldb@mydata\endcsname
-\expandafter\global
-\csname dtldb@mydata\endcsname={%
-%
-\db@row@elt@w %
-\db@row@id@w 1%
-\db@row@id@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@col@elt@w 40%
-\db@col@elt@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@col@elt@w 120%
-\db@col@elt@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@col@elt@w 40%
-\db@col@elt@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@row@id@w 1%
-\db@row@id@end@ %
-\db@row@elt@end@ %
-\db@row@elt@w %
-\db@row@id@w 2%
-\db@row@id@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@col@elt@w 40%
-\db@col@elt@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@col@elt@w 90%
-\db@col@elt@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@col@elt@w 60%
-\db@col@elt@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@row@id@w 2%
-\db@row@id@end@ %
-\db@row@elt@end@ %
-\db@row@elt@w %
-\db@row@id@w 3%
-\db@row@id@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@col@elt@w 35%
-\db@col@elt@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@col@elt@w 180%
-\db@col@elt@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@col@elt@w 20%
-\db@col@elt@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@row@id@w 3%
-\db@row@id@end@ %
-\db@row@elt@end@ %
-\db@row@elt@w %
-\db@row@id@w 4%
-\db@row@id@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@col@elt@w 55%
-\db@col@elt@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@col@elt@w 190%
-\db@col@elt@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@col@elt@w 40%
-\db@col@elt@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@row@id@w 4%
-\db@row@id@end@ %
-\db@row@elt@end@
-}%
-\expandafter\global
- \expandafter\newcount\csname dtlrows@mydata\endcsname
-\expandafter\global
- \csname dtlrows@mydata\endcsname=4\relax
-\expandafter\global
- \expandafter\newcount\csname dtlcols@mydata\endcsname
-\expandafter\global
- \csname dtlcols@mydata\endcsname=3\relax
-\expandafter
- \gdef\csname dtl@ci@mydata@Incubation Temperature\endcsname{1}%
-\expandafter
- \gdef\csname dtl@ci@mydata@Incubation Time\endcsname{2}%
-\expandafter
- \gdef\csname dtl@ci@mydata@Time to Growth\endcsname{3}%
-\egroup
-\def\dtllastloadeddb{mydata}
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/data.csv b/Master/texmf-dist/doc/latex/datatool/samples/data.csv
deleted file mode 100644
index d04c806f912..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/data.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-Incubation Temperature,Incubation Time,Time to Growth
-40,120,40
-40,90,60
-35,180,20
-55,190,40
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/data2.csv b/Master/texmf-dist/doc/latex/datatool/samples/data2.csv
deleted file mode 100644
index 5225a7b75e1..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/data2.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-40,120,40
-40,90,60
-35,180,20
-55,190,40
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/exp25a.csv b/Master/texmf-dist/doc/latex/datatool/samples/exp25a.csv
deleted file mode 100644
index 66f1ccbff1b..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/exp25a.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-Time,Log Count
-0,3.75
-23,3.9
-45,4.0
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/exp25b.csv b/Master/texmf-dist/doc/latex/datatool/samples/exp25b.csv
deleted file mode 100644
index 58e1061e732..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/exp25b.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-Time,Log Count
-0,3.6
-60,3.8
-120,4.0
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/exp30a.csv b/Master/texmf-dist/doc/latex/datatool/samples/exp30a.csv
deleted file mode 100644
index bac369ecea7..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/exp30a.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-Time,Log Count
-0,3.73
-23,3.67
-60,4.9
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/fruit.csv b/Master/texmf-dist/doc/latex/datatool/samples/fruit.csv
deleted file mode 100644
index 9bc12a154c6..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/fruit.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-Name,Value
-"Apples",30
-"Pears",25
-"lemons,limes",40.5
-"Peaches",34.5
-"Cherries",20
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/groupa.csv b/Master/texmf-dist/doc/latex/datatool/samples/groupa.csv
deleted file mode 100644
index a64f6560704..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/groupa.csv
+++ /dev/null
@@ -1,11 +0,0 @@
-Height,Weight
-1.54,48.0
-1.55,45.4
-1.56,58.0
-1.56,50.2
-1.57,46.0
-1.58,48.3
-1.59,56.5
-1.59,58.1
-1.60,60.9
-1.62,56.3
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/groupb.csv b/Master/texmf-dist/doc/latex/datatool/samples/groupb.csv
deleted file mode 100644
index 6a6304f2e5c..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/groupb.csv
+++ /dev/null
@@ -1,11 +0,0 @@
-Height,Weight
-1.54,48.4
-1.54,42.0
-1.55,64.0
-1.56,58.2
-1.56,49.0
-1.57,40.3
-1.58,51.5
-1.58,63.1
-1.59,74.9
-1.59,59.3
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/index.csv b/Master/texmf-dist/doc/latex/datatool/samples/index.csv
deleted file mode 100644
index 87317a48c82..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/index.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-File,Temperature,NaCl,pH
-exp25a.csv,25,4.7,0.5
-exp25b.csv,25,4.8,1.5
-exp30a.csv,30,5.12,4.5
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/mydata.csv b/Master/texmf-dist/doc/latex/datatool/samples/mydata.csv
deleted file mode 100644
index 69a0717c169..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/mydata.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-FirstName,Surname,Score
-Jane,Brown,75
-John,"Smith, Jr",68
-Z\"oe,Adams,52
-Andy,Brown,42
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/mynewdata.csv b/Master/texmf-dist/doc/latex/datatool/samples/mynewdata.csv
deleted file mode 100644
index 51d773964cf..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/mynewdata.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-"Product","Quantity","Price","Description"
-Book,3,\$10.99,An interesting book\DTLpar(or so I thought!)
-DVD,1,\$12.55,A bit boring
-CD,2,\$5.99,My favourite!
-Tape,0,\$2.00,
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/onecol.csv b/Master/texmf-dist/doc/latex/datatool/samples/onecol.csv
deleted file mode 100644
index ecaff40a380..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/onecol.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-Column
-A
-B
-C
-D
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/plotdata.csv b/Master/texmf-dist/doc/latex/datatool/samples/plotdata.csv
deleted file mode 100644
index 2823355ba51..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/plotdata.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-x,y
-0,0
-1,1
-2,0.5
-1.5,0.3
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/polygon.csv b/Master/texmf-dist/doc/latex/datatool/samples/polygon.csv
deleted file mode 100644
index 326dfd5f1be..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/polygon.csv
+++ /dev/null
@@ -1,6 +0,0 @@
-x,y
-0.5,3
-2,1
-5,1.2
-6.5,4
-2.3,5
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/profits.csv b/Master/texmf-dist/doc/latex/datatool/samples/profits.csv
deleted file mode 100644
index 474c1dd41a3..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/profits.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-Year,Profit
-2000,"\pounds 2,525"
-2001,"\pounds 3,752"
-2002,"-\pounds 1,520"
-2003,"\pounds 1,270"
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/rawdata.csv b/Master/texmf-dist/doc/latex/datatool/samples/rawdata.csv
deleted file mode 100644
index e5d0235539c..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/rawdata.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-Product,Cost,Comments
-Fruit & Veg,£0.50,Contains special characters # { } ^ _ ~ % manœuvre
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/rawdata2.csv b/Master/texmf-dist/doc/latex/datatool/samples/rawdata2.csv
deleted file mode 100644
index 3c93ef607b7..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/rawdata2.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-Fruit & Veg,£0.50
-Cake & Biscuits,£0.80
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/rawdata3.csv b/Master/texmf-dist/doc/latex/datatool/samples/sample-autokeys-data.csv
index 3272841e387..3272841e387 100644
--- a/Master/texmf-dist/doc/latex/datatool/samples/rawdata3.csv
+++ b/Master/texmf-dist/doc/latex/datatool/samples/sample-autokeys-data.csv
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample-autokeys.pdf b/Master/texmf-dist/doc/latex/datatool/samples/sample-autokeys.pdf
index c11dc191e5f..ad495330892 100644
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample-autokeys.pdf
+++ b/Master/texmf-dist/doc/latex/datatool/samples/sample-autokeys.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample-autokeys.tex b/Master/texmf-dist/doc/latex/datatool/samples/sample-autokeys.tex
index 48df7a814fb..30e36a121f1 100644
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample-autokeys.tex
+++ b/Master/texmf-dist/doc/latex/datatool/samples/sample-autokeys.tex
@@ -4,7 +4,7 @@
\usepackage{datatool}
\begin{document}
-\DTLloadrawdb[autokeys]{data}{rawdata3.csv}
+\DTLloadrawdb[autokeys]{data}{sample-autokeys-data.csv}
\DTLdisplaydb{data}
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample-barchart.pdf b/Master/texmf-dist/doc/latex/datatool/samples/sample-barchart.pdf
index 08aaf9dbe91..aaf21393f64 100644
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample-barchart.pdf
+++ b/Master/texmf-dist/doc/latex/datatool/samples/sample-barchart.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample-datatooltk.pdf b/Master/texmf-dist/doc/latex/datatool/samples/sample-datatooltk.pdf
index f866d058548..3f82014ed9c 100644
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample-datatooltk.pdf
+++ b/Master/texmf-dist/doc/latex/datatool/samples/sample-datatooltk.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample-dict.pdf b/Master/texmf-dist/doc/latex/datatool/samples/sample-dict.pdf
index e8b6521595d..533efaba595 100644
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample-dict.pdf
+++ b/Master/texmf-dist/doc/latex/datatool/samples/sample-dict.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample-europecv-bib.pdf b/Master/texmf-dist/doc/latex/datatool/samples/sample-europecv-bib.pdf
index 9fe0a63135d..45461691083 100644
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample-europecv-bib.pdf
+++ b/Master/texmf-dist/doc/latex/datatool/samples/sample-europecv-bib.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample-gidx.pdf b/Master/texmf-dist/doc/latex/datatool/samples/sample-gidx.pdf
index 8b59b712a32..a1d0cbdd44f 100644
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample-gidx.pdf
+++ b/Master/texmf-dist/doc/latex/datatool/samples/sample-gidx.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample-glossary.pdf b/Master/texmf-dist/doc/latex/datatool/samples/sample-glossary.pdf
index 2fe5fb0c6d3..c2c7ed49280 100644
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample-glossary.pdf
+++ b/Master/texmf-dist/doc/latex/datatool/samples/sample-glossary.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample-index.pdf b/Master/texmf-dist/doc/latex/datatool/samples/sample-index.pdf
index 831c1695e0d..21697f30670 100644
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample-index.pdf
+++ b/Master/texmf-dist/doc/latex/datatool/samples/sample-index.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample-mail-merge.pdf b/Master/texmf-dist/doc/latex/datatool/samples/sample-mail-merge.pdf
index a5296a0191b..57406d47eab 100644
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample-mail-merge.pdf
+++ b/Master/texmf-dist/doc/latex/datatool/samples/sample-mail-merge.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample-piechart.pdf b/Master/texmf-dist/doc/latex/datatool/samples/sample-piechart.pdf
index d43eb8defee..f431b620aaf 100644
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample-piechart.pdf
+++ b/Master/texmf-dist/doc/latex/datatool/samples/sample-piechart.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample-sort.pdf b/Master/texmf-dist/doc/latex/datatool/samples/sample-sort.pdf
index 28fee46c6ea..1cf45c10e0e 100644
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample-sort.pdf
+++ b/Master/texmf-dist/doc/latex/datatool/samples/sample-sort.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample-student-scores.pdf b/Master/texmf-dist/doc/latex/datatool/samples/sample-student-scores.pdf
index ca3fd9277fe..b73bfa7ef1f 100644
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample-student-scores.pdf
+++ b/Master/texmf-dist/doc/latex/datatool/samples/sample-student-scores.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample-two-per-row.pdf b/Master/texmf-dist/doc/latex/datatool/samples/sample-two-per-row.pdf
index b8a6000b12a..5492735022c 100644
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample-two-per-row.pdf
+++ b/Master/texmf-dist/doc/latex/datatool/samples/sample-two-per-row.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample3.csv b/Master/texmf-dist/doc/latex/datatool/samples/sample3.csv
deleted file mode 100644
index 69fd4c6c5a2..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample3.csv
+++ /dev/null
@@ -1,4 +0,0 @@
-File,Caption
-circle.png,A Circle
-rectangle.png,A Rectangle
-triangle.png,A Triangle
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/sample4.csv b/Master/texmf-dist/doc/latex/datatool/samples/sample4.csv
deleted file mode 100644
index 6a6b89984be..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/sample4.csv
+++ /dev/null
@@ -1,5 +0,0 @@
-Name,Assignment 1,Assignment 2,Total
-A. Smith,80,70,150
-B. Jones,60,80,140
-J. Doe,85,75,160
-,75,75,150
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/scores2.csv b/Master/texmf-dist/doc/latex/datatool/samples/scores2.csv
deleted file mode 100644
index 4ef8fd6f50b..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/scores2.csv
+++ /dev/null
@@ -1,10 +0,0 @@
-FirstName,Surname,StudentNo,Score
-John,"Smith, Jr",102689,68
-Jane,Brown,102647,75
-Andy,Brown,103569,42
-Z\"oe,Adams,105987,52
-Roger,Brady,106872,58
-Clare,Verdon,104356,45
-Henk,\switchargs{Mere}{van der },106789,71
-Jos,\switchargs{Mere}{de la },104256,58
-
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/semesterscores.csv b/Master/texmf-dist/doc/latex/datatool/samples/semesterscores.csv
deleted file mode 100644
index 059653cca47..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/semesterscores.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-FirstName,Surname,StudentNumber,Assignment 1,Assignment 2,Assignment 3
-John,"Smith, Jr",102689,68,57,72
-Jane,Brown,102647,75,84,80
-Andy,Brown,103569,42,52,54
-Z\"oe,Adams,105987,52,48,57
-Roger,Brady,106872,58,60,62
-Clare,Vernon,104356,45,50,48
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/students.csv b/Master/texmf-dist/doc/latex/datatool/samples/students.csv
deleted file mode 100644
index a97af0e0532..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/students.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-FirstName,Surname,StudentNumber,Gender,Parent
-John,"Smith, Jr",102689,M,Mr and Mrs Smith
-Jane,Brown,102647,F,Ms Brown
-Andy,Brown,103569,male,Mr Brown and Miss Sepia
-Z\"oe,Adams,105987,f,Mr and Mrs Adams
-Roger,Brady,106872,m,Mrs Brady
-Clare,Vernon,104356,female,Mr Vernon
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/studentscores.csv b/Master/texmf-dist/doc/latex/datatool/samples/studentscores.csv
deleted file mode 100644
index bbc0b6fe009..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/studentscores.csv
+++ /dev/null
@@ -1,7 +0,0 @@
-FirstName,Surname,StudentNumber,Score
-John,"Smith, Jr",102689,68
-Jane,Brown,102647,75
-Andy,Brown,103569,42
-Z\"oe,Adams,105987,52
-Roger,Brady,106872,58
-Clare,Vernon,104356,45
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/test-export-from-calc.csv b/Master/texmf-dist/doc/latex/datatool/samples/test-export-from-calc.csv
deleted file mode 100644
index 9b925647d0b..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/test-export-from-calc.csv
+++ /dev/null
@@ -1,3 +0,0 @@
-"Header 1","Header 2"
-"Some text","Some “quoted text”"
-"More text","More ""quoted text"""
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/test-missing-some-headers.csv b/Master/texmf-dist/doc/latex/datatool/samples/test-missing-some-headers.csv
deleted file mode 100644
index ace933f2d08..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/test-missing-some-headers.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-Header A,Header B,,Header C,,Header D
-1,2,3,4,5,6
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/test-rawtex.dbtex b/Master/texmf-dist/doc/latex/datatool/samples/test-rawtex.dbtex
deleted file mode 100644
index 06ef7022ac4..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/test-rawtex.dbtex
+++ /dev/null
@@ -1,167 +0,0 @@
-% saved by datatooltk Sun Mar 10 15:36:03 2013
-\DTLifdbexists{mydata}%
-{\PackageError{datatool}{Database `mydata'
-already exists}{}%
-\aftergroup\endinput}{}%
-\bgroup\makeatletter
-\dtl@message{Reconstructing database
-`mydata'}%
-\expandafter\global\expandafter
-\newtoks\csname dtlkeys@mydata\endcsname
-\expandafter\global
- \csname dtlkeys@mydata\endcsname={%
-%
-\db@plist@elt@w %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@key@id@w temperature%
-\db@key@id@end@ %
-\db@type@id@w 2%
-\db@type@id@end@ %
-\db@header@id@w Incubation Temperature%
-\db@header@id@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@plist@elt@end@
-\db@plist@elt@w %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@key@id@w time%
-\db@key@id@end@ %
-\db@type@id@w 1%
-\db@type@id@end@ %
-\db@header@id@w Incubation Time%
-\db@header@id@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@plist@elt@end@
-\db@plist@elt@w %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@key@id@w T2G%
-\db@key@id@end@ %
-\db@type@id@w 1%
-\db@type@id@end@ %
-\db@header@id@w Time to Growth%
-\db@header@id@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@plist@elt@end@
-}%
-\expandafter\global\expandafter
-\newtoks\csname dtldb@mydata\endcsname
-\expandafter\global
-\csname dtldb@mydata\endcsname={%
-%
-\db@row@elt@w %
-\db@row@id@w 1%
-\db@row@id@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@col@elt@w 40%
-\db@col@elt@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@col@elt@w 120%
-\db@col@elt@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@col@elt@w 40%
-\db@col@elt@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@row@id@w 1%
-\db@row@id@end@ %
-\db@row@elt@end@
-\db@row@elt@w %
-\db@row@id@w 2%
-\db@row@id@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@col@elt@w 40%
-\db@col@elt@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@col@elt@w 90%
-\db@col@elt@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@col@elt@w 60%
-\db@col@elt@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@row@id@w 2%
-\db@row@id@end@ %
-\db@row@elt@end@
-\db@row@elt@w %
-\db@row@id@w 3%
-\db@row@id@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@col@elt@w 35%
-\db@col@elt@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@col@elt@w 180%
-\db@col@elt@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@col@elt@w 20%
-\db@col@elt@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@row@id@w 3%
-\db@row@id@end@ %
-\db@row@elt@end@
-\db@row@elt@w %
-\db@row@id@w 4%
-\db@row@id@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@col@elt@w 55%
-\db@col@elt@end@ %
-\db@col@id@w 1%
-\db@col@id@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@col@elt@w 190%
-\db@col@elt@end@ %
-\db@col@id@w 2%
-\db@col@id@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@col@elt@w 40%
-\db@col@elt@end@ %
-\db@col@id@w 3%
-\db@col@id@end@ %
-\db@row@id@w 4%
-\db@row@id@end@ %
-\db@row@elt@end@
-}%
-\expandafter\global
- \expandafter\newcount\csname dtlrows@mydata\endcsname
-\expandafter\global
- \csname dtlrows@mydata\endcsname=4\relax
-\expandafter\global
- \expandafter\newcount\csname dtlcols@mydata\endcsname
-\expandafter\global
- \csname dtlcols@mydata\endcsname=3\relax
-\expandafter
- \gdef\csname dtl@ci@mydata@Incubation Temperature\endcsname{1}%
-\expandafter
- \gdef\csname dtl@ci@mydata@Incubation Time\endcsname{2}%
-\expandafter
- \gdef\csname dtl@ci@mydata@Time to Growth\endcsname{3}%
-\egroup
diff --git a/Master/texmf-dist/doc/latex/datatool/samples/test-scores.csv b/Master/texmf-dist/doc/latex/datatool/samples/test-scores.csv
deleted file mode 100644
index ebdf3168aee..00000000000
--- a/Master/texmf-dist/doc/latex/datatool/samples/test-scores.csv
+++ /dev/null
@@ -1,10 +0,0 @@
-FirstName,Surname,StudentNo,Assignment1,Assignment2
-John,"Smith, Jr",102689,68,60
-Jane,Brown,102647,75,80
-Andy,Brown,103569,42,50
-Z\"oe,Adams,105987,52,61
-Roger,Brady,106872,58,56
-%Clare,Verdon,104356,45,50
-Henk,\switchargs{Mere}{van der },106789,71,80
-Jos,\switchargs{Mere}{de la },104256,58,60
-
diff --git a/Master/texmf-dist/source/latex/datatool/datatool.dtx b/Master/texmf-dist/source/latex/datatool/datatool.dtx
index 5a7334aacf8..23268df6614 100644
--- a/Master/texmf-dist/source/latex/datatool/datatool.dtx
+++ b/Master/texmf-dist/source/latex/datatool/datatool.dtx
@@ -1,9 +1,12 @@
%\iffalse
% datatool.dtx generated using makedtx version 1.1 (c) Nicola Talbot
% Command line args:
+% -doc "datatool-manual.tex"
+% -codetitle ""
+% -comment "databib\.bst"
% -macrocode "databib\.bst"
+% -author "Nicola Talbot"
% -setambles "databib\.bst=>\nopreamble\nopostamble"
-% -comment "databib\.bst"
% -src "datatool-base.sty\Z=>datatool-base.sty"
% -src "datatool-fp.sty\Z=>datatool-fp.sty"
% -src "datatool-pgfmath.sty\Z=>datatool-pgfmath.sty"
@@ -15,11 +18,8 @@
% -src "dataplot.sty\Z=>dataplot.sty"
% -src "person.sty\Z=>person.sty"
% -src "databib.bst\Z=>databib.bst"
-% -doc "datatool-manual.tex"
-% -author "Nicola Talbot"
-% -codetitle ""
% datatool
-% Created on 2014/6/10 11:44
+% Created on 2015/7/11 16:07
%\fi
%\iffalse
%<*package>
@@ -42,7 +42,7 @@
%\fi
% \iffalse
% Doc-Source file to use with LaTeX2e
-% Copyright (C) 2014 Nicola Talbot, all rights reserved.
+% Copyright (C) 2015 Nicola Talbot, all rights reserved.
% \fi
% \iffalse
%<*driver>
@@ -66,7 +66,7 @@ datatool.dtx
\doxitem{Counter}{counter}{counters}
\doxitem{Option}{option}{package options}
-\CheckSum{23135}
+\CheckSum{23161}
\RecordChanges
\PageIndex
@@ -79,11 +79,11 @@ datatool.dtx
%\fi
%\MakeShortVerb{"}
%
-%\title{Documented Code for datatool v2.22}
+%\title{Documented Code for datatool v2.23}
%\author{Nicola L. C. Talbot\\
%\url{http://www.dickimaw-books.com/}}
%
-%\date{2014-06-10}
+%\date{2015-07-11}
%\maketitle
%
%\pagenumbering{roman}
@@ -117,7 +117,7 @@ datatool.dtx
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datatool-base}[2014/06/10 v2.22 (NLCT)]
+\ProvidesPackage{datatool-base}[2015/07/11 v2.23 (NLCT)]
% \end{macrocode}
% Required packages:
% \begin{macrocode}
@@ -2802,10 +2802,10 @@ datatool.dtx
{%
\DTLsubstituteall{\@dtl@argA}{ }{\space }%
\DTLsubstituteall{\@dtl@argB}{ }{\space }%
- \expandafter\dtl@getfirst\@dtl@argA\end
+ \expandafter\dtl@getfirst\@dtl@argA\end@dtl@getfirst
\let\dtl@firstA=\dtl@first
\let\dtl@restA=\dtl@rest
- \expandafter\dtl@getfirst\@dtl@argB\end
+ \expandafter\dtl@getfirst\@dtl@argB\end@dtl@getfirst
\let\dtl@firstB=\dtl@first
\let\dtl@restB=\dtl@rest
\expandafter\dtl@ifsingle\expandafter{\dtl@firstA}{%
@@ -2881,15 +2881,16 @@ datatool.dtx
%\begin{macro}{\dtl@getfirst}
% Gets the first object, and stores in \cs{dtl@first}. The remainder
% is stored in \cs{dtl@rest}.
+%\changes{2.23}{2015-07-11}{changed \cs{end} to \cs{end@dtl@getfirst}}
% \begin{macrocode}
-\def\dtl@getfirst#1#2\end{%
+\def\dtl@getfirst#1#2\end@dtl@getfirst{%
\def\dtl@first{#1}%
\ifdefempty{\dtl@first}%
{%
\def\dtl@rest{#2}%
}%
{%
- \dtl@ifsingle{#1}{\def\dtl@rest{#2}}{\dtl@getfirst#1#2\end}%
+ \dtl@ifsingle{#1}{\def\dtl@rest{#2}}{\dtl@getfirst#1#2\end@dtl@getfirst}%
}%
}
% \end{macrocode}
@@ -3042,10 +3043,10 @@ datatool.dtx
% \end{macrocode}
% Get the first object and the remaining text.
% \begin{macrocode}
- \expandafter\dtl@getfirst\@dtl@argA\end
+ \expandafter\dtl@getfirst\@dtl@argA\end@dtl@getfirst
\let\dtl@firstA=\dtl@first
\let\dtl@restA=\dtl@rest
- \expandafter\dtl@getfirst\@dtl@argB\end
+ \expandafter\dtl@getfirst\@dtl@argB\end@dtl@getfirst
\let\dtl@firstB=\dtl@first
\let\dtl@restB=\dtl@rest
% \end{macrocode}
@@ -4032,14 +4033,18 @@ datatool.dtx
\dtl@donext
}
\newcommand*{\@dtl@testifsubstring}[2]{%
- \def\@dtl@argA{#1}%
- \def\@dtl@argB{#2}%
- \ifdefempty{\@dtl@argB}%
+% \end{macrocode}
+%\changes{2.23}{2015-07-11}{bug fix: temp control sequences clash with
+%\cs{@dtl@teststartswith}}
+% \begin{macrocode}
+ \def\@dtl@subs@argA{#1}%
+ \def\@dtl@subs@argB{#2}%
+ \ifdefempty{\@dtl@subs@argB}%
{%
\@dtl@conditiontrue
}%
{%
- \ifdefempty{\@dtl@argA}%
+ \ifdefempty{\@dtl@subs@argA}%
{%
\@dtl@conditionfalse
}%
@@ -4047,12 +4052,14 @@ datatool.dtx
\@dtl@teststartswith{#1}{#2}%
\if@dtl@condition
\else
- \expandafter\dtl@getfirst\@dtl@argA\end
- \expandafter\dtl@ifsingle\expandafter{\dtl@first}{%
+ \dtl@getfirst#1\end@dtl@getfirst
+ \expandafter\dtl@ifsingle\expandafter{\dtl@first}%
+ {%
\expandafter\@dtl@testifsubstring\expandafter{\dtl@rest}{#2}%
- }{%
+ }%
+ {%
\protected@edef\@dtl@donext{\noexpand\@dtl@testifsubstring
- {\expandonce\dtl@first\expandonce\dtl@rest}{\expandonce\@dtl@argB}}%
+ {\expandonce\dtl@first\expandonce\dtl@rest}{\expandonce\@dtl@subs@argB}}%
\@dtl@donext
}%
\fi
@@ -4128,13 +4135,13 @@ datatool.dtx
\@dtl@conditiontrue
}%
{%
- \expandafter\dtl@getfirst\@dtl@argA\end
+ \expandafter\dtl@getfirst\@dtl@argA\end@dtl@getfirst
% \end{macrocode}
% Get the first object and the remaining text.
% \begin{macrocode}
\let\dtl@firstA=\dtl@first
\let\dtl@restA=\dtl@rest
- \expandafter\dtl@getfirst\@dtl@argB\end
+ \expandafter\dtl@getfirst\@dtl@argB\end@dtl@getfirst
\let\dtl@firstB=\dtl@first
\let\dtl@restB=\dtl@rest
% \end{macrocode}
@@ -4633,6 +4640,26 @@ datatool.dtx
% \end{macrocode}
%\end{macro}
%
+%\begin{macro}{\DTLisinlist}
+% Tests if first argument starts with second argument.
+%\changes{2.23}{2015-07-11}{new}
+% \begin{macrocode}
+\newcommand*{\DTLisinlist}[2]{%
+ \TE@throw\noexpand\dtl@testinlist{#1}{#2}%
+ \noexpand\if@dtl@condition
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\dtl@testinlist}
+%\changes{2.23}{2015-07-11}{new}
+% \begin{macrocode}
+\newcommand*{\dtl@testinlist}[2]{%
+ \DTLifinlist{#1}{#2}{\@dtl@conditiontrue}{\@dtl@conditionfalse}%
+}
+% \end{macrocode}
+%\end{macro}
+%
%\begin{macro}{\dtl@testnumclosedbetween}
% Command to test if first number lies between second and third
% numbers. (End points included, all arguments are fixed point
@@ -5205,7 +5232,7 @@ datatool.dtx
% Definitions of fixed-point commands that use the \sty{fp} package.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datatool-fp}[2013/08/29 v2.17 (NLCT)]
+\ProvidesPackage{datatool-fp}[2015/07/11 v2.23 (NLCT)]
% \end{macrocode}
% Required packages:
% \begin{macrocode}
@@ -5494,7 +5521,7 @@ datatool.dtx
% Definitions of fixed-point commands that use the \sty{pgfmath} package.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datatool-pgfmath}[2013/08/29 v2.17 (NLCT)]
+\ProvidesPackage{datatool-pgfmath}[2015/07/11 v2.23 (NLCT)]
% \end{macrocode}
% Required packages:
% \begin{macrocode}
@@ -5751,7 +5778,7 @@ datatool.dtx
%\section{Package Declaration}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datatool}[2014/06/10 v2.22 (NLCT)]
+\ProvidesPackage{datatool}[2015/07/11 v2.23 (NLCT)]
% \end{macrocode}
% Load required packages:
% \begin{macrocode}
@@ -5762,9 +5789,7 @@ datatool.dtx
\RequirePackage{etoolbox}
% \end{macrocode}
%\changes{2.0}{2009 February 27}{added etex as a required package}
-% \begin{macrocode}
-\RequirePackage{etex}
-% \end{macrocode}
+%\changes{??}{??}{removed etex as a required package}
%
%\section{Package Options}
%\begin{macro}{\@dtl@separator}
@@ -5789,17 +5814,26 @@ datatool.dtx
}
% \end{macrocode}
%\end{macro}
+\begingroup
+\catcode`\^^I12
%\begin{macro}{\DTLsettabseparator}
%\cs{DTLsettabseparator} makes it easier to set a tab separator.
%\changes{2.10}{2012-07-18}{changed tab character to
%\texttt{\textasciicircum\textasciicircum I}}
% \begin{macrocode}
-\begingroup
-\catcode`\^^I12
\gdef\DTLsettabseparator{%
\catcode`\^^I12
\DTLsetseparator{^^I}%
}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTLmaketabspace}
+%\changes{2.23}{2015-07-11}{restores tab catcode to 10}
+% \begin{macrocode}
+\gdef\DTLmaketabspace{%
+ \catcode`\^^I10\relax
+}
\endgroup
% \end{macrocode}
%\end{macro}
@@ -11390,9 +11424,11 @@ datatool.dtx
%
%\begin{macro}{\@DTLsort}
% Unstarred (case sensitive) version.
+%\changes{2.23}{2015-07-11}{bug fix: replaced \cs{dtlicompare} with
+%\cs{dtlcompare}}
% \begin{macrocode}
\newcommand{\@DTLsort}[3][]{%
- \dtlsort[#1]{#2}{#3}{\dtlicompare}%
+ \dtlsort[#1]{#2}{#3}{\dtlcompare}%
}
% \end{macrocode}
%\end{macro}
@@ -12279,12 +12315,6 @@ datatool.dtx
% \begin{macrocode}
{%
% \end{macrocode}
-% \TeX\ automatically breaks the line every 80 characters when
-% writing to a file. This may break a control sequence. This is a
-% patch that puts the row and column markers on a new line.
-% (Problems may still occur if the database contains very long
-% entries, in which case try loading \sty{morewrites} before
-% \sty{datatool}.)
% \begin{macrocode}
\def\db@row@elt@w{\expandafter\@gobble\string\%^^J\string\db@row@elt@w\space}%
\def\db@row@elt@end@{\expandafter\@gobble\string\%^^J\string\db@row@elt@end@\space}%
@@ -13110,17 +13140,33 @@ datatool.dtx
% Start trimming
%\changes{2.10}{2012-07-18}{added check in the event there's no
%trailing space}
+%\changes{2.23}{2015-07-11}{fixed bug in the event that either argument is
+%in a group}
% \begin{macrocode}
\long\def\@dtl@starttrim#1#2{%
- \def\@dtl@tmpB{#2}%
+ \dtl@ifsingle{#2}%
+ {%
+ \def\@dtl@tmpB{#2}%
+ }%
+ {%
+ \def\@dtl@tmpB{{#2}}%
+ }%
\ifx\par#1%
- \def\@dtl@dotrim{\@dtl@trim{} #2}%
+ \edef\@dtl@dotrim{\noexpand\@dtl@trim{} \expandonce\@dtl@tmpB}%
\else
+ \dtl@ifsingle{#1}%
+ {%
+ \def\@dtl@tmpA{#1}%
+ }%
+ {%
+ \def\@dtl@tmpA{{#1}}%
+ }%
\ifx\@dtl@tmpB\@nnil
\def\@dtl@dotrim{}%
- \def\@dtl@trmstr{#1}%
+ \let\@dtl@trmstr\@dtl@tmpA
\else
- \def\@dtl@dotrim{\@dtl@trim#1#2}%
+ \edef\@dtl@dotrim{\noexpand\@dtl@trim
+ \expandonce\@dtl@tmpA\expandonce\@dtl@tmpB}%
\fi
\fi
\@dtl@dotrim
@@ -13325,7 +13371,7 @@ datatool.dtx
% Declare package:
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datagidx}[2014/01/17 v2.19 (NLCT)]
+\ProvidesPackage{datagidx}[2015/07/11 v2.23 (NLCT)]
% \end{macrocode}
% Required packages:
% \begin{macrocode}
@@ -19234,7 +19280,7 @@ datatool.dtx
%\section{Package Declaration}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{databib}[2014/06/10 v2.22 (NLCT)]
+\ProvidesPackage{databib}[2015/07/11 v2.23 (NLCT)]
% \end{macrocode}
% Load required packages:
% \begin{macrocode}
@@ -22157,7 +22203,7 @@ already exists}{}}}}
% Declare package:
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{databar}[2013/06/28 v2.14 (NLCT)]
+\ProvidesPackage{databar}[2015/07/11 v2.23 (NLCT)]
% \end{macrocode}
% Require \sty{xkeyval} package
% \begin{macrocode}
@@ -23464,7 +23510,7 @@ already exists}{}}}}
% Declare package:
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datapie}[2013/06/28 v2.14 (NLCT)]
+\ProvidesPackage{datapie}[2015/07/11 v2.23 (NLCT)]
% \end{macrocode}
% Require \sty{xkeyval} package
% \begin{macrocode}
@@ -24169,7 +24215,7 @@ Try #2-#1 instead of #1-#2}%
% Declare package:
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{dataplot}[2013/06/28 v2.14 (NLCT)]
+\ProvidesPackage{dataplot}[2015/07/11 v2.23 (NLCT)]
% \end{macrocode}
% Required packages
% \begin{macrocode}
@@ -25791,7 +25837,7 @@ east,southeast,south,southwest,west,northwest}[northeast]{%
% Package identification:
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{person}[2013/06/28 v2.14 (NLCT)]
+\ProvidesPackage{person}[2015/07/11 v2.23 (NLCT)]
% \end{macrocode}
% Requires the \sty{ifthen} package.
% \begin{macrocode}
@@ -26018,11 +26064,12 @@ east,southeast,south,southwest,west,northwest}[northeast]{%
%\begin{macro}{\ifmale}
% If the person given by the label in the first argument is male,
% do the second argument, otherwise do the third argument.
+%\changes{2.23}{2015-07-11}{bug fix: replaced \cs{@thisperson} with \#1}
% \begin{macrocode}
\newcommand{\ifmale}[3]{%
\ifpersonexists{#1}%
{%
- \edef\@gender{\csname person@\@thisperson @gender\endcsname}%
+ \edef\@gender{\csname person@#1@gender\endcsname}%
\ifx\@gender\@male@label
#2%
\else
@@ -26068,11 +26115,12 @@ east,southeast,south,southwest,west,northwest}[northeast]{%
%\begin{macro}{\iffemale}
% If the person given by the label in the first argument is female,
% do the second argument, otherwise do the third argument.
+%\changes{2.23}{2015-07-11}{bug fix: replaced \cs{@thisperson} with \#1}
% \begin{macrocode}
\newcommand{\iffemale}[3]{%
\ifpersonexists{#1}%
{%
- \edef\@gender{\csname person@\@thisperson @gender\endcsname}%
+ \edef\@gender{\csname person@#1@gender\endcsname}%
\ifx\@gender\@female@label
#2%
\else
@@ -26849,9 +26897,11 @@ east,southeast,south,southwest,west,northwest}[northeast]{%
%\begin{macro}{\persongender}
% Displays the given person's gender (\cs{malename} or
% \cs{femalename}).
+%\changes{2.23}{2015-07-11}{bug fix: replaced \cs{ifpersonmale} with
+%\cs{ifmale}}
% \begin{macrocode}
\newcommand*{\persongender}[1]{%
- \ifpersonmale{#1}{\malename}{\femalename}%
+ \ifmale{#1}{\malename}{\femalename}%
}
% \end{macrocode}
%\end{macro}
@@ -26861,9 +26911,11 @@ east,southeast,south,southwest,west,northwest}[northeast]{%
%\begin{macro}{\getpersongender}
% Gets person's gender and stores in first argument which must be
% a control sequence.
+%\changes{2.23}{2015-07-11}{bug fix: replaced \cs{ifpersonmale} with
+%\cs{ifmale}}
% \begin{macrocode}
\newcommand*{\getpersongender}[2]{%
- \ifpersonmale{#2}{\let#1\malename}{\let#1\femalename}%
+ \ifmale{#2}{\let#1\malename}{\let#1\femalename}%
}
% \end{macrocode}
%\end{macro}
diff --git a/Master/texmf-dist/source/latex/datatool/datatool.ins b/Master/texmf-dist/source/latex/datatool/datatool.ins
index 610221b9a3e..74541b91fe8 100644
--- a/Master/texmf-dist/source/latex/datatool/datatool.ins
+++ b/Master/texmf-dist/source/latex/datatool/datatool.ins
@@ -1,10 +1,10 @@
-% datatool.ins generated using makedtx version 1.1 2014/6/10 11:44
+% datatool.ins generated using makedtx version 1.1 2015/7/11 16:07
\input docstrip
\preamble
datatool.dtx
- Copyright 2014 Nicola Talbot
+ Copyright 2015 Nicola Talbot
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
diff --git a/Master/texmf-dist/tex/latex/datatool/databar.sty b/Master/texmf-dist/tex/latex/datatool/databar.sty
index cc179817cb8..299ab3dcd59 100644
--- a/Master/texmf-dist/tex/latex/datatool/databar.sty
+++ b/Master/texmf-dist/tex/latex/datatool/databar.sty
@@ -7,7 +7,7 @@
%% datatool.dtx (with options: `databar.sty,package')
%%
%% datatool.dtx
-%% Copyright 2014 Nicola Talbot
+%% Copyright 2015 Nicola Talbot
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -39,7 +39,7 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{databar}[2013/06/28 v2.14 (NLCT)]
+\ProvidesPackage{databar}[2015/07/11 v2.23 (NLCT)]
\RequirePackage{xkeyval}
\RequirePackage{dataplot}
\newif\ifDTLcolorbarchart
diff --git a/Master/texmf-dist/tex/latex/datatool/databib.sty b/Master/texmf-dist/tex/latex/datatool/databib.sty
index d0c658f9926..62f315bd24d 100644
--- a/Master/texmf-dist/tex/latex/datatool/databib.sty
+++ b/Master/texmf-dist/tex/latex/datatool/databib.sty
@@ -7,7 +7,7 @@
%% datatool.dtx (with options: `databib.sty,package')
%%
%% datatool.dtx
-%% Copyright 2014 Nicola Talbot
+%% Copyright 2015 Nicola Talbot
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -39,7 +39,7 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{databib}[2014/06/10 v2.22 (NLCT)]
+\ProvidesPackage{databib}[2015/07/11 v2.23 (NLCT)]
\RequirePackage{datatool}
\newcommand*{\dtlbib@style}{plain}
\define@choicekey{databib.sty}{style}{plain,abbrv,alpha}{%
diff --git a/Master/texmf-dist/tex/latex/datatool/datagidx.sty b/Master/texmf-dist/tex/latex/datatool/datagidx.sty
index 159eb55f5e8..79800baf338 100644
--- a/Master/texmf-dist/tex/latex/datatool/datagidx.sty
+++ b/Master/texmf-dist/tex/latex/datatool/datagidx.sty
@@ -7,7 +7,7 @@
%% datatool.dtx (with options: `datagidx.sty,package')
%%
%% datatool.dtx
-%% Copyright 2014 Nicola Talbot
+%% Copyright 2015 Nicola Talbot
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -39,7 +39,7 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datagidx}[2014/01/17 v2.19 (NLCT)]
+\ProvidesPackage{datagidx}[2015/07/11 v2.23 (NLCT)]
\RequirePackage{datatool}
\RequirePackage{etoolbox}
\RequirePackage{xkeyval}
diff --git a/Master/texmf-dist/tex/latex/datatool/datapie.sty b/Master/texmf-dist/tex/latex/datatool/datapie.sty
index 41bc83f17b7..fc7d158d960 100644
--- a/Master/texmf-dist/tex/latex/datatool/datapie.sty
+++ b/Master/texmf-dist/tex/latex/datatool/datapie.sty
@@ -7,7 +7,7 @@
%% datatool.dtx (with options: `datapie.sty,package')
%%
%% datatool.dtx
-%% Copyright 2014 Nicola Talbot
+%% Copyright 2015 Nicola Talbot
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -39,7 +39,7 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datapie}[2013/06/28 v2.14 (NLCT)]
+\ProvidesPackage{datapie}[2015/07/11 v2.23 (NLCT)]
\RequirePackage{xkeyval}
\newif\ifDTLcolorpiechart
\DTLcolorpiecharttrue
diff --git a/Master/texmf-dist/tex/latex/datatool/dataplot.sty b/Master/texmf-dist/tex/latex/datatool/dataplot.sty
index 4e835f9d4d7..66614bdd404 100644
--- a/Master/texmf-dist/tex/latex/datatool/dataplot.sty
+++ b/Master/texmf-dist/tex/latex/datatool/dataplot.sty
@@ -7,7 +7,7 @@
%% datatool.dtx (with options: `dataplot.sty,package')
%%
%% datatool.dtx
-%% Copyright 2014 Nicola Talbot
+%% Copyright 2015 Nicola Talbot
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -39,7 +39,7 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{dataplot}[2013/06/28 v2.14 (NLCT)]
+\ProvidesPackage{dataplot}[2015/07/11 v2.23 (NLCT)]
\RequirePackage{xkeyval}
\RequirePackage{tikz}
\RequirePackage{datatool}
diff --git a/Master/texmf-dist/tex/latex/datatool/datatool-base.sty b/Master/texmf-dist/tex/latex/datatool/datatool-base.sty
index 14eb1f27055..37df89e72d3 100644
--- a/Master/texmf-dist/tex/latex/datatool/datatool-base.sty
+++ b/Master/texmf-dist/tex/latex/datatool/datatool-base.sty
@@ -7,7 +7,7 @@
%% datatool.dtx (with options: `datatool-base.sty,package')
%%
%% datatool.dtx
-%% Copyright 2014 Nicola Talbot
+%% Copyright 2015 Nicola Talbot
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -39,7 +39,7 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datatool-base}[2014/06/10 v2.22 (NLCT)]
+\ProvidesPackage{datatool-base}[2015/07/11 v2.23 (NLCT)]
\RequirePackage{etoolbox}
\RequirePackage{amsmath}
\RequirePackage{xkeyval}
@@ -1503,10 +1503,10 @@
{%
\DTLsubstituteall{\@dtl@argA}{ }{\space }%
\DTLsubstituteall{\@dtl@argB}{ }{\space }%
- \expandafter\dtl@getfirst\@dtl@argA\end
+ \expandafter\dtl@getfirst\@dtl@argA\end@dtl@getfirst
\let\dtl@firstA=\dtl@first
\let\dtl@restA=\dtl@rest
- \expandafter\dtl@getfirst\@dtl@argB\end
+ \expandafter\dtl@getfirst\@dtl@argB\end@dtl@getfirst
\let\dtl@firstB=\dtl@first
\let\dtl@restB=\dtl@rest
\expandafter\dtl@ifsingle\expandafter{\dtl@firstA}{%
@@ -1577,14 +1577,14 @@
}%
}%
}
-\def\dtl@getfirst#1#2\end{%
+\def\dtl@getfirst#1#2\end@dtl@getfirst{%
\def\dtl@first{#1}%
\ifdefempty{\dtl@first}%
{%
\def\dtl@rest{#2}%
}%
{%
- \dtl@ifsingle{#1}{\def\dtl@rest{#2}}{\dtl@getfirst#1#2\end}%
+ \dtl@ifsingle{#1}{\def\dtl@rest{#2}}{\dtl@getfirst#1#2\end@dtl@getfirst}%
}%
}
\newcount\dtl@codeA
@@ -1649,10 +1649,10 @@
\let\@dtl@argA\dtl@string
\dtl@setwordbreaksnohyphens{\@dtl@argB}{\@dtl@wordbreak}%
\let\@dtl@argB\dtl@string
- \expandafter\dtl@getfirst\@dtl@argA\end
+ \expandafter\dtl@getfirst\@dtl@argA\end@dtl@getfirst
\let\dtl@firstA=\dtl@first
\let\dtl@restA=\dtl@rest
- \expandafter\dtl@getfirst\@dtl@argB\end
+ \expandafter\dtl@getfirst\@dtl@argB\end@dtl@getfirst
\let\dtl@firstB=\dtl@first
\let\dtl@restB=\dtl@rest
\expandafter\dtl@ifsingle\expandafter{\dtl@firstA}%
@@ -2210,14 +2210,14 @@
\dtl@donext
}
\newcommand*{\@dtl@testifsubstring}[2]{%
- \def\@dtl@argA{#1}%
- \def\@dtl@argB{#2}%
- \ifdefempty{\@dtl@argB}%
+ \def\@dtl@subs@argA{#1}%
+ \def\@dtl@subs@argB{#2}%
+ \ifdefempty{\@dtl@subs@argB}%
{%
\@dtl@conditiontrue
}%
{%
- \ifdefempty{\@dtl@argA}%
+ \ifdefempty{\@dtl@subs@argA}%
{%
\@dtl@conditionfalse
}%
@@ -2225,12 +2225,14 @@
\@dtl@teststartswith{#1}{#2}%
\if@dtl@condition
\else
- \expandafter\dtl@getfirst\@dtl@argA\end
- \expandafter\dtl@ifsingle\expandafter{\dtl@first}{%
+ \dtl@getfirst#1\end@dtl@getfirst
+ \expandafter\dtl@ifsingle\expandafter{\dtl@first}%
+ {%
\expandafter\@dtl@testifsubstring\expandafter{\dtl@rest}{#2}%
- }{%
+ }%
+ {%
\protected@edef\@dtl@donext{\noexpand\@dtl@testifsubstring
- {\expandonce\dtl@first\expandonce\dtl@rest}{\expandonce\@dtl@argB}}%
+ {\expandonce\dtl@first\expandonce\dtl@rest}{\expandonce\@dtl@subs@argB}}%
\@dtl@donext
}%
\fi
@@ -2278,10 +2280,10 @@
\@dtl@conditiontrue
}%
{%
- \expandafter\dtl@getfirst\@dtl@argA\end
+ \expandafter\dtl@getfirst\@dtl@argA\end@dtl@getfirst
\let\dtl@firstA=\dtl@first
\let\dtl@restA=\dtl@rest
- \expandafter\dtl@getfirst\@dtl@argB\end
+ \expandafter\dtl@getfirst\@dtl@argB\end@dtl@getfirst
\let\dtl@firstB=\dtl@first
\let\dtl@restB=\dtl@rest
\expandafter\dtl@ifsingle\expandafter{\dtl@firstA}%
@@ -2551,6 +2553,13 @@
\TE@throw\noexpand\dtl@teststartswith{#1}{#2}%
\noexpand\if@dtl@condition
}
+\newcommand*{\DTLisinlist}[2]{%
+ \TE@throw\noexpand\dtl@testinlist{#1}{#2}%
+ \noexpand\if@dtl@condition
+}
+\newcommand*{\dtl@testinlist}[2]{%
+ \DTLifinlist{#1}{#2}{\@dtl@conditiontrue}{\@dtl@conditionfalse}%
+}
\newcommand*{\dtl@testnumclosedbetween}[3]{%
\DTLifnumclosedbetween{#1}{#2}{#3}%
{\@dtl@conditiontrue}{\@dtl@conditionfalse}%
diff --git a/Master/texmf-dist/tex/latex/datatool/datatool-fp.sty b/Master/texmf-dist/tex/latex/datatool/datatool-fp.sty
index 3efea2761cf..3d2e5a6798e 100644
--- a/Master/texmf-dist/tex/latex/datatool/datatool-fp.sty
+++ b/Master/texmf-dist/tex/latex/datatool/datatool-fp.sty
@@ -7,7 +7,7 @@
%% datatool.dtx (with options: `datatool-fp.sty,package')
%%
%% datatool.dtx
-%% Copyright 2014 Nicola Talbot
+%% Copyright 2015 Nicola Talbot
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -39,7 +39,7 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datatool-fp}[2013/08/29 v2.17 (NLCT)]
+\ProvidesPackage{datatool-fp}[2015/07/11 v2.23 (NLCT)]
\RequirePackage{xkeyval}
\RequirePackage{fp}
\RequirePackage{datatool-base}
diff --git a/Master/texmf-dist/tex/latex/datatool/datatool-pgfmath.sty b/Master/texmf-dist/tex/latex/datatool/datatool-pgfmath.sty
index a1189238346..82904f6cdd8 100644
--- a/Master/texmf-dist/tex/latex/datatool/datatool-pgfmath.sty
+++ b/Master/texmf-dist/tex/latex/datatool/datatool-pgfmath.sty
@@ -7,7 +7,7 @@
%% datatool.dtx (with options: `datatool-pgfmath.sty,package')
%%
%% datatool.dtx
-%% Copyright 2014 Nicola Talbot
+%% Copyright 2015 Nicola Talbot
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -39,7 +39,7 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datatool-pgfmath}[2013/08/29 v2.17 (NLCT)]
+\ProvidesPackage{datatool-pgfmath}[2015/07/11 v2.23 (NLCT)]
\RequirePackage{xkeyval}
\RequirePackage{pgfrcs,pgfkeys,pgfmath}
\ProcessOptionsX
diff --git a/Master/texmf-dist/tex/latex/datatool/datatool.sty b/Master/texmf-dist/tex/latex/datatool/datatool.sty
index 79299f2620f..46b03f234e4 100644
--- a/Master/texmf-dist/tex/latex/datatool/datatool.sty
+++ b/Master/texmf-dist/tex/latex/datatool/datatool.sty
@@ -7,7 +7,7 @@
%% datatool.dtx (with options: `datatool.sty,package')
%%
%% datatool.dtx
-%% Copyright 2014 Nicola Talbot
+%% Copyright 2015 Nicola Talbot
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -39,13 +39,12 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{datatool}[2014/06/10 v2.22 (NLCT)]
+\ProvidesPackage{datatool}[2015/07/11 v2.23 (NLCT)]
\RequirePackage{xkeyval}
\RequirePackage{ifthen}
\RequirePackage{xfor}
\RequirePackage{substr}
\RequirePackage{etoolbox}
-\RequirePackage{etex}
\newcommand*{\@dtl@separator}{,}
\newcommand*{\DTLsetseparator}[1]{%
\renewcommand*{\@dtl@separator}{#1}%
@@ -57,6 +56,9 @@
\catcode`\^^I12
\DTLsetseparator{^^I}%
}
+\gdef\DTLmaketabspace{%
+ \catcode`\^^I10\relax
+}
\endgroup
\begingroup
\catcode`\"12\relax
@@ -2504,7 +2506,7 @@
\newtoks\@dtl@list
\newcommand*{\DTLsort}{\@ifstar\@sDTLsort\@DTLsort}
\newcommand{\@DTLsort}[3][]{%
- \dtlsort[#1]{#2}{#3}{\dtlicompare}%
+ \dtlsort[#1]{#2}{#3}{\dtlcompare}%
}
\newcommand*{\@sDTLsort}[3][]{%
\dtlsort[#1]{#2}{#3}{\dtlicompare}%
@@ -3250,15 +3252,29 @@
\let#1=\@dtl@trmstr
}
\long\def\@dtl@starttrim#1#2{%
- \def\@dtl@tmpB{#2}%
+ \dtl@ifsingle{#2}%
+ {%
+ \def\@dtl@tmpB{#2}%
+ }%
+ {%
+ \def\@dtl@tmpB{{#2}}%
+ }%
\ifx\par#1%
- \def\@dtl@dotrim{\@dtl@trim{} #2}%
+ \edef\@dtl@dotrim{\noexpand\@dtl@trim{} \expandonce\@dtl@tmpB}%
\else
+ \dtl@ifsingle{#1}%
+ {%
+ \def\@dtl@tmpA{#1}%
+ }%
+ {%
+ \def\@dtl@tmpA{{#1}}%
+ }%
\ifx\@dtl@tmpB\@nnil
\def\@dtl@dotrim{}%
- \def\@dtl@trmstr{#1}%
+ \let\@dtl@trmstr\@dtl@tmpA
\else
- \def\@dtl@dotrim{\@dtl@trim#1#2}%
+ \edef\@dtl@dotrim{\noexpand\@dtl@trim
+ \expandonce\@dtl@tmpA\expandonce\@dtl@tmpB}%
\fi
\fi
\@dtl@dotrim
diff --git a/Master/texmf-dist/tex/latex/datatool/person.sty b/Master/texmf-dist/tex/latex/datatool/person.sty
index 3783b063d35..8e5bf2590a3 100644
--- a/Master/texmf-dist/tex/latex/datatool/person.sty
+++ b/Master/texmf-dist/tex/latex/datatool/person.sty
@@ -7,7 +7,7 @@
%% datatool.dtx (with options: `person.sty,package')
%%
%% datatool.dtx
-%% Copyright 2014 Nicola Talbot
+%% Copyright 2015 Nicola Talbot
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -39,7 +39,7 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{person}[2013/06/28 v2.14 (NLCT)]
+\ProvidesPackage{person}[2015/07/11 v2.23 (NLCT)]
\RequirePackage{ifthen}
\RequirePackage{datatool}
\newcounter{people}
@@ -148,7 +148,7 @@
\newcommand{\ifmale}[3]{%
\ifpersonexists{#1}%
{%
- \edef\@gender{\csname person@\@thisperson @gender\endcsname}%
+ \edef\@gender{\csname person@#1@gender\endcsname}%
\ifx\@gender\@male@label
#2%
\else
@@ -183,7 +183,7 @@
\newcommand{\iffemale}[3]{%
\ifpersonexists{#1}%
{%
- \edef\@gender{\csname person@\@thisperson @gender\endcsname}%
+ \edef\@gender{\csname person@#1@gender\endcsname}%
\ifx\@gender\@female@label
#2%
\else
@@ -604,10 +604,10 @@
\fi
}
\newcommand*{\persongender}[1]{%
- \ifpersonmale{#1}{\malename}{\femalename}%
+ \ifmale{#1}{\malename}{\femalename}%
}
\newcommand*{\getpersongender}[2]{%
- \ifpersonmale{#2}{\let#1\malename}{\let#1\femalename}%
+ \ifmale{#2}{\let#1\malename}{\let#1\femalename}%
}
\newcommand*{\getpersonname}[2]{%
\ifpersonexists{#2}%