LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Proportional Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Sender:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Fri, 31 Oct 2014 18:44:07 +1300
MIME-version:
1.0
Reply-To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Content-type:
text/plain; charset=utf-8; format=flowed
Subject:
From:
aparsloe <[log in to unmask]>
Message-ID:
Content-transfer-encoding:
7bit
Parts/Attachments:
text/plain (25 lines)
A section of code that worked for me in July only partly works now. One 
issue that I've noticed is that

\group_begin:
...
\DeclareDocumentCommand \test ...
...
\group_end:

will not in fact create a document command \test -- I get an "Undefined 
control sequence" message when I try to use it in the wider document. 
The declaration must be outside the group commands -- at least that is 
what my experiments tell me. (But \test is recognised within the group 
commands.) Is that correct? And is it new? -- I don't recall meeting 
this issue back in July.

The xparse documentation doesn't seem to mention this issue and perhaps 
should. I can understand the documenters assuming that a document-wide 
command would only be defined at the highest level, but in my context 
(working with instant preview in LyX) it was quite natural to define it 
within the \group_begin:, \group_end: commands of another funtion. I've 
changed that now which has resolved at least some of the problem.

Andrew

ATOM RSS1 RSS2