Latest news 2025-07-01: Ebook Sale July 2025. Cybercrime fiction short stories Unsocial Media and Smile for the Camera free; crime fiction short story The Briefcase free; short story noir crime fiction I’ve Heard the Mermaid Sing free; crime fiction novel The Private Enemy US$1.99; illustrated children’s story The Foolish Hedgehog US$0.99.

Bug Tracker RSS feed

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

Return to Search Results

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. All guest comments have to be manually checked before they appear on the page. There are too many bots trying to spam the site to allow unauthenticated users to post without verification.

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

Return to Search Results