On Tue, 16 Oct 2001 17:42:00 +0200 (CEST)
Guenter Milde <[EMAIL PROTECTED]> wrote:

> On Tue, 16 Oct 2001 21:54:26 +0900 wrote Gerhard Schuck <[EMAIL PROTECTED]>:
> 
> > On Tue, 16 Oct 2001 10:42:05 +0200 (CEST)
> > Guenter Milde <[EMAIL PROTECTED]> wrote:
> > 
> > > On Tue, 16 Oct 2001 11:19:09 +0900 wrote Gerhard Schuck 
><[EMAIL PROTECTED]>:
> > > 
> > > > 1) I need ERT quite frequently. It would be cool to have a special box for
> > > > latex code. I mean a box like the one for footnotes, which supports cut and
> > > > paste and everything like normal text. Every text in this box should be
> > > > automatically understood as red text, and if you close the box, your screen
> > > > is clean (except of a small label). Of course that has nothing to do with
> > > > functionality, it's just a way to hide ERT.
> > > 
> > > This is already possible with the undocumented ERT-inset, see the attached
> > > example.
> > 
> > Thanks, that sounds nice. But I didn't find your attachment (perhaps because of 
>the immaturity of sylpheed, my mail program).
> 
> More likely becouse I forgot to attch.
> 
> Here it comes included
> 
> #LyX 1.1 created this file. For more info see http://www.lyx.org/
> \lyxformat 218
> \textclass scrartcl_srh
> \begin_preamble
> > \renewcommand{\Im}{\mathrm{Im}}
> \renewcommand{\Re}{\mathrm{Re}}
> > \renewcommand{\vec}[1]{\textbf{\itshape #1}}
> \end_preamble
> \language german
> \inputencoding latin1
> \fontscheme default
> \graphics default
> \paperfontsize default
> \spacing single 
> \papersize a4paper
> \paperpackage a4
> \use_geometry 1
> \use_amsmath 0
> \paperorientation portrait
> \leftmargin 2cm
> \topmargin 1cm
> \rightmargin 2cm
> \bottommargin 1cm
> \secnumdepth 3
> \tocdepth 3
> \paragraph_separation skip
> \defskip medskip
> \quotes_language german
> \quotes_times 2
> \papercolumns 1
> \papersides 1
> \paperpagestyle plain
> 
> \layout Standard
> 
> The 
> \family typewriter 
> ert-inset
> \family default 
>  command produces an ERT-box you can use ERT you want to hide:
> \layout Standard
> 
> It normaly comes in Standard Style - which is not ERT! 
> \layout Standard
> 
> Ein Test der ERT_box 
> \begin_inset ERT
> collapsed true
> 
> \layout Standard
> 
> 
> \backslash 
> small kleiner Text
> \end_inset 
> 
>  und normaler Text.
> \layout Standard
> 
> It works, if you set the Paragraph Style to LaTeX (changing font attributes
>  doesnot work):
> \layout Standard
> 
> Ein Test der ERT_box 
> \begin_inset ERT
> collapsed true
> 
> \layout LaTeX
> 
> {
> \backslash 
> small kleiner Text}
> \end_inset 
> 
>  und normaler Text.
> \layout Standard
> 
> Latex directives in the box affect the following text.
> \layout Standard
> 
> Ein Test der ERT_box 
> \begin_inset ERT
> collapsed true
> 
> \layout LaTeX
> 
> 
> \backslash 
> small kleiner Text
> \end_inset 
> 
>  und normaler Text.
> \the_end
> 
> 
> GM
> 
> --
> [EMAIL PROTECTED]
> 


Yes, that worked. Thank you. But is it safe to use? Are there problems to expect, e.g. 
if you want to open a document with this ert-inset with a future version of lyx?

Gerhard Schuck
[EMAIL PROTECTED]

Reply via email to