LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Content-Type:
text/plain; charset=iso-8859-15
Date:
Fri, 14 Sep 2018 14:25:15 +0200
Content-Disposition:
inline
Reply-To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Subject:
From:
Alexander Grahn <[log in to unmask]>
Message-ID:
MIME-Version:
1.0
Sender:
Mailing list for the LaTeX3 project <[log in to unmask]>
Parts/Attachments:
text/plain (27 lines)
Good afternoon,

here is something that looks like a bug.

A document-command with an _unused_ _trailing_ option swallows the space
after it:

  \documentclass[a6paper,12pt]{scrbook}
  
  \usepackage{xparse}
  
  \NewDocumentCommand{\myCmd}{ m o }{%
    \IfValueT{#2}{\typeout{+++#2+++}}%
    #1%
  }
  
  \begin{document}\Huge
    This is a \myCmd{test} foo. %spacing wrong
  
    This is a \myCmd{test}[bla] foo. %spacing ok
  \end{document}

This behaviour is new and probably not intended.

Kind regards,
Alexander.

ATOM RSS1 RSS2