LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

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

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

Print Reply
Subject:
From:
Benedikt Vitecek <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Fri, 21 Apr 2017 16:49:16 +0200
Content-Type:
multipart/alternative
Parts/Attachments:
text/plain (764 bytes) , text/html (3981 bytes)
For a command I used the argument specifier d<> (which I thought was a good idea), 
which doesn’t work properly in combination with ‚babel‘ and the language option
‚spanish‘:

  \documentclass[spanish]{scrartcl}
  \usepackage{babel}
  \usepackage{xparse}
  \NewDocumentCommand \Something { d<> m }
    {
      Optional: #1 \\
      Mandatory: #2
    }
  \begin{document}
  \Something<Hello>{World}
  \end{document}

Which gives

  Optional: -NoValue-
  Mandatory: ¡Hello¿World

instead of
  
  Optional: Hello
  Mandatory: World

I know that I can use e.g. \deactivatequoting, but is there a way in 
‚xparse‘ (or ‚expl3') so that I can use this construction without worrying about 
such things?

Greetings,
Ben

ATOM RSS1 RSS2