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:
Andreas Matthias <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Wed, 12 Sep 2007 00:04:55 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (45 lines)
Frank Mittelbach wrote:

>  > * What is \prop_gput:Ooo for? Hasn't got \prop_gput:Noo the
>  >   same functionality? (Let alone that \prop_gput:Ooo doesn't
>  >   work, yet.)
> 
> O in contrast to o means single expanion on an input which is a single token
> ie no braces around it.
> 
> \tlp_new:N \l_tmp_tlp
  ^^^^^^^^^^
;-)
I am doing this mistake frequently. But there is only a
\tlp_clear_new:N. Maybe there really should exist a \tlp_new:N.

> \prop_new:N \g_foo_prop
> 
> \tlp_set:Nn \l_tmp_tlp {\g_foo_prop}
> 
> \prop_gput:Ooo \l_tmp_tlp ...


Hmm... But this could be done with \prop_gput:Noo as well.


\RequirePackage{l3prop}
\RequirePackage{l3tlp}
\ExplSyntaxOn

\tlp_new:Nn \l_tmp_tlp {}
\prop_new:N \g_foo_prop

\tlp_set:Nn \l_tmp_tlp {\g_foo_prop}

\prop_gput:Noo \l_tmp_tlp {key}{info}

\prop_map_inline:Nn \g_foo_prop {\io_put_term:x{#1:~ #2}}

\stop



Ciao
Andreas

ATOM RSS1 RSS2