Re: Note inset question
On Wed, Mar 10, 2004 at 05:08:41PM +0100, Georg Baum wrote: Andre Poenitz wrote: On Mon, Mar 08, 2004 at 05:55:48PM +0100, Georg Baum wrote: #! /bin/sh SUFFIX=-1.4 INSTDIR=/path/to/lyx1.4cvs tex2lyx${SUFFIX} $@ | ${INSTDIR}/share/lyx/lyx2lyx/lyx2lyx -t 221 Shouldn't that be $@ (in double quotes?) I don't know. I guess the double quotes are needed if you have spaces in file names, but are wrong if you want to pass more than one option. No. Look up $@ in the shell manual. It's made exactly for this purpose. Andre'
Re: Note inset question
On Wed, Mar 10, 2004 at 05:08:41PM +0100, Georg Baum wrote: Andre Poenitz wrote: On Mon, Mar 08, 2004 at 05:55:48PM +0100, Georg Baum wrote: #! /bin/sh SUFFIX=-1.4 INSTDIR=/path/to/lyx1.4cvs tex2lyx${SUFFIX} $@ | ${INSTDIR}/share/lyx/lyx2lyx/lyx2lyx -t 221 Shouldn't that be $@ (in double quotes?) I don't know. I guess the double quotes are needed if you have spaces in file names, but are wrong if you want to pass more than one option. No. Look up $@ in the shell manual. It's made exactly for this purpose. Andre'
Re: Note inset question
On Wed, Mar 10, 2004 at 05:08:41PM +0100, Georg Baum wrote: > Andre Poenitz wrote: > > > On Mon, Mar 08, 2004 at 05:55:48PM +0100, Georg Baum wrote: > >> #! /bin/sh > >> SUFFIX="-1.4" > >> INSTDIR="/path/to/lyx1.4cvs" > >> tex2lyx${SUFFIX} $@ | ${INSTDIR}/share/lyx/lyx2lyx/lyx2lyx -t 221 > > > > Shouldn't that be "$@" (in double quotes?) > > I don't know. I guess the double quotes are needed if you have spaces in > file names, but are wrong if you want to pass more than one option. No. Look up $@ in the shell manual. It's made exactly for this purpose. Andre'
Re: Note inset question
Andre Poenitz wrote: On Mon, Mar 08, 2004 at 05:55:48PM +0100, Georg Baum wrote: #! /bin/sh SUFFIX=-1.4 INSTDIR=/path/to/lyx1.4cvs tex2lyx${SUFFIX} $@ | ${INSTDIR}/share/lyx/lyx2lyx/lyx2lyx -t 221 Shouldn't that be $@ (in double quotes?) I don't know. I guess the double quotes are needed if you have spaces in file names, but are wrong if you want to pass more than one option. Georg
Re: Note inset question
On Wed, 10 Mar 2004, Georg Baum wrote: Andre Poenitz wrote: On Mon, Mar 08, 2004 at 05:55:48PM +0100, Georg Baum wrote: #! /bin/sh SUFFIX=-1.4 INSTDIR=/path/to/lyx1.4cvs tex2lyx${SUFFIX} $@ | ${INSTDIR}/share/lyx/lyx2lyx/lyx2lyx -t 221 Shouldn't that be $@ (in double quotes?) I don't know. I guess the double quotes are needed if you have spaces in file names, but are wrong if you want to pass more than one option. $@ will quote multiple arguments separately. This is different from $* which would take multiple arguments and create a single argument. /Christian -- Christian Ridderström http://www.md.kth.se/~chr
Re: Note inset question
Andre Poenitz wrote: On Mon, Mar 08, 2004 at 05:55:48PM +0100, Georg Baum wrote: #! /bin/sh SUFFIX=-1.4 INSTDIR=/path/to/lyx1.4cvs tex2lyx${SUFFIX} $@ | ${INSTDIR}/share/lyx/lyx2lyx/lyx2lyx -t 221 Shouldn't that be $@ (in double quotes?) I don't know. I guess the double quotes are needed if you have spaces in file names, but are wrong if you want to pass more than one option. Georg
Re: Note inset question
On Wed, 10 Mar 2004, Georg Baum wrote: Andre Poenitz wrote: On Mon, Mar 08, 2004 at 05:55:48PM +0100, Georg Baum wrote: #! /bin/sh SUFFIX=-1.4 INSTDIR=/path/to/lyx1.4cvs tex2lyx${SUFFIX} $@ | ${INSTDIR}/share/lyx/lyx2lyx/lyx2lyx -t 221 Shouldn't that be $@ (in double quotes?) I don't know. I guess the double quotes are needed if you have spaces in file names, but are wrong if you want to pass more than one option. $@ will quote multiple arguments separately. This is different from $* which would take multiple arguments and create a single argument. /Christian -- Christian Ridderström http://www.md.kth.se/~chr
Re: Note inset question
Andre Poenitz wrote: > On Mon, Mar 08, 2004 at 05:55:48PM +0100, Georg Baum wrote: >> #! /bin/sh >> SUFFIX="-1.4" >> INSTDIR="/path/to/lyx1.4cvs" >> tex2lyx${SUFFIX} $@ | ${INSTDIR}/share/lyx/lyx2lyx/lyx2lyx -t 221 > > Shouldn't that be "$@" (in double quotes?) I don't know. I guess the double quotes are needed if you have spaces in file names, but are wrong if you want to pass more than one option. Georg
Re: Note inset question
On Wed, 10 Mar 2004, Georg Baum wrote: > Andre Poenitz wrote: > > > On Mon, Mar 08, 2004 at 05:55:48PM +0100, Georg Baum wrote: > >> #! /bin/sh > >> SUFFIX="-1.4" > >> INSTDIR="/path/to/lyx1.4cvs" > >> tex2lyx${SUFFIX} $@ | ${INSTDIR}/share/lyx/lyx2lyx/lyx2lyx -t 221 > > > > Shouldn't that be "$@" (in double quotes?) > > I don't know. I guess the double quotes are needed if you have spaces in > file names, but are wrong if you want to pass more than one option. "$@" will quote multiple arguments separately. This is different from "$*" which would take multiple arguments and create a single argument. /Christian -- Christian Ridderström http://www.md.kth.se/~chr
Re: Note inset question
On Sun, Mar 07, 2004 at 07:09:12PM +0100, Juergen Spitzmueller wrote: Uwe Stöhr wrote: Is there a possibility to include LyX's note insets into the LaTeX output as comment? No(t yet). LyX 1.4 will have an improved Note/Comment environment where you can toggle between Note and Comment (i.e. the comment environment, not the %-comments). There is the possibility to (mis) use ERT-Boxes. Put your note there and start it with a %. Export to LaTeX is fine, but reLyX will silently eat away all %-comments. Could we have an import option to convert % soemthing\n either to a note or to an ERT-Box? Günter -- G.Milde at web.de
Re: Note inset question
Günter Milde wrote: On Sun, Mar 07, 2004 at 07:09:12PM +0100, Juergen Spitzmueller wrote: There is the possibility to (mis) use ERT-Boxes. Put your note there and start it with a %. Export to LaTeX is fine, but reLyX will silently eat away all %-comments. Could we have an import option to convert % soemthing\n either to a note or to an ERT-Box? Try to implement it in reLyX. Then you'll see why it is not there already... I once tried to improve reLyX, but have given up because it was too difficult. As I wrote, tex2lyx is a working alternative. This is the contents of a wrapper script to produce lyx files for lyx 1.3: #! /bin/sh SUFFIX=-1.4 INSTDIR=/path/to/lyx1.4cvs tex2lyx${SUFFIX} $@ | ${INSTDIR}/share/lyx/lyx2lyx/lyx2lyx -t 221 where the real tex2lyx is named tex2lyx-1.4. Georg
Re: Note inset question
On Mon, Mar 08, 2004 at 05:55:48PM +0100, Georg Baum wrote: #! /bin/sh SUFFIX=-1.4 INSTDIR=/path/to/lyx1.4cvs tex2lyx${SUFFIX} $@ | ${INSTDIR}/share/lyx/lyx2lyx/lyx2lyx -t 221 Shouldn't that be $@ (in double quotes?) Andre'
Re: Note inset question
On Sun, Mar 07, 2004 at 07:09:12PM +0100, Juergen Spitzmueller wrote: Uwe Stöhr wrote: Is there a possibility to include LyX's note insets into the LaTeX output as comment? No(t yet). LyX 1.4 will have an improved Note/Comment environment where you can toggle between Note and Comment (i.e. the comment environment, not the %-comments). There is the possibility to (mis) use ERT-Boxes. Put your note there and start it with a %. Export to LaTeX is fine, but reLyX will silently eat away all %-comments. Could we have an import option to convert % soemthing\n either to a note or to an ERT-Box? Günter -- G.Milde at web.de
Re: Note inset question
Günter Milde wrote: On Sun, Mar 07, 2004 at 07:09:12PM +0100, Juergen Spitzmueller wrote: There is the possibility to (mis) use ERT-Boxes. Put your note there and start it with a %. Export to LaTeX is fine, but reLyX will silently eat away all %-comments. Could we have an import option to convert % soemthing\n either to a note or to an ERT-Box? Try to implement it in reLyX. Then you'll see why it is not there already... I once tried to improve reLyX, but have given up because it was too difficult. As I wrote, tex2lyx is a working alternative. This is the contents of a wrapper script to produce lyx files for lyx 1.3: #! /bin/sh SUFFIX=-1.4 INSTDIR=/path/to/lyx1.4cvs tex2lyx${SUFFIX} $@ | ${INSTDIR}/share/lyx/lyx2lyx/lyx2lyx -t 221 where the real tex2lyx is named tex2lyx-1.4. Georg
Re: Note inset question
On Mon, Mar 08, 2004 at 05:55:48PM +0100, Georg Baum wrote: #! /bin/sh SUFFIX=-1.4 INSTDIR=/path/to/lyx1.4cvs tex2lyx${SUFFIX} $@ | ${INSTDIR}/share/lyx/lyx2lyx/lyx2lyx -t 221 Shouldn't that be $@ (in double quotes?) Andre'
Re: Note inset question
On Sun, Mar 07, 2004 at 07:09:12PM +0100, Juergen Spitzmueller wrote: > Uwe Stöhr wrote: > > Is there a possibility to include LyX's note insets into the LaTeX > > output as comment? > > No(t yet). LyX 1.4 will have an improved Note/Comment environment where you > can toggle between Note and Comment (i.e. the comment environment, not the > %-comments). There is the possibility to (mis) use ERT-Boxes. Put your note there and start it with a "%". Export to LaTeX is fine, but reLyX will silently eat away all "%"-comments. Could we have an import option to convert "% soemthing\n" either to a note or to an ERT-Box? Günter -- G.Milde at web.de
Re: Note inset question
Günter Milde wrote: > On Sun, Mar 07, 2004 at 07:09:12PM +0100, Juergen Spitzmueller wrote: > There is the possibility to (mis) use ERT-Boxes. Put your note there and > start it with a "%". > > Export to LaTeX is fine, but reLyX will silently eat away all > "%"-comments. > > Could we have an import option to convert "% soemthing\n" either to a note > or to an ERT-Box? Try to implement it in reLyX. Then you'll see why it is not there already... I once tried to improve reLyX, but have given up because it was too difficult. As I wrote, tex2lyx is a working alternative. This is the contents of a wrapper script to produce lyx files for lyx 1.3: #! /bin/sh SUFFIX="-1.4" INSTDIR="/path/to/lyx1.4cvs" tex2lyx${SUFFIX} $@ | ${INSTDIR}/share/lyx/lyx2lyx/lyx2lyx -t 221 where the "real" tex2lyx is named tex2lyx-1.4. Georg
Re: Note inset question
On Mon, Mar 08, 2004 at 05:55:48PM +0100, Georg Baum wrote: > #! /bin/sh > SUFFIX="-1.4" > INSTDIR="/path/to/lyx1.4cvs" > tex2lyx${SUFFIX} $@ | ${INSTDIR}/share/lyx/lyx2lyx/lyx2lyx -t 221 Shouldn't that be "$@" (in double quotes?) Andre'
Re: Note inset question
Uwe Stöhr wrote: Is there a possibility to include LyX's note insets into the LaTeX output as comment? No(t yet). LyX 1.4 will have an improved Note/Comment environment where you can toggle between Note and Comment (i.e. the comment environment, not the %-comments). I also seem to remember that there have been posted some scripts on this list. You'll find it in the archive. Jürgen.
Re: Note inset question
Uwe Stöhr wrote: Is there a possibility to include LyX's note insets into the LaTeX output as comment? No(t yet). LyX 1.4 will have an improved Note/Comment environment where you can toggle between Note and Comment (i.e. the comment environment, not the %-comments). I also seem to remember that there have been posted some scripts on this list. You'll find it in the archive. Jürgen.
Re: Note inset question
Uwe Stöhr wrote: > Is there a possibility to include LyX's note insets into the LaTeX > output as comment? No(t yet). LyX 1.4 will have an improved Note/Comment environment where you can toggle between Note and Comment (i.e. the comment environment, not the %-comments). I also seem to remember that there have been posted some scripts on this list. You'll find it in the archive. Jürgen.