Re: .layout and \par
"Andre" == Andre Poenitz [EMAIL PROTECTED] writes: Andre I fiddled with a .layout file, and there is now a style Andre 'Proof'. In LyX everything looks ok (including e.g. the Andre EndLabel), but the exported LaTeX looks like: Andre some text. \end{proof} And here comes the next paragraph Andre ... Andre The .dvi consequently looks like Andre some text. [] And here comes the next paragraph ... IMO, your proof definition is a bit weak :) Can we see it? JMarc
Re: .layout and \par
First of all, thank you Jean-Marc. 'relyx -r' - this option is not directly available from the GUi, is it? Anyway, I guess it will help. The 'proof' thingy: Style Theorem MarginFirst_Dynamic LatexType Environment LatexName theorem ParSkip 0.4 ItemSep 0.2 TopSep0.7 BottomSep 0.7 ParSep0.3 Align Block AlignPossible Block, Left LabelSep xx LabelType Static LabelString "Theorem #." End Style Proof CopyStyle Theorem LatexName proof LabelString "Proof." #EndLabelString "[]" EndLabelType Box End It's mainly copied from... foils.layout(?) Andre' -- It'll take a long time to eat 63.000 peanuts. André Pönitz . [EMAIL PROTECTED]
Re: .layout and \par
"Andre" == Andre Poenitz [EMAIL PROTECTED] writes: Andre First of all, thank you Jean-Marc. 'relyx -r' - this option is Andre not directly available from the GUi, is it? Anyway, I guess it Andre will help. No, it is indeed not included in the GUI. Amir asked for help there, and nobody stepped in. Andre The 'proof' thingy: I was referring to the actual code. How do you define it latex-wise? JMarc
Re: .layout and \par
No, it is indeed not included in the GUI. Amir asked for help there, and nobody stepped in. I have no experience at all with GUIs except with something that can be built with Tk (from Tcl/Tk). And xforms is quite a bit to go from there... If reLyX could identify the layout (e.g Andre The 'proof' thingy: I was referring to the actual code. How do you define it latex-wise? It's from siamltex.cls... urmh... and it dont' have it at hand right now. I'll have a look at it once I get home tonight. Andre' -- It'll take a long time to eat 63.000 peanuts. André Pönitz . [EMAIL PROTECTED]
Re: .layout and \par
On Fri, Jul 14, 2000 at 08:22:55AM +0200, Andre Poenitz wrote: I fiddled with a .layout file, and there is now a style 'Proof'. In LyX everything looks ok (including e.g. the EndLabel), but the exported LaTeX looks like: some text. \end{proof} And here comes the next paragraph ... The .dvi consequently looks like some text. [] And here comes the next paragraph ... i.e. there is either a \par or an empty line after the \end{proof} missing. How can I convince LyX to insert one there? One possible solution: Style Proof ... Preamble \newenvironment{proof}{\emph{Proof:}}{\hfill\rule{2mm}{2mm}\par\vspace{2mm}} EndPreamble End ^^^ (note the \par command!)
Re: .layout and \par
"Dekel" == Dekel Tsur [EMAIL PROTECTED] writes: Dekel Style Proof ... Preamble Dekel \newenvironment{proof}{\emph{Proof:}}{\hfill\rule{2mm}{2mm}\par\vspace{2mm}} Dekel EndPreamble End ^^^ (note the \par command!) Or rather \newenvironment{proof} {\trivlist\item[\hskip\labelsep{\em Proof.}]\ignorespaces} {\hfill\rule{2mm}{2mm}\endtrivlist} JMarc
Re: .layout and \par
Style Proof ... Preamble \newenvironment{proof}{\emph{Proof:}}{\hfill\rule{2mm}{2mm}\par\vspace{2mm}} EndPreamble End I obviously was not clear enough. I do have a definition of a proof environment that I want/have to use without modifications. It works in LaTeX iff \end{proof} is followed by \par (or an empty line). When LyX exports to LaTeX it does not add \par (or an empty line) after \end{proof} (Which is, after all, entirely reasonable) I was asking how to convince LyX to add a \par in this special case by using layout features only. Andre' PS: Somebody might argue that requiring an extra \par after \end{env} is broken behaviour of this environment, but that's not the point. -- It'll take a long time to eat 63.000 peanuts. André Pönitz . [EMAIL PROTECTED]
Re: .layout and \par
"Andre" == Andre Poenitz [EMAIL PROTECTED] writes: Andre I obviously was not clear enough. I do have a definition of a Andre proof environment that I want/have to use without Andre modifications. Andre It works in LaTeX iff \end{proof} is followed by \par (or an Andre empty line). That's not possible now. So your choice is either to have the class fixed, or to have LyX fixed :) JMarc PS: this is definitely an area we should investigate...
Re: .layout and \par
"Andre" == Andre Poenitz [EMAIL PROTECTED] writes: Andre I fiddled with a .layout file, and there is now a style Andre 'Proof'. In LyX everything looks ok (including e.g. the Andre EndLabel), but the exported LaTeX looks like: Andre some text. \end{proof} And here comes the next paragraph Andre ... Andre The .dvi consequently looks like Andre some text. [] And here comes the next paragraph ... IMO, your proof definition is a bit weak :) Can we see it? JMarc
Re: .layout and \par
First of all, thank you Jean-Marc. 'relyx -r' - this option is not directly available from the GUi, is it? Anyway, I guess it will help. The 'proof' thingy: Style Theorem MarginFirst_Dynamic LatexType Environment LatexName theorem ParSkip 0.4 ItemSep 0.2 TopSep0.7 BottomSep 0.7 ParSep0.3 Align Block AlignPossible Block, Left LabelSep xx LabelType Static LabelString "Theorem #." End Style Proof CopyStyle Theorem LatexName proof LabelString "Proof." #EndLabelString "[]" EndLabelType Box End It's mainly copied from... foils.layout(?) Andre' -- It'll take a long time to eat 63.000 peanuts. André Pönitz . [EMAIL PROTECTED]
Re: .layout and \par
"Andre" == Andre Poenitz [EMAIL PROTECTED] writes: Andre First of all, thank you Jean-Marc. 'relyx -r' - this option is Andre not directly available from the GUi, is it? Anyway, I guess it Andre will help. No, it is indeed not included in the GUI. Amir asked for help there, and nobody stepped in. Andre The 'proof' thingy: I was referring to the actual code. How do you define it latex-wise? JMarc
Re: .layout and \par
No, it is indeed not included in the GUI. Amir asked for help there, and nobody stepped in. I have no experience at all with GUIs except with something that can be built with Tk (from Tcl/Tk). And xforms is quite a bit to go from there... If reLyX could identify the layout (e.g Andre The 'proof' thingy: I was referring to the actual code. How do you define it latex-wise? It's from siamltex.cls... urmh... and it dont' have it at hand right now. I'll have a look at it once I get home tonight. Andre' -- It'll take a long time to eat 63.000 peanuts. André Pönitz . [EMAIL PROTECTED]
Re: .layout and \par
On Fri, Jul 14, 2000 at 08:22:55AM +0200, Andre Poenitz wrote: I fiddled with a .layout file, and there is now a style 'Proof'. In LyX everything looks ok (including e.g. the EndLabel), but the exported LaTeX looks like: some text. \end{proof} And here comes the next paragraph ... The .dvi consequently looks like some text. [] And here comes the next paragraph ... i.e. there is either a \par or an empty line after the \end{proof} missing. How can I convince LyX to insert one there? One possible solution: Style Proof ... Preamble \newenvironment{proof}{\emph{Proof:}}{\hfill\rule{2mm}{2mm}\par\vspace{2mm}} EndPreamble End ^^^ (note the \par command!)
Re: .layout and \par
"Dekel" == Dekel Tsur [EMAIL PROTECTED] writes: Dekel Style Proof ... Preamble Dekel \newenvironment{proof}{\emph{Proof:}}{\hfill\rule{2mm}{2mm}\par\vspace{2mm}} Dekel EndPreamble End ^^^ (note the \par command!) Or rather \newenvironment{proof} {\trivlist\item[\hskip\labelsep{\em Proof.}]\ignorespaces} {\hfill\rule{2mm}{2mm}\endtrivlist} JMarc
Re: .layout and \par
Style Proof ... Preamble \newenvironment{proof}{\emph{Proof:}}{\hfill\rule{2mm}{2mm}\par\vspace{2mm}} EndPreamble End I obviously was not clear enough. I do have a definition of a proof environment that I want/have to use without modifications. It works in LaTeX iff \end{proof} is followed by \par (or an empty line). When LyX exports to LaTeX it does not add \par (or an empty line) after \end{proof} (Which is, after all, entirely reasonable) I was asking how to convince LyX to add a \par in this special case by using layout features only. Andre' PS: Somebody might argue that requiring an extra \par after \end{env} is broken behaviour of this environment, but that's not the point. -- It'll take a long time to eat 63.000 peanuts. André Pönitz . [EMAIL PROTECTED]
Re: .layout and \par
"Andre" == Andre Poenitz [EMAIL PROTECTED] writes: Andre I obviously was not clear enough. I do have a definition of a Andre proof environment that I want/have to use without Andre modifications. Andre It works in LaTeX iff \end{proof} is followed by \par (or an Andre empty line). That's not possible now. So your choice is either to have the class fixed, or to have LyX fixed :) JMarc PS: this is definitely an area we should investigate...
Re: .layout and \par
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> I fiddled with a .layout file, and there is now a style Andre> 'Proof'. In LyX everything looks ok (including e.g. the Andre> EndLabel), but the exported LaTeX looks like: Andre> some text. \end{proof} And here comes the next paragraph Andre> ... Andre> The .dvi consequently looks like Andre> some text. [] And here comes the next paragraph ... IMO, your proof definition is a bit weak :) Can we see it? JMarc
Re: .layout and \par
First of all, thank you Jean-Marc. 'relyx -r' - this option is not directly available from the GUi, is it? Anyway, I guess it will help. The 'proof' thingy: Style Theorem MarginFirst_Dynamic LatexType Environment LatexName theorem ParSkip 0.4 ItemSep 0.2 TopSep0.7 BottomSep 0.7 ParSep0.3 Align Block AlignPossible Block, Left LabelSep xx LabelType Static LabelString "Theorem #." End Style Proof CopyStyle Theorem LatexName proof LabelString "Proof." #EndLabelString "[]" EndLabelType Box End It's mainly copied from... foils.layout(?) Andre' -- It'll take a long time to eat 63.000 peanuts. André Pönitz . [EMAIL PROTECTED]
Re: .layout and \par
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> First of all, thank you Jean-Marc. 'relyx -r' - this option is Andre> not directly available from the GUi, is it? Anyway, I guess it Andre> will help. No, it is indeed not included in the GUI. Amir asked for help there, and nobody stepped in. Andre> The 'proof' thingy: I was referring to the actual code. How do you define it latex-wise? JMarc
Re: .layout and \par
> No, it is indeed not included in the GUI. Amir asked for help there, > and nobody stepped in. I have no experience at all with GUIs except with something that can be built with Tk (from Tcl/Tk). And xforms is quite a bit to go from there... If reLyX could identify the layout (e.g > Andre> The 'proof' thingy: > I was referring to the actual code. How do you define it latex-wise? It's from siamltex.cls... urmh... and it dont' have it at hand right now. I'll have a look at it once I get home tonight. Andre' -- It'll take a long time to eat 63.000 peanuts. André Pönitz . [EMAIL PROTECTED]
Re: .layout and \par
On Fri, Jul 14, 2000 at 08:22:55AM +0200, Andre Poenitz wrote: > > I fiddled with a .layout file, and there is now a style 'Proof'. > > In LyX everything looks ok (including e.g. the EndLabel), > but the exported LaTeX looks like: > > some text. > \end{proof} > And here comes the next paragraph ... > > The .dvi consequently looks like > > some text. [] And here comes the next paragraph ... > > i.e. there is either a \par or an empty line after the \end{proof} > missing. How can I convince LyX to insert one there? One possible solution: Style Proof ... Preamble \newenvironment{proof}{\emph{Proof:}}{\hfill\rule{2mm}{2mm}\par\vspace{2mm}} EndPreamble End ^^^ (note the \par command!)
Re: .layout and \par
> "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes: Dekel> Style Proof ... Preamble Dekel> \newenvironment{proof}{\emph{Proof:}}{\hfill\rule{2mm}{2mm}\par\vspace{2mm}} Dekel> EndPreamble End ^^^ (note the \par command!) Or rather \newenvironment{proof} {\trivlist\item[\hskip\labelsep{\em Proof.}]\ignorespaces} {\hfill\rule{2mm}{2mm}\endtrivlist} JMarc
Re: .layout and \par
> Style Proof > ... > Preamble > \newenvironment{proof}{\emph{Proof:}}{\hfill\rule{2mm}{2mm}\par\vspace{2mm}} > EndPreamble > End I obviously was not clear enough. I do have a definition of a proof environment that I want/have to use without modifications. It works in LaTeX iff \end{proof} is followed by \par (or an empty line). When LyX exports to LaTeX it does not add \par (or an empty line) after \end{proof} (Which is, after all, entirely reasonable) I was asking how to convince LyX to add a \par in this special case by using layout features only. Andre' PS: Somebody might argue that requiring an extra \par after \end{env} is broken behaviour of this environment, but that's not the point. -- It'll take a long time to eat 63.000 peanuts. André Pönitz . [EMAIL PROTECTED]
Re: .layout and \par
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> I obviously was not clear enough. I do have a definition of a Andre> proof environment that I want/have to use without Andre> modifications. Andre> It works in LaTeX iff \end{proof} is followed by \par (or an Andre> empty line). That's not possible now. So your choice is either to have the class fixed, or to have LyX fixed :) JMarc PS: this is definitely an area we should investigate...
.layout and \par
I fiddled with a .layout file, and there is now a style 'Proof'. In LyX everything looks ok (including e.g. the EndLabel), but the exported LaTeX looks like: some text. \end{proof} And here comes the next paragraph ... The .dvi consequently looks like some text. [] And here comes the next paragraph ... i.e. there is either a \par or an empty line after the \end{proof} missing. How can I convince LyX to insert one there? Andre' -- It'll take a long time to eat 63.000 peanuts. André Pönitz . [EMAIL PROTECTED]
.layout and \par
I fiddled with a .layout file, and there is now a style 'Proof'. In LyX everything looks ok (including e.g. the EndLabel), but the exported LaTeX looks like: some text. \end{proof} And here comes the next paragraph ... The .dvi consequently looks like some text. [] And here comes the next paragraph ... i.e. there is either a \par or an empty line after the \end{proof} missing. How can I convince LyX to insert one there? Andre' -- It'll take a long time to eat 63.000 peanuts. André Pönitz . [EMAIL PROTECTED]
.layout and \par
I fiddled with a .layout file, and there is now a style 'Proof'. In LyX everything looks ok (including e.g. the EndLabel), but the exported LaTeX looks like: some text. \end{proof} And here comes the next paragraph ... The .dvi consequently looks like some text. [] And here comes the next paragraph ... i.e. there is either a \par or an empty line after the \end{proof} missing. How can I convince LyX to insert one there? Andre' -- It'll take a long time to eat 63.000 peanuts. André Pönitz . [EMAIL PROTECTED]