2014-11-12 21:14 GMT+01:00 Ernesto Posse:

> Thanks. That's quite nice, but it doesn't work quite as expected.
>
> I tried the two forms, arguments with and without 'post:' and I get the
> same result: the second argument of the command is the "body" (the text
> that follows all arguments) and "Mandatory 0" seems to be ignored (the
> generated argument is enclosed in {...} rather than [...]). For example, if
> in the LyX work area I write the following (with text enclosed in <...>
> representing the style name and <...>[ ... ] representing an argument inset)
>
> <Category> <CR number>[D.2.4.1] <Category>[Software Engineering]
> <Sub-category>[Software/Program Verification] <Subject> [Formal methods]
> Some other text
>
> Then the resulting code is
>
> \category{D.2.4.1}{Some other text}{Software Engineering}{Software/Program
> Verification}{Formal  methods}
>
> So it looks like all arguments after the first are treated as if they
> where tagged with 'post:' and the optional flag seems to be ignored.
>
> Is this a bug or am I missing something?
>

Maybe I misunderstand you, but don't you want to achieve this output:

\category{CR-Number}{Category}{Sub-Category}[Subject Descriptor]


Whereas the second mandatory argument ("Category") is what is inserted in
the main text?

(I figured that you want to use this style:

http://www.acm.org/sigs/publications/sigguide-v2.2sp)


The attached document shows this (the definition is in Document > Local
Layout).


Jürgen

Attachment: category.lyx
Description: application/lyx

Reply via email to