Re: Translation of LaTeX to LyX comments and back
John == John Levon [EMAIL PROTECTED] writes: John On Fri, Nov 16, 2001 at 02:08:07AM -0500, Matej Cepl wrote: I have again been urged to use vim for editing some document on my archaic notebook (where I use M$-DOS and vim) and I was against unpleasantly surprised, that LyX still does not provide interoperability between LyX and LaTeX in terms of comments. Do you think, that it would be really so hard to implement a translation of any LyX note (Insert/Note) into LaTeX comment (with %) and vice versa? It would make things hugely better for me. John I suppose this would be utterly trivial to code, unless I'm John missing something ? How do you add the % in front of all lines? I do not say it is very difficult, but it does not strike me as 'utterly trivial'. JMarc
Re: Translation of LaTeX to LyX comments and back
On Tue, Nov 20, 2001 at 11:31:54AM +0100, Jean-Marc Lasgouttes wrote: John I suppose this would be utterly trivial to code, unless I'm John missing something ? How do you add the % in front of all lines? I do not say it is very difficult, but it does not strike me as 'utterly trivial'. 1. Hack: Write output to a ostringstream, replace every '\n' by '\n%' plus/minus one extra. 2. Option: Write a custom streambuffre that inserts '\n%' instead of '\n' and one upon creation. Andre' -- André Pönitz .. [EMAIL PROTECTED]
Re: Translation of LaTeX to LyX comments and back
> "John" == John Levon <[EMAIL PROTECTED]> writes: John> On Fri, Nov 16, 2001 at 02:08:07AM -0500, Matej Cepl wrote: >> I have again been urged to use vim for editing some document on my >> archaic notebook (where I use M$-DOS and vim) and I was against >> unpleasantly surprised, that LyX still does not provide >> interoperability between LyX and LaTeX in terms of comments. Do you >> think, that it would be really so hard to implement a translation >> of any LyX note (Insert/Note) into LaTeX comment (with %) and vice >> versa? It would make things hugely better for me. John> I suppose this would be utterly trivial to code, unless I'm John> missing something ? How do you add the % in front of all lines? I do not say it is very difficult, but it does not strike me as 'utterly trivial'. JMarc
Re: Translation of LaTeX to LyX comments and back
On Tue, Nov 20, 2001 at 11:31:54AM +0100, Jean-Marc Lasgouttes wrote: > John> I suppose this would be utterly trivial to code, unless I'm > John> missing something ? > > How do you add the % in front of all lines? I do not say it is very > difficult, but it does not strike me as 'utterly trivial'. 1. Hack: Write output to a ostringstream, replace every '\n' by '\n%' plus/minus one extra. 2. Option: Write a custom streambuffre that inserts '\n%' instead of '\n' and one upon creation. Andre' -- André Pönitz .. [EMAIL PROTECTED]
Re: Translation of LaTeX to LyX comments and back
On Fri, Nov 16, 2001 at 05:08:31PM +, John Levon wrote: On Fri, Nov 16, 2001 at 02:08:07AM -0500, Matej Cepl wrote: I have again been urged to use vim for editing some document on my archaic notebook (where I use M$-DOS and vim) and I was against unpleasantly surprised, that LyX still does not provide interoperability between LyX and LaTeX in terms of comments. Do you think, that it would be really so hard to implement a translation of any LyX note (Insert/Note) into LaTeX comment (with %) and vice versa? It would make things hugely better for me. I suppose this would be utterly trivial to code, unless I'm missing something ? Well, you have to be somewhat careful. You probably don't want to copy every %whatever as a LyX note. What about %'s that are put in to fix line breaks in TeX commands? You might want to check the archives, because I think we discussed this long ago. I know Lars had talked about using Comment style for this. There is a Comment style in LyX already, right? -Amir
Re: Translation of LaTeX to LyX comments and back
On Fri, Nov 16, 2001 at 05:08:31PM +, John Levon wrote: > On Fri, Nov 16, 2001 at 02:08:07AM -0500, Matej Cepl wrote: > > > I have again been urged to use vim for editing some > > document on my archaic notebook (where I use M$-DOS and vim) and > > I was against unpleasantly surprised, that LyX still does not > > provide interoperability between LyX and LaTeX in terms of > > comments. Do you think, that it would be really so hard to > > implement a translation of any LyX note (Insert/Note) into LaTeX > > comment (with %) and vice versa? It would make things hugely > > better for me. > > I suppose this would be utterly trivial to code, unless I'm missing > something ? Well, you have to be somewhat careful. You probably don't want to copy every "%whatever" as a LyX note. What about %'s that are put in to fix line breaks in TeX commands? You might want to check the archives, because I think we discussed this long ago. I know Lars had talked about using Comment style for this. There is a Comment style in LyX already, right? -Amir
Re: Translation of LaTeX to LyX comments and back
On Fri, Nov 16, 2001 at 02:08:07AM -0500, Matej Cepl wrote: I have again been urged to use vim for editing some document on my archaic notebook (where I use M$-DOS and vim) and I was against unpleasantly surprised, that LyX still does not provide interoperability between LyX and LaTeX in terms of comments. Do you think, that it would be really so hard to implement a translation of any LyX note (Insert/Note) into LaTeX comment (with %) and vice versa? It would make things hugely better for me. I suppose this would be utterly trivial to code, unless I'm missing something ? regards john -- Your superior intellect is no match for our puny weapons.
Re: Translation of LaTeX to LyX comments and back
On Fri, Nov 16, 2001 at 02:08:07AM -0500, Matej Cepl wrote: > I have again been urged to use vim for editing some > document on my archaic notebook (where I use M$-DOS and vim) and > I was against unpleasantly surprised, that LyX still does not > provide interoperability between LyX and LaTeX in terms of > comments. Do you think, that it would be really so hard to > implement a translation of any LyX note (Insert/Note) into LaTeX > comment (with %) and vice versa? It would make things hugely > better for me. I suppose this would be utterly trivial to code, unless I'm missing something ? regards john -- "Your superior intellect is no match for our puny weapons."