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:
Philipp Stephani <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Sat, 2 Oct 2010 23:17:27 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (18 lines)
Hello,

chapter XXI, section 93 of the manual says about \keys_bool_set:NN:

"Creates code to set ⟨bool⟩ when ⟨key⟩ is given, with setting using ⟨scope⟩ (l or g for local
or global, respectively). ⟨bool⟩ should be a LATEX3 boolean variable."

First of all, I think the scope description is incorrect since the scope is simply used to construct control sequences like \bool_set... and \bool_gset..., but there is not \bool_lset...
The second argument of \keys_bool_set:NN should thus be empty if the assignment is to be local, in which case the argument specifier should be "n", not "N".

Then line 1320 of l3keys.dtx has

\keys_property_new_arg:nn { .bool_gset:N } {
  \keys_bool_set:NN #1 n
}

Note the scope "n" instead of "g" (or rather "{g}"), which leads to an error ("Missing \begin{document}").

ATOM RSS1 RSS2