On 06/22/2011 06:09 AM, Jean-Marc Lasgouttes wrote:
> Le 22/06/2011 11:14, Sue Ann Koay a écrit :
>> 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}
>
> I see the problem now. Please file a bug about it, there is no reason
> for this particular case not to work.
>
At the very end of Text::getStatus(), we have:
if (code != NO_CODE
&& (cur.empty()
|| !cur.inset().insetAllowed(code)
|| cur.paragraph().layout().pass_thru))
enable = false;
This obviously disables everything Text handles in PassThru layouts.
Suggestion?
Richard
> JMarc
>