LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Alexander Grahn <[log in to unmask]>
Fri, 14 Sep 2018 14:25:15 +0200
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