Bug Tracker RSS feed

One or more errors has occurred:

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 106🔗
Date: 2016-03-29 10:16:35
Status Closed (Fixed)
Category datatool
Version 2.25
Summary Error is a command used in the assign list is equal to relax

Sign in to subscribe to notifications about this report.

Description

The following document gives an error if \lastname is equal to \relax.
\documentclass[]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{datatool}

\begin{document}

\DTLnewdb{test}
\DTLnewrow{test}%
\DTLnewdbentry{test}{lastname}{fischer}
\DTLnewdbentry{test}{firstname}{ulrike}


%\csname lastname\endcsname
\let\lastname\relax


\DTLforeach{test}{%
 \lastname=lastname,\firstname=firstname}
 {\lastname, \firstname}

\end{document}
! Undefined control sequence.
<argument> ...elax \lastname =lastname,\firstname 
                                                  =firstname\relax \else \@d...

MWE

Download (411B)

\documentclass[]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{datatool}

\begin{document}

\DTLnewdb{test}
\DTLnewrow{test}%
\DTLnewdbentry{test}{lastname}{fischer}
\DTLnewdbentry{test}{firstname}{ulrike}


%\csname lastname\endcsname
\let\lastname\relax

\DTLforeach{test}{%
 \lastname=lastname,\firstname=firstname}
 {\lastname, \firstname}


\end{document}

Evaluation

Fixed in version 2.32 (2019-09-27).

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=106