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
Show All Mail Headers

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

Print Reply
Subject:
From:
"J.Fine" <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Wed, 12 Aug 2009 21:40:21 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (21 lines)
Hello

Instead of writing, say,
    \def\centerline #1{\hbox to\hsize{#1}}
I'd like to be able to write something like
    \def\centerline #text{\hbox to\hsize{#text}}

This is an example of named parameters in macro definitions.

Not hard to implement in, say, Python.  There's proof of concept code in
    http://pytex.svn.sourceforge.net/viewvc/pytex/trunk/pytex/sandbox/jfine/macroload/

This was announced to comp.text.tex in February this year.  There was a discussion,
which then sort of petered out.

--
Jonathan


The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302).

ATOM RSS1 RSS2