Re: Looking for a way of circumventing a bug
On Tue, 15 Feb 2005 21:22:38 +0100, Herbert Voss <[EMAIL PROTECTED]> wrote: > I suppose, thet there is no other way here than > insert ERT \hspace*{\parindent} befor the first line > after a proof. An empty ERT + pressing the return key works as well. Paul
Re: Looking for a way of circumventing a bug
Paul Smith wrote: On Tue, 15 Feb 2005 19:39:59 +, Paul Smith <[EMAIL PROTECTED]> wrote: After each proof, the first paragraph is not indented as it should. Any idea to get back the indentation by default? Oh, forget my question: I have just tried with article AMS and it does not do any indentation. So, this should be the expected behaviour. that is true anyway. Same for itemize, description, .. HErbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Re: Looking for a way of circumventing a bug
Paul Smith wrote: On Mon, 14 Feb 2005 21:55:48 +, Paul Smith <[EMAIL PROTECTED]> wrote: no, look for extarticle.layout as an example I can copy the original file stdlayouts.inc and add your definition of the proof environment and rename it. Then, how can we make the new and renamed stdlayouts.inc file specific to the extarticle class? Difficult? Not difficult, really. I have just managed to do that. I suppose, thet there is no other way here than insert ERT \hspace*{\parindent} befor the first line after a proof. A problem of LyX, doesn't insert an empty line, which maybe possible by the layout, but I forgot about it. ->docs Otherwise there maybe an option in ntheorem Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Re: Looking for a way of circumventing a bug
On Tue, 15 Feb 2005 19:39:59 +, Paul Smith <[EMAIL PROTECTED]> wrote: > After each proof, the first paragraph is not indented as it should. > Any idea to get back the indentation by default? Oh, forget my question: I have just tried with article AMS and it does not do any indentation. So, this should be the expected behaviour. Paul
Re: Looking for a way of circumventing a bug
On Mon, 14 Feb 2005 21:33:35 +0100, Herbert Voss <[EMAIL PROTECTED]> wrote: > > (1) can we have a tag for the above, so that we can see within LyX > > that it is a proof? > > yes, with this definition -> see png > > # Proof style definition > Style Proof >MarginStatic >LatexType Environment >LatexName proof >NextNoIndent 1 >LeftMarginMMM >RightMargin MMM >TopSep0.5 >ParSep0.5 >BottomSep 0.5 >Align Block >AlignPossible Block, Left, Right, Center >LabelType Static >LabelString "Proof: " >EndLabelType Filled_Box >Font > Shape Up > SizeNormal >EndFont >LabelFont > Series Bold >EndFont >Preamble > \usepackage[thmmarks]{ntheorem} > \theoremheaderfont{\itshape\bfseries} > \theorembodyfont{\normalfont} > \theoremstyle{nonumberplain} > \theoremsymbol{\rule{1ex}{1ex}} > \newtheorem{proof}{Proof} >Endpreamble > End Herbert, After each proof, the first paragraph is not indented as it should. Any idea to get back the indentation by default? Regards, Paul
Re: Looking for a way of circumventing a bug
On Mon, 14 Feb 2005 21:55:48 +, Paul Smith <[EMAIL PROTECTED]> wrote: > > no, look for extarticle.layout as an example > > I can copy the original file stdlayouts.inc and add your definition of > the proof environment and rename it. Then, how can we make the new and > renamed stdlayouts.inc file specific to the extarticle class? > Difficult? Not difficult, really. I have just managed to do that. Paul
Re: Looking for a way of circumventing a bug
On Mon, 14 Feb 2005 22:24:57 +0100, Herbert Voss <[EMAIL PROTECTED]> wrote: > > Is that difficult? > > no, look for extarticle.layout as an example Herbert, I can copy the original file stdlayouts.inc and add your definition of the proof environment and rename it. Then, how can we make the new and renamed stdlayouts.inc file specific to the extarticle class? Difficult? Paul
Re: Looking for a way of circumventing a bug
Paul Smith wrote: yes, when they also uses ntheorem, then there maybe a package clash. You can create your own layout class, then there is no problem. Is that difficult? no, look for extarticle.layout as an example Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Re: Looking for a way of circumventing a bug
On Mon, 14 Feb 2005 21:33:35 +0100, Herbert Voss <[EMAIL PROTECTED]> wrote: > > (1) can we have a tag for the above, so that we can see within LyX > > that it is a proof? > > yes, with this definition -> see png Very nice! Thanks, Herbert. > > (2) does this solution conflict with other classes when I use LyX to > > work with other documents? > > yes, when they also uses ntheorem, then there maybe a > package clash. You can create your own layout class, > then there is no problem. Is that difficult? Paul
Re: Looking for a way of circumventing a bug
Paul Smith wrote: (1) can we have a tag for the above, so that we can see within LyX that it is a proof? yes, with this definition -> see png # Proof style definition Style Proof MarginStatic LatexType Environment LatexName proof NextNoIndent 1 LeftMarginMMM RightMargin MMM TopSep0.5 ParSep0.5 BottomSep 0.5 Align Block AlignPossible Block, Left, Right, Center LabelType Static LabelString "Proof: " EndLabelType Filled_Box Font Shape Up SizeNormal EndFont LabelFont Series Bold EndFont Preamble \usepackage[thmmarks]{ntheorem} \theoremheaderfont{\itshape\bfseries} \theorembodyfont{\normalfont} \theoremstyle{nonumberplain} \theoremsymbol{\rule{1ex}{1ex}} \newtheorem{proof}{Proof} Endpreamble End (2) does this solution conflict with other classes when I use LyX to work with other documents? yes, when they also uses ntheorem, then there maybe a package clash. You can create your own layout class, then there is no problem. Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes <>
Re: Looking for a way of circumventing a bug
On Mon, 14 Feb 2005 20:21:41 +0100, Herbert Voss <[EMAIL PROTECTED]> wrote: > put the following in ~/.lyx/layouts/stdlayouts.inc > > # Proof style definition > Style Proof >MarginStatic >LatexType Environment >LatexName proof >NextNoIndent 1 >LeftMarginMMM >RightMargin MMM >TopSep0.5 >ParSep0.5 >BottomSep 0.5 >Align Block >AlignPossible Block, Left, Right, Center >LabelType No_Label >Preamble > \usepackage[thmmarks]{ntheorem} > \theoremheaderfont{\itshape\bfseries} > \theorembodyfont{\normalfont} > \theoremstyle{nonumberplain} > \theoremsymbol{\rule{1ex}{1ex}} > \newtheorem{proof}{Proof} >Endpreamble > End Thanks, Herbert. I have two questions: (1) can we have a tag for the above, so that we can see within LyX that it is a proof? (2) does this solution conflict with other classes when I use LyX to work with other documents? Paul
Re: Looking for a way of circumventing a bug
Paul Smith wrote: Dear All Before proceeding, please have a look at my attached example. LyX converts the proof to LaTeX as follows: \begin{proof} This is my short proof. \end{proof} However, due to a bug in the ntheorem package, the end-mark symbol does not appear; one needs to delete the empty lines between "This is my short proof.". Is it possible to instruct LyX to automatically delete those lines? put the following in ~/.lyx/layouts/stdlayouts.inc # Proof style definition Style Proof MarginStatic LatexType Environment LatexName proof NextNoIndent 1 LeftMarginMMM RightMargin MMM TopSep0.5 ParSep0.5 BottomSep 0.5 Align Block AlignPossible Block, Left, Right, Center LabelType No_Label Preamble \usepackage[thmmarks]{ntheorem} \theoremheaderfont{\itshape\bfseries} \theorembodyfont{\normalfont} \theoremstyle{nonumberplain} \theoremsymbol{\rule{1ex}{1ex}} \newtheorem{proof}{Proof} Endpreamble End then restart LyX and you can choose Proof from the layout menu and no additional definitions in the preamble are needed Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Looking for a way of circumventing a bug
Dear All Before proceeding, please have a look at my attached example. LyX converts the proof to LaTeX as follows: \begin{proof} This is my short proof. \end{proof} However, due to a bug in the ntheorem package, the end-mark symbol does not appear; one needs to delete the empty lines between "This is my short proof.". Is it possible to instruct LyX to automatically delete those lines? Thanks in advance, Paul #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage[thmmarks]{ntheorem} \theoremheaderfont{\itshape\bfseries} \theorembodyfont{\normalfont} \theoremstyle{nonumberplain} \theoremsymbol{\rule{1ex}{1ex}} \newtheorem{proof}{Proof} \end_preamble \language american \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash begin{proof} \end_inset \layout Standard This is my short proof. \layout Standard \begin_inset ERT status Collapsed \layout Standard \backslash end{proof} \end_inset \the_end