Latest news 2024-03-02: Ebook sale (3rd–9th March 2024): short story cybercrime fiction Unsocial Media 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. For further details, see latest blog post.

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 122🔗
Date: 2017-02-23 06:37:27
Status Closed (Fixed)
Category datetime2
Version 1.5.2
Summary spurious spaces in \DTMsetregional

Sign in to subscribe to notifications about this report.



I'm using the \DTMsetregional macro in a document to switch between numerical and text form (in French). However, each time this macro is used, two spaces are inserted. One come from the \DTMsetregional macro itself, the other from the \datefrench macro (called from \DTMsetregional in my setup).

The following patches fix the two issues:

diff --git a/datetime2.dtx b/datetime2.dtx
index 569cd0b..cbf063f 100644
--- a/datetime2.dtx
+++ b/datetime2.dtx
@@ -7374,7 +7374,7 @@
-      \csuse{date\languagename}
+      \csuse{date\languagename}%
 %    \end{macrocode}
diff --git a/datetime2-french.dtx b/datetime2-french.dtx
index 96f0075..6dd2804 100644
--- a/datetime2-french.dtx
+++ b/datetime2-french.dtx
@@ -726,7 +726,7 @@
     {}% do nothing
-    {\DTMsetstyle{french-numeric}}
+    {\DTMsetstyle{french-numeric}}%
 %    \end{macrocode}
And here is a minimal doc to test:




The 'a' and 'b' letter should be nearby. Without the patches, two spaces are inserted.



Download (155B)







The spurious space in \DTMsetregional has now been fixed in v1.5.6 (2020-03-02), so this I'm closing this bug report as fixed. The other issue isn't a bug in datetime2 but is a bug in a separately maintained regional module and so isn't covered by this bug tracker.

The problem with datetime2-french.ldf needs to be fixed by the maintainer of the datetime2-french. I have sent a notification to all maintainers of the regional datetime2 modules about the spurious space problem.



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.


You can use the following markup:


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

In line:

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

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

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

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

Page permalink: