Re: Baffled by the reasoning

2004-12-22 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: Angus Why do we search for the system_lyxdir as // Path of Angus binary/../share/name of binary/ but the user_lyxdir as // Angus os::homepath() /. + PACKAGE Angus where PACKAGE is defined in config.h as (here) lyx-1.3.6cvs. Angus Why don't we use PACKAGE for

Re: [PATCH] fix pch.h in frontends/qt2/ui

2004-12-22 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: Jean-Marc == Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | Lars Hmm... gcc 3.4.1 is old.. | Jean-Marc I knew this was coming... | Note also that gcc is absolutely not run in this case. You should | rather complain about the version number of

Re: [PATCH] fix pch.h in frontends/qt2/ui

2004-12-22 Thread Jean-Marc Lasgouttes
Lars == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars I was referring to Mandrake. If this is the latest and greatest Lars why ship an old compiler. Well, Mandrakelinux 10.1 was released in october. Since gcc 3.4.2 was released in september, I guess they decided to play safe. Moreover, I

[PATCH] It's Christmas time!

2004-12-22 Thread Jean-Marc Lasgouttes
For as long as LyX has been in use, or almost, people have been complaining that there is no word count feature. Since even abiword has that now ;), I thought it was a good idea to implement it. Using DocIterator, it is really straightforward. One can count words in the whole document or in a

Re: Scientific lyxlength?

2004-12-22 Thread Jean-Marc Lasgouttes
Stephan == Stephan Witt [EMAIL PROTECTED] writes: Stephan Dear LyX developers, today I managed to configure and compile Stephan latest 1.3.x lyx from CVS. While testing the resulting binary Stephan I detected a minor but serious problem: the lyxlength numbers Stephan will be emitted to tex in

Re: Baffled by the reasoning

2004-12-22 Thread Jean-Marc Lasgouttes
Angus == Angus Leeming [EMAIL PROTECTED] writes: Angus If each installed version had a different PACKAGE (which can be Angus specified explicitly at configure-time) then using PACKAGE Angus would be identical to the existing scheme. Yes. I think I created the current scheme at the time when the

Re: [PATCH] It's Christmas time!

2004-12-22 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | For as long as LyX has been in use, or almost, people have been | complaining that there is no word count feature. Since even abiword has | that now ;), I thought it was a good idea to implement it. | Using DocIterator, it is really

Re: [PATCH] It's Christmas time!

2004-12-22 Thread Jean-Marc Lasgouttes
Lars == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars I think we should call the menu entry Statistics, and prepare Lars not only tohave word cound but also paragraph cound, sentence Lars count. Number of floats, footnotes, edit time, length of Lars sentences lengt of paragraphs etc. Well,

Re: [PATCH] fix pch.h in frontends/qt2/ui

2004-12-22 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: Lars == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: | Lars I was referring to Mandrake. If this is the latest and greatest | Lars why ship an old compiler. | Well, Mandrakelinux 10.1 was released in october. Since gcc 3.4.2 was | released in

Re: [PATCH] fix pch.h in frontends/qt2/ui

2004-12-22 Thread Jean-Marc Lasgouttes
Lars == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars In frontends/qt2/ui/Makefile.am? Lars I am not sure. all .C files should already depend on PCH_FILE, Lars so I am not sure that it will make a difference anyway. Lars How come you get the gch with a path? Lars Is this srcdir !=

underline in tex2lyx

2004-12-22 Thread Georg Baum
tex2lyx does not convert \underline, see http://bugzilla.lyx.org/show_bug.cgi?id=1594. This is correct in a strict sense, because LyX uses \underbar, not \underline. From /usr/share/texmf/tex/latex/base/latex.ltx: [EMAIL PROTECTED]@[EMAIL PROTECTED]@}} I do not understand this definition

Re: [PATCH] It's Christmas time!

2004-12-22 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | - edit time: how would we do that? You would need to store when the doc was created in the doc. | - length of sentences and paragraphs: that's not too difficult, but do | we need it? No, but some poeple like to see how complex their sentences

Re: Scientific lyxlength?

2004-12-22 Thread Stephan Witt
Jean-Marc Lasgouttes wrote: Stephan == Stephan Witt [EMAIL PROTECTED] writes: Stephan Dear LyX developers, today I managed to configure and compile Stephan latest 1.3.x lyx from CVS. While testing the resulting binary Stephan I detected a minor but serious problem: the lyxlength numbers Stephan

Re: Scientific lyxlength?

2004-12-22 Thread Stephan Witt
Stephan Witt wrote: Jean-Marc Lasgouttes wrote: Stephan == Stephan Witt [EMAIL PROTECTED] writes: [ snip ] ... and last but not least, the attached example file. Thank you for taking this issue. And now the included graphics... (I forgot it). Regards, Stephan inline: bfs_logo_new.gif

Re: Baffled by the reasoning

2004-12-22 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: Angus I have decided, therefore, to implement your desired 'package' Angus class as a standalone program. It's certainly not finished Angus (getting lost in the logic of system_lyxdir) but the bones are Angus below. What you propose looks good to me. No doubt

Re: [PATCH] It's Christmas time!

2004-12-22 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: Concerning the stats you propose: - paragraph count: should be easy, just count the number of times where dit.pos() == 0. - sentence count: how do you do this? Count each occurence of `.!?' ? Do : and ; close a sentence? Never ask this question to a linguist

Re: underline in tex2lyx

2004-12-22 Thread Jean-Marc Lasgouttes
Georg == Georg Baum [EMAIL PROTECTED] writes: Georg tex2lyx does not convert \underline, see Georg http://bugzilla.lyx.org/show_bug.cgi?id=1594. This is correct Georg in a strict sense, because LyX uses \underbar, not \underline. Georg From /usr/share/texmf/tex/latex/base/latex.ltx: Georg

Re: [PATCH] It's Christmas time!

2004-12-22 Thread Jean-Marc Lasgouttes
Lars == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | - Lars edit time: how would we do that? Lars You would need to store when the doc was created in the doc. But this does not count the time during which it was open (non read-only) in a

Re: Baffled by the reasoning

2004-12-22 Thread Jean-Marc Lasgouttes
Angus == Angus Leeming [EMAIL PROTECTED] writes: Angus Or are all warning messages just output in English until the Angus localedir and its po files is found? It all feels very 'chicken Angus and egg'-ish. Yes. I think that's good enough. JMarc

Re: [PATCH] It's Christmas time!

2004-12-22 Thread Jean-Marc Lasgouttes
Juergen == Juergen Spitzmueller [EMAIL PROTECTED] writes: - number of floats, footnotes: is this really useful to anybody? Juergen Yes, to me :-) What do you need? Just footnotes? All floats? If we output too much information, it will be more distracting than useful. - length of sentences

Re: Scientific lyxlength?

2004-12-22 Thread Jean-Marc Lasgouttes
Stephan == Stephan Witt [EMAIL PROTECTED] writes: Stephan ... and last but not least, the attached example file. Thanks for the file. I really do not know what happens. Actually I did my testing with 'Spacing above' in paragraph layout, and there a custom value of 140pt does not lead to any

Re: [PATCH] It's Christmas time!

2004-12-22 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: Juergen Yes, to me :-) What do you need? Just footnotes? All floats? If we output too much information, it will be more distracting than useful. Maybe: Footnotes, Figure Floats, Table Floats. But see below. - length of sentences and paragraphs: that's not too

Re: underline in tex2lyx

2004-12-22 Thread Andreas Vox
Georg Baum [EMAIL PROTECTED] writes: From /usr/share/texmf/tex/latex/base/latex.ltx: \def\underbar#1{\underline{\sbox\tw@ [EMAIL PROTECTED]@ [EMAIL PROTECTED] I do not understand this definition and need therefore help: Should tex2lyx recognize \underline as \underbar and print a

Re: [PATCH] It's Christmas time!

2004-12-22 Thread Jean-Marc Lasgouttes
Juergen == Juergen Spitzmueller [EMAIL PROTECTED] writes: Juergen I think that the word count feature is the most important Juergen task for now. People will love you for this. That was the idea (not having people love me, but doing something about it). Juergen All other things can go in

Re: underline in tex2lyx

2004-12-22 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: Changing LyX to use \underline instead of \underbar would be nice too, but I am not sure it is safe. Or maybe switch to ulem or soul (which results of course in data change). Jürgen

Re: underline in tex2lyx

2004-12-22 Thread Jean-Marc Lasgouttes
Andreas == Andreas Vox [EMAIL PROTECTED] writes: Andreas This means that \underline puts the bar beneath any text Andreas while \underbar puts the bar at the baseline, cutting through Andreas ys, gs, qs, ps etc. Andreas \underbar looks more useful to me for emphasing text. Thanks for the

Re: underline in tex2lyx

2004-12-22 Thread Georg Baum
Andreas Vox wrote: The code is equivalent to \def\underbar#1{\underline{\sbox2{#1}\dp2 0\box2}} which stores its argument in box #2, sets the box' depth to zero and uses this box as an argument to \underline. This means that \underline puts the bar beneath any text while \underbar puts

Re: Baffled by the reasoning

2004-12-22 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: Angus Or are all warning messages just output in English until the Angus localedir and its po files is found? It all feels very 'chicken Angus and egg'-ish. Yes. I think that's good enough. Actually, the 'real' solution would be for lyxerr to store a

Re: Baffled by the reasoning

2004-12-22 Thread Lars Gullik Bjønnes
Angus Leeming [EMAIL PROTECTED] writes: | Jean-Marc Lasgouttes wrote: Angus Or are all warning messages just output in English until the Angus localedir and its po files is found? It all feels very 'chicken Angus and egg'-ish. Yes. I think that's good enough. | Actually, the 'real'

Re: underline in tex2lyx

2004-12-22 Thread Jean-Marc Lasgouttes
Georg == Georg Baum [EMAIL PROTECTED] writes: Georg So there is a visible difference between the two. I am Georg therefore not changing tex2lyx and leave \underline in ERT. This may be the kind of situation where we could have a --strict option to tex2lyx that uses ERT every time there is a

Re: underline in tex2lyx

2004-12-22 Thread Georg Baum
Jean-Marc Lasgouttes wrote: This may be the kind of situation where we could have a --strict option to tex2lyx that uses ERT every time there is a tiny difference, the default being to use the translation that makes more sense. Yes. One could even think of finer granularity (writer2latex has

[patch] Fix bug 1750

2004-12-22 Thread Georg Baum
The attached patch fixes bug 1750. The first problem was that the second optional argument of \newcommand was not handled in the preamble. The second problem was that self defined commands were not stored in known_commands and therefore not parsed correctly when they had a optional argument. The

Re: [patch] Fix bug 1750

2004-12-22 Thread Herbert Voss
Georg Baum wrote: The patch is not 100% correct, because it does ignore the scope of the commands. This is only a problem if somebody does redefine a command with a different number of arguments, e.g. something like the attached .tex file. Implementing correct scoping would be some work, it would

Help needed understanding some code

2004-12-22 Thread Angus Leeming
I'm trying to understand why all this is needed to ascertain the full path to argv[0], passed to LyX from the command line. string arg0 = internal_path(argv[0]); // Expand ./ and ~/ string expanded_arg0 = ExpandPath(arg0); if (!os::is_absolute_path(expanded_arg0)) { //

[patch] fix bug 1542

2004-12-22 Thread Georg Baum
Here comes an early christmas gift: fix bug 1542. The problem is that the math parser may try to add too many rows or columns to equation types that don't support them, e.g the following two equations do not work: \begin{multline} 12\\ \end{multline} \begin{equation} 1\\[2mm] 2\\ 3

Re: [patch] Fix bug 1750

2004-12-22 Thread Georg Baum
Herbert Voss wrote: \def\foo#1#2{baz #1 #2} is also possible, and in also in other combination Oh yes. Is anybody masochistic enough to look at the various \def variants? I ignored them completely until now. Georg

Re: Help needed understanding some code

2004-12-22 Thread Georg Baum
Angus Leeming wrote: To be specific, I don't see why 1. ExpandPath is needed at all. 2. What the thing inside the if block is meant to be achieving. 3. What the idea behind removing /.libs/ is all about. Surely, the LyX executable is to be found at build_dir/src/lyx if it's being run

Re: [patch] Fix bug 1750

2004-12-22 Thread Herbert Voss
Georg Baum wrote: \def\foo#1#2{baz #1 #2} is also possible, and in also in other combination Oh yes. Is anybody masochistic enough to look at the various \def variants? I ignored them completely until now. it is senseless to parse all these macro definitions. \def\foo#1#2{...} \def\foo#1:#2{...}

Re: [patch] Fix bug 1750

2004-12-22 Thread Kuba Ober
for more than 10 years the latex world is waiting for a parser, which works ... TeX? I presume that the safest, if not very lightweight way would be to use TeX itself. Reimplementing crux of TeX as far as macro processing goes isn't that hard if one has TeXbook handy, but if one could just

Re: [patch] Fix bug 1750

2004-12-22 Thread Herbert Voss
Kuba Ober wrote: for more than 10 years the latex world is waiting for a parser, which works ... TeX? I presume that the safest, if not very lightweight way would be to use TeX itself. Reimplementing crux of TeX as far as macro processing goes isn't that hard if one has TeXbook handy, but if

Re: [patch] Fix bug 1750

2004-12-22 Thread Kuba Ober
On roda 22 grudzie 2004 05:45 pm, Herbert Voss wrote: Kuba Ober wrote: for more than 10 years the latex world is waiting for a parser, which works ... TeX? I presume that the safest, if not very lightweight way would be to use TeX itself. Reimplementing crux of TeX as far as macro

Re: Configure problems for lyx-140 on Mac

2004-12-22 Thread Andreas Vox
Lars Gullik Bjnnes [EMAIL PROTECTED] writes: So this should absolutely be reported to apple. Then they can fix it. I just did that. (problem ID 3932345, if anyone cares) While we wait on Apple to fix this, couldn't we use the wonderful and apparently indispensable -isystem option of GCC? We

Re: Configure problems for lyx-140 on Mac

2004-12-22 Thread Angus Leeming
Andreas Vox wrote: So this should absolutely be reported to apple. Then they can fix it. I just did that. (problem ID 3932345, if anyone cares) While we wait on Apple to fix this, couldn't we use the wonderful and apparently indispensable -isystem option of GCC? We could fix the bug

Re: Configure problems for lyx-140 on Mac

2004-12-22 Thread Andreas Vox
Angus Leeming [EMAIL PROTECTED] writes: It seems to me that we have control over the contents of boost_concept_check.h, Hmm, I need sudo if I want to change the contents of /usr/include/gcc/darwin/3.3/c++/bits/boost_concept_check.h This was incorporated into GCC and is not in

Re: Baffled by the reasoning

2004-12-22 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > Angus> Why do we search for the system_lyxdir as // Path of > Angus> binary/../share/name of binary/ but the user_lyxdir as // > Angus> os::homepath() "/." + PACKAGE > > Angus> where PACKAGE is defined in config.h as (here) "lyx-1.3.6cvs". > > Angus> Why don't we

Re: [PATCH] fix pch.h in frontends/qt2/ui

2004-12-22 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > | Lars> Hmm... gcc 3.4.1 is old.. > | Jean-Marc> I knew this was coming... > | Note also that gcc is absolutely not run in this case. You should | rather complain about the

Re: [PATCH] fix pch.h in frontends/qt2/ui

2004-12-22 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> I was referring to Mandrake. If this is the latest and greatest Lars> why ship an old compiler. Well, Mandrakelinux 10.1 was released in october. Since gcc 3.4.2 was released in september, I guess they decided to play safe.

[PATCH] It's Christmas time!

2004-12-22 Thread Jean-Marc Lasgouttes
For as long as LyX has been in use, or almost, people have been complaining that there is no word count feature. Since even abiword has that now ;), I thought it was a good idea to implement it. Using DocIterator, it is really straightforward. One can count words in the whole document or in a

Re: Scientific lyxlength?

2004-12-22 Thread Jean-Marc Lasgouttes
> "Stephan" == Stephan Witt <[EMAIL PROTECTED]> writes: Stephan> Dear LyX developers, today I managed to configure and compile Stephan> latest 1.3.x lyx from CVS. While testing the resulting binary Stephan> I detected a minor but serious problem: the lyxlength numbers Stephan> will be emitted

Re: Baffled by the reasoning

2004-12-22 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> If each installed version had a different PACKAGE (which can be Angus> specified explicitly at configure-time) then using PACKAGE Angus> would be identical to the existing scheme. Yes. I think I created the current scheme at the

Re: [PATCH] It's Christmas time!

2004-12-22 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | For as long as LyX has been in use, or almost, people have been | complaining that there is no word count feature. Since even abiword has | that now ;), I thought it was a good idea to implement it. > | Using DocIterator, it is really

Re: [PATCH] It's Christmas time!

2004-12-22 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> I think we should call the menu entry "Statistics", and prepare Lars> not only tohave word cound but also paragraph cound, sentence Lars> count. Number of floats, footnotes, edit time, length of Lars> sentences lengt of

Re: [PATCH] fix pch.h in frontends/qt2/ui

2004-12-22 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> I was referring to Mandrake. If this is the latest and greatest | Lars> why ship an old compiler. > | Well, Mandrakelinux 10.1 was released in october. Since gcc 3.4.2 was |

Re: [PATCH] fix pch.h in frontends/qt2/ui

2004-12-22 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> In frontends/qt2/ui/Makefile.am? Lars> I am not sure. all .C files should already depend on PCH_FILE, Lars> so I am not sure that it will make a difference anyway. Lars> How come you get the gch with a path? Lars> Is this

underline in tex2lyx

2004-12-22 Thread Georg Baum
tex2lyx does not convert \underline, see http://bugzilla.lyx.org/show_bug.cgi?id=1594. This is correct in a strict sense, because LyX uses \underbar, not \underline. >From /usr/share/texmf/tex/latex/base/latex.ltx: [EMAIL PROTECTED]@[EMAIL PROTECTED]@}} I do not understand this definition

Re: [PATCH] It's Christmas time!

2004-12-22 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | - edit time: how would we do that? You would need to store when the doc was created in the doc. > | - length of sentences and paragraphs: that's not too difficult, but do | we need it? No, but some poeple like to see how complex their

Re: Scientific lyxlength?

2004-12-22 Thread Stephan Witt
Jean-Marc Lasgouttes wrote: "Stephan" == Stephan Witt <[EMAIL PROTECTED]> writes: Stephan> Dear LyX developers, today I managed to configure and compile Stephan> latest 1.3.x lyx from CVS. While testing the resulting binary Stephan> I detected a minor but serious problem: the lyxlength numbers

Re: Scientific lyxlength?

2004-12-22 Thread Stephan Witt
Stephan Witt wrote: Jean-Marc Lasgouttes wrote: "Stephan" == Stephan Witt <[EMAIL PROTECTED]> writes: [ snip ] ... and last but not least, the attached example file. Thank you for taking this issue. And now the included graphics... (I forgot it). Regards, Stephan <>

Re: Baffled by the reasoning

2004-12-22 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > Angus> I have decided, therefore, to implement your desired 'package' > Angus> class as a standalone program. It's certainly not finished > Angus> (getting lost in the logic of system_lyxdir) but the bones are > Angus> below. > > What you propose looks good to me.

Re: [PATCH] It's Christmas time!

2004-12-22 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Concerning the stats you propose: > > - paragraph count: should be easy, just count the number of times > where dit.pos() == 0. > > - sentence count: how do you do this? Count each occurence of `.!?' ? > Do : and ; close a sentence? Never ask this question to a

Re: underline in tex2lyx

2004-12-22 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> tex2lyx does not convert \underline, see Georg> http://bugzilla.lyx.org/show_bug.cgi?id=1594. This is correct Georg> in a strict sense, because LyX uses \underbar, not \underline. Georg> From /usr/share/texmf/tex/latex/base/latex.ltx:

Re: [PATCH] It's Christmas time!

2004-12-22 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | - Lars> edit time: how would we do that? Lars> You would need to store when the doc was created in the doc. But this does not count the time during which it was open (non

Re: Baffled by the reasoning

2004-12-22 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Or are all warning messages just output in English until the Angus> localedir and its po files is found? It all feels very 'chicken Angus> and egg'-ish. Yes. I think that's good enough. JMarc

Re: [PATCH] It's Christmas time!

2004-12-22 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: >> - number of floats, footnotes: is this really useful to anybody? Juergen> Yes, to me :-) What do you need? Just footnotes? All floats? If we output too much information, it will be more distracting than useful. >> - length

Re: Scientific lyxlength?

2004-12-22 Thread Jean-Marc Lasgouttes
> "Stephan" == Stephan Witt <[EMAIL PROTECTED]> writes: Stephan> ... and last but not least, the attached example file. Thanks for the file. I really do not know what happens. Actually I did my testing with 'Spacing above' in paragraph layout, and there a custom value of 140pt does not lead

Re: [PATCH] It's Christmas time!

2004-12-22 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Juergen> Yes, to me :-) > > What do you need? Just footnotes? All floats? If we output too much > information, it will be more distracting than useful. Maybe: Footnotes, Figure Floats, Table Floats. But see below. >>> - length of sentences and paragraphs: that's

Re: underline in tex2lyx

2004-12-22 Thread Andreas Vox
Georg Baum <[EMAIL PROTECTED]> writes: > From /usr/share/texmf/tex/latex/base/latex.ltx: > > \def\underbar#1{\underline{\sbox\tw@ [EMAIL PROTECTED]@ [EMAIL PROTECTED] > > I do not understand this definition and need therefore help: Should tex2lyx > recognize \underline as \underbar and print

Re: [PATCH] It's Christmas time!

2004-12-22 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> I think that the word count feature is the most important Juergen> task for now. People will love you for this. That was the idea (not having people love me, but doing something about it). Juergen> All other things

Re: underline in tex2lyx

2004-12-22 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Changing LyX to use \underline instead of \underbar would > be nice too, but I am not sure it is safe. Or maybe switch to ulem or soul (which results of course in data change). Jürgen

Re: underline in tex2lyx

2004-12-22 Thread Jean-Marc Lasgouttes
> "Andreas" == Andreas Vox <[EMAIL PROTECTED]> writes: Andreas> This means that \underline puts the bar beneath any text Andreas> while \underbar puts the bar at the baseline, cutting through Andreas> ys, gs, qs, ps etc. Andreas> \underbar looks more useful to me for emphasing text. Thanks

Re: underline in tex2lyx

2004-12-22 Thread Georg Baum
Andreas Vox wrote: > The code is equivalent to > \def\underbar#1{\underline{\sbox2{#1}\dp2 0\box2}} > > which stores its argument in box #2, sets the box' depth to zero and uses > this box as an argument to \underline. > > This means that \underline puts the bar beneath any text while \underbar

Re: Baffled by the reasoning

2004-12-22 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > Angus> Or are all warning messages just output in English until the > Angus> localedir and its po files is found? It all feels very 'chicken > Angus> and egg'-ish. > > Yes. I think that's good enough. Actually, the 'real' solution would be for lyxerr to store a

Re: Baffled by the reasoning

2004-12-22 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Jean-Marc Lasgouttes wrote: >> Angus> Or are all warning messages just output in English until the >> Angus> localedir and its po files is found? It all feels very 'chicken >> Angus> and egg'-ish. >> >> Yes. I think that's good enough. > | Actually,

Re: underline in tex2lyx

2004-12-22 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> So there is a visible difference between the two. I am Georg> therefore not changing tex2lyx and leave \underline in ERT. This may be the kind of situation where we could have a --strict option to tex2lyx that uses ERT every time

Re: underline in tex2lyx

2004-12-22 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > This may be the kind of situation where we could have a --strict > option to tex2lyx that uses ERT every time there is a tiny difference, > the default being to use the translation that makes more sense. Yes. One could even think of finer granularity (writer2latex

[patch] Fix bug 1750

2004-12-22 Thread Georg Baum
The attached patch fixes bug 1750. The first problem was that the second optional argument of \newcommand was not handled in the preamble. The second problem was that self defined commands were not stored in known_commands and therefore not parsed correctly when they had a optional argument. The

Re: [patch] Fix bug 1750

2004-12-22 Thread Herbert Voss
Georg Baum wrote: The patch is not 100% correct, because it does ignore the scope of the commands. This is only a problem if somebody does redefine a command with a different number of arguments, e.g. something like the attached .tex file. Implementing correct scoping would be some work, it would

Help needed understanding some code

2004-12-22 Thread Angus Leeming
I'm trying to understand why all this is needed to ascertain the full path to argv[0], passed to LyX from the command line. string arg0 = internal_path(argv[0]); // Expand "./" and "~/" string expanded_arg0 = ExpandPath(arg0); if (!os::is_absolute_path(expanded_arg0)) { //

[patch] fix bug 1542

2004-12-22 Thread Georg Baum
Here comes an early christmas gift: fix bug 1542. The problem is that the math parser may try to add too many rows or columns to equation types that don't support them, e.g the following two equations do not work: \begin{multline} 1&2\\ \end{multline} \begin{equation} 1\\[2mm] 2\\ 3

Re: [patch] Fix bug 1750

2004-12-22 Thread Georg Baum
Herbert Voss wrote: > \def\foo#1#2{baz #1 #2} > > is also possible, and in also in other combination Oh yes. Is anybody masochistic enough to look at the various \def variants? I ignored them completely until now. Georg

Re: Help needed understanding some code

2004-12-22 Thread Georg Baum
Angus Leeming wrote: > To be specific, I don't see why > 1. ExpandPath is needed at all. > 2. What the thing inside the if block is meant to be achieving. > 3. What the idea behind removing "/.libs/" is all about. Surely, the LyX > executable is to be found at build_dir/src/lyx if it's being run

Re: [patch] Fix bug 1750

2004-12-22 Thread Herbert Voss
Georg Baum wrote: \def\foo#1#2{baz #1 #2} is also possible, and in also in other combination Oh yes. Is anybody masochistic enough to look at the various \def variants? I ignored them completely until now. it is senseless to parse all these macro definitions. \def\foo#1#2{...} \def\foo#1:#2{...}

Re: [patch] Fix bug 1750

2004-12-22 Thread Kuba Ober
> for more than 10 years the latex world is waiting for a > parser, which works ... TeX? I presume that the safest, if not very lightweight way would be to use TeX itself. Reimplementing crux of TeX as far as macro processing goes isn't that hard if one has TeXbook handy, but if one could just

Re: [patch] Fix bug 1750

2004-12-22 Thread Herbert Voss
Kuba Ober wrote: for more than 10 years the latex world is waiting for a parser, which works ... TeX? I presume that the safest, if not very lightweight way would be to use TeX itself. Reimplementing crux of TeX as far as macro processing goes isn't that hard if one has TeXbook handy, but if

Re: [patch] Fix bug 1750

2004-12-22 Thread Kuba Ober
On Åroda 22 grudzieÅ 2004 05:45 pm, Herbert Voss wrote: > Kuba Ober wrote: > >>for more than 10 years the latex world is waiting for a > >>parser, which works ... > > > > TeX? I presume that the safest, if not very lightweight way would be to > > use TeX itself. > > > > Reimplementing crux of TeX

Re: Configure problems for lyx-140 on Mac

2004-12-22 Thread Andreas Vox
Lars Gullik BjÃnnes <[EMAIL PROTECTED]> writes: > > So this should absolutely be reported to apple. Then they can fix it. I just did that. (problem ID 3932345, if anyone cares) While we wait on Apple to fix this, couldn't we use the wonderful and apparently indispensable "-isystem" option of

Re: Configure problems for lyx-140 on Mac

2004-12-22 Thread Angus Leeming
Andreas Vox wrote: >> So this should absolutely be reported to apple. Then they can fix it. > > I just did that. (problem ID 3932345, if anyone cares) > > While we wait on Apple to fix this, couldn't we use the wonderful > and apparently indispensable "-isystem" option of GCC? > > We could fix

Re: Configure problems for lyx-140 on Mac

2004-12-22 Thread Andreas Vox
Angus Leeming <[EMAIL PROTECTED]> writes: > > It seems to me that we have control over the contents of > boost_concept_check.h, Hmm, I need sudo if I want to change the contents of /usr/include/gcc/darwin/3.3/c++/bits/boost_concept_check.h This was incorporated into GCC and is not in