Smile for the Camera: a new cybercrime short story ebook.

Bug Tracker RSS feed

I’m currently working on a major new version of the datatool package. This may take a while. Please be patient. (Experimental version available for testing.)

ID 70🔗
Date: 2014-10-10 15:56:40
Status Closed (Fixed)
Category datatool
Version 2.20
Summary Error or misunderstanding in datatool documentation

Sign in to subscribe to notifications about this report.

Description

Hello Nicola,

It seems to me, that the usermanual of datatool has an bug. Because there is no difference between table 5.23 to table 5.24.

I am reading your documentation very intensive, because i want to sort a column with entry 20.04.2013 but in order of year, month and day.

I am very sure, that my bug report won't solve my issue, but I want to tell you, that I have determined this (maybe) bug.

Best regards

Peter Ebelsberger

MWE

Download (1.02K)

\documentclass{article}

\usepackage{datatool}

\begin{filecontents*}{test.csv}
FirstName,Surname,Score
John,"Smith, Jr",68
Jane,Brown,75
Andy,Brown,42
Z\"oe,Adams,52
Roger,Brady,58
Clare,Verdon,45
Henk,van der Mere,71
Jos,de la Mere,58
Mary,Dane,65
Paul,Dobson,62
\end{filecontents*}

\DTLloaddb{scores}{test.csv}

\begin{document}

\begin{table}[htbp]
\caption{Student scores (case sensitive sort)}
\centering
\DTLsort{Surname,FirstName}{scores}%
\begin{tabular}{llr}
\bfseries Surname &
\bfseries First Name &
\bfseries Score (\%)%
\DTLforeach{scores}%
 {\firstname=FirstName,\surname=Surname,\score=Score}%
 {\\\surname & \firstname & \score}
\end{tabular}
\end{table}

\begin{table}[htbp]
\caption{Student scores (case ignored when sorting)}
\centering
\DTLsort*{Surname,FirstName}{scores}%
\begin{tabular}{llr}
\bfseries Surname &
\bfseries First Name &
\bfseries Score (\%)\relax
\DTLforeach{scores}%
 {\firstname=FirstName,\surname=Surname,\score=Score}%
 {\\\surname & \firstname & \score}
\end{tabular}
\end{table}

\end{document}

Evaluation

Fixed in v2.23.

Comments

0 comments.


Add Comment

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:


You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

You can use the Preview button to review your message formatting before submitting.

Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=70