Latest news 2024-04-12: new blog post "Smile for the Camera: a cybercrime story".

Feature 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 27🔗
Date: 2014-10-28 09:59:19
Status Closed (Implemented)
Category datatool
Summary DTLisinlist

Sign in to subscribe to notifications about this report.

Description

Hello !

Thanks for your datatool and datatooltk piece of software !

A very humble feature addition would be to have the equivalent DTLisinlist of the DTLifinlist. We could then use DTLisinlist in the DTLforeach statement to select rows according to a list.

Although there is a workaround, using DTLifinlist inside a DTLforeach loop, it is not very satisfactory nor readable.

To plead for this feature, since it is somme kind of a primitive, I guess it should not be too much connected with other features, therefore not compromising the rest of the construction.

I will try to make it with the example of DTLifinlist ... but I have not your skill :(

Nice day !

MWE

No mwe.tex

Evaluation

I've added \DTLisinlist to version 2.23. (The commands that work within \ifthenelse seem to require the use of \TE@throw so I've implemented it slightly differently to your suggestion.)

Comments

2 comments.

🔗Comment from Al DUS
Date: 2014-10-29 12:48:09

I found a bypass, quite obvious but still usefull, to transform any DTLif... in DTLis... usable in DTLforeach for instance.

Here it is:

\newcommand{\DTLisinlist}[2]{\DTLifinlist{#1}{#2}{true}{false}}
Hope it helps.

Replying to Comment #18:

Name (optional):

Are you human? Please confirm the feature request 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.

🔗Comment from Aldus
Date: 2015-07-12 07:40:42

Thanks !

Replying to Comment #19:

Name (optional):

Are you human? Please confirm the feature request 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.


Add Comment

Name (optional):

Are you human? Please confirm the feature request 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/featuretracker.php?key=27