Actually I did not mean this as a patch, but as something that I don't
quite understand why it should not work. For example I the following
environment declared in my layout file:

Style Entry
    LatexType       Command
    LatexName       cventry
    LabelString     "(years; title; institution; location; grade; description):"
    ParbreakIsNewline   1
    PassThru            1
    RequiredArgs    5
End

However in the Lyx editor I am unable to insert the 5 arguments
because the "Insert > Short title" command is disabled. It's not
enough for me to type for example the line "{a}{b}{c}{d}{e}rest" in
Lyx, because this then generates the Latex output:

\cventry{}{}{}{}{}{{a}{b}{c}{d}{e}rest}

which is not what I want. Or am I doing something wrong?

Sue Ann Koay
[email protected]



On Wed, Jun 22, 2011 at 11:09 AM, Jean-Marc Lasgouttes
<[email protected]> wrote:
> Le 22/06/2011 11:04, Sue Ann Koay a écrit :
>>
>> Hmm... In the meanwhile is it at least possible to allow the "Insert>
>> Short title" command even in LyX environments set as PassThru? IMHO
>> one should still be able to insert arguments in this case. Right now I
>> have to hack it by copying and pasting an opt field from somewhere
>> else.
>
> I do not think it should be possible to insert arguments in this case :)
> PassThru is for verbatim text that is not evaluated by LaTeX. Passing macros
> or arguments there does not make much sense...
>
> Of course, when the layout file specifies it explicitly, it may be argued
> that it should work.
>
> I am reluctant to add this feature just to work around an unrelated bug.
>
> JMarc
>
>

Reply via email to