Andreas Markmann wrote:
>> It is not possible anymore, but the ERT can appear as inline (but
>> still with the redframe).
> 
> Do you mean by this the uncollapsed view of the ERT or something else I
> have overlooked?

Right click on the inset and a little dialog will pop up. Select the
"inline" check box.

You can do this for all ERT insets in your document with

If you want to "inline" only those that are "collapsed", then run this from
the command line. Save a copy of your .lyx file first of course.

$ sed '
/^\\begin_inset ERT/{
$!{
N
s/\(status\) Collapsed/\1 Inline/
}
}' oldfile.lyx > newfile.lyx

If you want to "inline" only those that are "open", replace "Collapsed"
above with "Open".

If you want all ERT insets to be inlined, replace " Collapsed" with ".*"

If you'd like to do this to many docs, save the stuff between the '-quotes
to a file and invoke it as

$ sed -f inline_ert.sed oldfile.lyx > newfile.lyx

-- 
Angus

Reply via email to