LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced Font
Show HTML Part by Default
Condense Mail Headers

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

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Date: Sat, 29 Jan 2011 06:08:51 +0000
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
Message-ID: <[log in to unmask]>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset=UTF-8
From: Joseph Wright <[log in to unmask]>
Parts/Attachments: text/plain (22 lines)
On 28/01/2011 21:15, Arno Trautmann wrote:
> Hi all,
> I was wandering what is considered the "nicest" (or, right) way to
> define short macros or aliases. Say, something like
> \ie ⇒ i.\,e.
> As this is ment for document level, I am tempted to use
> \NewDocumentCommand. But this word is longer than the whole code of the
> macro itself, that blows some simple code really up. On the other hand,
> using \def would be very short but is not LaTeX3-ish. \cs_new:Nn doesn't
> let me define something without a : at the end. Or would a \tl_new be a

On the general question, I'd agree with Will that \NewDocumentCommand is
the correct choice. The LaTeX3 syntax is more formalised than LaTeX2e,
which does mean more verboseness in some cases.

On 'things blowing up', can you provide an example?
Joseph Wright