Re: LyX Problem: Using Figure Floats with Center-Justified Figures

2003-10-27 Thread Angus Leeming
Paul Medwell wrote:

 To centre a figure, there are two main alternatives. If you have
 come from a Microsoft background, the most intuitive will be to
 select the graphics, then Layout-Paragraph-Center.
 
 HOWEVER, this is not strictly correct. The correct way of doing it
 is to type \centering in an ERT before the figure.

Note that in the next release, LyX will insert the correct latex from 
Layout-Paragraph-Center.

Just something to bear in mind...
-- 
Angus



Unnumbered pages

2003-10-27 Thread Toby Allen
Hey all,

I am writing my thesis at the moment and I need to
have the Abstract, Title page, Lists of Tables and
Figures, etc to be unnumbered. That is I need the
numbering to start at chapter one and have the first
pages numbered i,ii,iii,iv etc. How do I do this? 

I looked at the help etc but couldnt seem to find
anything.

Also what is a good bibtex style that doesnt display
titles of the references and is unsorted?

Thanks,
Toby

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/


Re: Unnumbered pages

2003-10-27 Thread Jeannette Meyer

 I am writing my thesis at the moment and I need to
 have the Abstract, Title page, Lists of Tables and
 Figures, etc to be unnumbered. That is I need the
 numbering to start at chapter one and have the first
 pages numbered i,ii,iii,iv etc. How do I do this?

Put (in ERT):
\renewcommand\thepage{\roman{page}}
\setcounter{page}{1} 

where you want to start with the roman numbering (e.g. right before the toc), 
and 

\renewcommand\thepage{\arabic{page}}
\setcounter{page}{1} 

where you want to start the arabic numbering. If you use

\begin{titlepage}  
...stuff on your titlepage...
\end{titlepage}

the titlepage has no page number. I don't know if this works for all document 
classes, though. I use report (koma-script) for my thesis.

 Also what is a good bibtex style that doesnt display
 titles of the references and is unsorted?

There should be something like unsrt.bst, but you can also create your own 
bibtex style with latex makebst.

Good luck!

Jeannette


Re: Unnumbered pages

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 03:03:06AM -0800, Toby Allen wrote:
 Hey all,
 
 I am writing my thesis at the moment and I need to
 have the Abstract, Title page, Lists of Tables and
 Figures, etc to be unnumbered. That is I need the
 numbering to start at chapter one and have the first
 pages numbered i,ii,iii,iv etc. How do I do this? 

\pagenumbering{roman} in ERT (the red stuff you get with Ctrl-I)

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Scientific Word files

2003-10-27 Thread Martijn Brouwer
I have a document created wiht Scientific Word, and exported as portable tex document. 
Together with the tcilatex file, it compiles correctly, but how can I read it in lyx? 
Is there a nice script that replaces SW macros like \unit{} with normal tex commands?
What is the correct way to insert units anyways?

Thanks in advance

Martijn


strange bug in RH9 qt lyx1.3.3

2003-10-27 Thread Cabuz Alexandru
Hello list,

Here is a behavior that I have seen ever since I installed lyx for the first 
time a few months ago, version 1.3.2 but it did not really bother me. But now 
it's starting to get on my nerves so here it is.

I am working in version 1.3.3  RH9 qt.

Sometimes, when I select text in lyx, like for example I select a couple of 
lines to make them bold or italic or something, something strange happens and 
I seem to lose contact with the red hat task bar at the bottom of the screen. 
For example if I am running xmms but it's minimized then there is a little 
xmms button at the bottom. Problem is that if I click on that button to 
maximize xmms it takes like 5 minutes for that to happen. It eventually 
happens, but after quite a while. Then, after it opens (which it does all of 
a sudden), I can do anything INSIDE the window, like change the volume, add 
songs, whatever, and it responds just fine. No delay. Then I minimize it 
again, and it does it right away. If I try to remaximize it it takes 5 
minutes again. 
Same with like a konsole or any other program, like kmail or mozilla or gftp. 
If it's minimized it takes 5 minutes to maximize it, then, I can work inside 
of it without a problem, and minimize it without a problem. During the dead 
time it seems to access the hard disk every couple of seconds or so, so it's 
not like it's busy working on something like updating the rpm database or 
something.

If I want to open the start menu, again it takes 5 minutes.

But if I move the mouse over the desktop it does turn into a little pointing 
hand when I hover over files or folders. 

So it seems that this bug is very specific to a certain part of the graphical 
interface, the task bar.

This does not happen EVERY time I select text in lyx, but it ONLY happens when 
I have selected some text, and done like copy paste, or just changed the font 
type or something.

Before, this used to happen for like a couple of minutes and then all the 
stuff I had clicked on would happen all at once. But this time I lost an hour 
and a half a cause de ces conneries.

Oh, also, during the time it's quasi-frozen the clock on the task bar is not 
updated at all, so I can see exactly when it froze, and how much time I 
wasted.

If anybody has ever seen this kind of behavior before, or if anybody has any 
clue what this is all about, I would appreciate a helping hand. This is 
exactly the kind of stuff I do not expect to see happening in Linux.

Alex.


Re: Scientific Word files

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 02:00:01PM +0100, Martijn Brouwer wrote:
 I have a document created wiht Scientific Word, and exported as
 portable tex document. Together with the tcilatex file, it compiles
 correctly,

Export as 'Clean LaTeX'.

 but how can I read it in lyx?

And try both reLyX and recent tex2lyx on the result. tex2lyx should be
quite a bit better, but there are a few corner cases were reLyX is
better.

 Is there a nice script that replaces SW macros like \unit{} with
 normal tex commands?

You could simply define a \unit macro that does what you need without
translating it at all. Apart from that,

 perl -pi -e 's:\\unit{}:whatever:g'

should do as 'script'.

 What is the correct way to insert units anyways?

*shrug*

Andre'
-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Scientific Word files

2003-10-27 Thread Martijn Brouwer
On Mon, 27 Oct 2003 14:30:21 +0100
Andre Poenitz [EMAIL PROTECTED] wrote:

 On Mon, Oct 27, 2003 at 02:00:01PM +0100, Martijn Brouwer wrote:
  I have a document created wiht Scientific Word, and exported as
  portable tex document. Together with the tcilatex file, it compiles
  correctly,
 
 Export as 'Clean LaTeX'.

Has been done. This produces a file that relies on the tcilatex file because it 
contains a lot of non-standard latex.
 
  but how can I read it in lyx?
 
 And try both reLyX and recent tex2lyx on the result. tex2lyx should be
 quite a bit better, but there are a few corner cases were reLyX is
 better.
 
I  cannot find tex2lyx. Neither in my local lyx dir, nor at the lyx site. Is it only 
available in cvs?


Re: Scientific Word files

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 04:29:22PM +0100, Martijn Brouwer wrote:
 On Mon, 27 Oct 2003 14:30:21 +0100 Andre Poenitz [EMAIL PROTECTED]
 wrote:
 
  On Mon, Oct 27, 2003 at 02:00:01PM +0100, Martijn Brouwer wrote:
   I have a document created wiht Scientific Word, and exported as
   portable tex document. Together with the tcilatex file, it
   compiles correctly,
  
  Export as 'Clean LaTeX'.
 
 Has been done. This produces a file that relies on the tcilatex file
 because it contains a lot of non-standard latex.

But only in comments? I had the impression that the exported LaTeX
was clean.

   but how can I read it in lyx?
  
  And try both reLyX and recent tex2lyx on the result. tex2lyx should
  be quite a bit better, but there are a few corner cases were reLyX
  is better.
  
 I  cannot find tex2lyx. Neither in my local lyx dir, nor at the lyx
 site. Is it only available in cvs?

Hm... yes, could well be. 

Andre'


Re: Scientific Word files

2003-10-27 Thread Angus Leeming
Andre Poenitz wrote:

 Is there a nice script that replaces SW macros like \unit{} with
 normal tex commands?
 
 You could simply define a \unit macro that does what you need
 without translating it at all. Apart from that,

Alternatively, create a math-macro. For example, if I open up a new, 
empty document and then type
M-x (the Alt key and 'x' at the same time)
the cursor is placed in the minibuffer at the bottom of the LyX 
window.

Typing in this window:
math-macro Vector 1[Return]
creates a math-macro in the main LyX window, looking something like:
Macro: Vector: [][]

Input the latex definition of the macro in the first box. In my case 
that would be
Macro: Vector: [\boldmath{#1}][]

Usually you should leave the second box empty. It is a useful hack for 
those times when the math editor doesn't provide visual feedback for 
the macro you have defined. For example, LyX 1.3.x has no native 
support for \boldmath, so you can 'fix' the display by telling LyX to 
use \mathbf or similar.
Macro: Vector: [\boldmath{#1}][\mathbfspace#1]
where space is a literal space char. Note that, because LyX 
understands \mathbf, this gets translated so that the '#1' is typeset 
in bold.

What to put in the box? Whatever SW uses as its definition of \unit.

-- 
Angus



Re: Scientific Word files

2003-10-27 Thread Martijn Brouwer
On Mon, 27 Oct 2003 16:40:36 +0100
Andre Poenitz [EMAIL PROTECTED] wrote:

I have a document created wiht Scientific Word, and exported as
portable tex document. Together with the tcilatex file, it
compiles correctly,
   
   Export as 'Clean LaTeX'.
  
  Has been done. This produces a file that relies on the tcilatex file
  because it contains a lot of non-standard latex.
 
 But only in comments? I had the impression that the exported LaTeX
 was clean.

It still uses SW defined macro's. (SW version 4.1 I believe)

but how can I read it in lyx?
   
   And try both reLyX and recent tex2lyx on the result. tex2lyx should
   be quite a bit better, but there are a few corner cases were reLyX
   is better.
   
  I  cannot find tex2lyx. Neither in my local lyx dir, nor at the lyx
  site. Is it only available in cvs?
 
 Hm... yes, could well be. 

I would like to give it a try. Can it be obtained separately from the lyx source?


Re: Scientific Word files

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 05:27:13PM +0100, Martijn Brouwer wrote:
 I would like to give it a try. Can it be obtained separately from
 the lyx source?

Well, it's part of the LyX Source.

In theory you could chop off a few bits, but in practice getting the
full source should be much simpler.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Scientific Word files

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 05:27:13PM +0100, Martijn Brouwer wrote:
 I would like to give it a try. Can it be obtained separately from
 the lyx source?

I could send you a SuSE 8.3 binary for 32 bit Intel. 380k stripped...

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Scientific Word files

2003-10-27 Thread Angus Leeming
Andre Poenitz wrote:
 I would like to give it a try. Can it be obtained 
 separately from the lyx source?

 I could send you a SuSE 8.3 binary for 32 bit Intel.
 380k stripped...

H.
$ ldd tex2lyx
libz.so.1 = /usr/lib/libz.so.1 (0x40024000)
libstdc++.so.5 = /usr/lib/libstdc++.so.5 (0x40033000)
libm.so.6 = /lib/i686/libm.so.6 (0x400e5000)
libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x40107000)
libc.so.6 = /lib/i686/libc.so.6 (0x4200)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)

Why does it depend on libz?

Other than libz its dependencies look fine. I take it that libz is 
just a function of linking against libsupport.la?



Given the steady stream of people asking about tex2lyx, would it make 
sense to set up separate cvs trees for both tex2lyx and lyx2lyx? They 
are separate executables after all...

- 
Angus



Re: strange bug in RH9 qt lyx1.3.3

2003-10-27 Thread Jerome Schretter
I don't have any solution to your specific problem. All I can say is
that I had a similar problem with klipper on a RH7.3 system distribution
and with lyx1.3.1 running under KDE.
After selecting text in lyx and clicking on the klipper icon in the
taskbar, it took a while for klipper to pop-up the menu.
Depending on the amount of text selected: the more text I selected, the
longer it took klipper to display the menu.
Some other persons reported no problem under similar conditions on an
updated system (i.e. rh7.3 + some patches). I thought it was klipper's
fault which may have been lost because of lyx's treatment of text.
That's only a very wild guess as I don't know much of lyx's internal
text handling.

A bug in the taskbar or another part of your desktop can't be ruled out.
May be you could try to find a way to reproduce the bug.

From your description, one doesn't know what desktop you're using. Maybe
you can provide more detailed information.

cheers,
JS

Am Mon, 2003-10-27 um 14.19 schrieb Cabuz Alexandru:
 Hello list,
 
 Here is a behavior that I have seen ever since I installed lyx for the first 
 time a few months ago, version 1.3.2 but it did not really bother me. But now 
 it's starting to get on my nerves so here it is.
 
 I am working in version 1.3.3  RH9 qt.
 
 Sometimes, when I select text in lyx, like for example I select a couple of 
 lines to make them bold or italic or something, something strange happens and 
 I seem to lose contact with the red hat task bar at the bottom of the screen. 
 For example if I am running xmms but it's minimized then there is a little 
 xmms button at the bottom. Problem is that if I click on that button to 
 maximize xmms it takes like 5 minutes for that to happen. It eventually 
 happens, but after quite a while. Then, after it opens (which it does all of 
 a sudden), I can do anything INSIDE the window, like change the volume, add 
 songs, whatever, and it responds just fine. No delay. Then I minimize it 
 again, and it does it right away. If I try to remaximize it it takes 5 
 minutes again. 
 Same with like a konsole or any other program, like kmail or mozilla or gftp. 
 If it's minimized it takes 5 minutes to maximize it, then, I can work inside 
 of it without a problem, and minimize it without a problem. During the dead 
 time it seems to access the hard disk every couple of seconds or so, so it's 
 not like it's busy working on something like updating the rpm database or 
 something.
 
 If I want to open the start menu, again it takes 5 minutes.
 
 But if I move the mouse over the desktop it does turn into a little pointing 
 hand when I hover over files or folders. 
 
 So it seems that this bug is very specific to a certain part of the graphical 
 interface, the task bar.
 
 This does not happen EVERY time I select text in lyx, but it ONLY happens when 
 I have selected some text, and done like copy paste, or just changed the font 
 type or something.
 
 Before, this used to happen for like a couple of minutes and then all the 
 stuff I had clicked on would happen all at once. But this time I lost an hour 
 and a half a cause de ces conneries.
 
 Oh, also, during the time it's quasi-frozen the clock on the task bar is not 
 updated at all, so I can see exactly when it froze, and how much time I 
 wasted.
 
 If anybody has ever seen this kind of behavior before, or if anybody has any 
 clue what this is all about, I would appreciate a helping hand. This is 
 exactly the kind of stuff I do not expect to see happening in Linux.
 
 Alex.


Column alignment in a table (LyX-1.3.3)

2003-10-27 Thread Rich Shepard
  I checked the archives and found a thread from 2001 that asks how to
change the default alignment in a table column from centered to
left-aligned. Dekel Tsur's response doesn't seem to apply to the current
version. I can change the alignment of the entire column (heading and data),
but not individually.

  What I want is to have the column title centered, but the data in
the rows below it left-aligned.

  How do I do this?

TIA,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard#64;appl-ecosys.com
 http://www.appl-ecosys.com/


Label placement for table reference

2003-10-27 Thread Rich Shepard
  I want to put a cross-reference in the body of the text to a table. The
table is placed in a float. Where do I place the label?

  If placed at the beginning of the caption it is a 'caption label'. If at
the immediate left of the table itself the table is captioned 10.1 but the
cross reference is 10.

Thanks,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard#64;appl-ecosys.com
 http://www.appl-ecosys.com/


Re: Re: Scientific Word files

2003-10-27 Thread Martijn Brouwer
I could send you a SuSE 8.3 binary for 32 bit Intel. 380k stripped...


Great! It would like it to run on K7.

Thanks for your help.

Martijn



Re: Lyx for Win32, troubleshooting, Results

2003-10-27 Thread Paul A. Rubin
[posted and mailed]

Angus Leeming [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]:

 
 You say that, if you run convertDefault.sh 'by hand', it works 
 perfectly?

Yes
 Could you try again with this new version, dumping output 
 to a LyX temp directory.
 
 In fact, since file names like C:/foo/bar/file.xyz are clearly dodgy 
 on Win32, please try the attached script which will change them to 
 C:\foo\bar\file.xyz

Here's the output (run by hand):



 C:\LyX\lyx\binsh ../share/lyx/scripts/convertdefault.sh 
jpg:C:/LyX/Documents/ha
 ppy.jpg ppm:C:/LyX/lyx/tmp/lyx_tmpdir604a01532/happy.ppm
 ../share/lyx/scripts/convertdefault.sh invoked as:
 jpg:C:/LyX/Documents/happy.jpg 
ppm:C:/LyX/lyx/tmp/lyx_tmpdir604a01532/happy.ppm
 $arg1 is jpg:C:\LyX\Documents\happy.jpg
 $arg2 is ppm:C:\LyX\lyx\tmp\lyx_tmpdir604a01532\happy.ppm
 ../share/lyx/scripts/convertdefault.sh ERROR
 Unable to find file C:\LyX\lyx\tmp\lyx_tmpdir604a01532\happy.ppm

The target file happy.ppm was created and is in fact sitting in the temp 
directory when the Unable to find ... message is generated. The path 
and file name are correct.
 
 I understand that Win32 machines often have a 'convert.exe' file that 
 converts file partitions to/from FAT32. Perhaps this is a PATH issue 
 and the wrong 'convert' is getting called.

No, the conversion is being done correctly, so it must be the correct 
convert program.

I poked around with the script myself over the weekend, and may have come 
up with at least a partial answer.  We seem to be dealing with not one 
but two problems here.  The first is that Ruurd supplies a Windows port 
of sh but not a port of cut.  Thus on a virgin installation of Ruurd's 
port, the line 

FILE=`echo $2 | cut -d ':' -f 2`

in convertDefault.sh will fail silently (because cut is not found), 
setting FILE to a null value.  The subsequent 

test -f $FILE || FSTATUS=1

must then succeed (trivially) and the script proceeds on the (untested) 
assumption that the converted file is where it is supposed to be -- which 
in fact it is in my test case.  (If I comment out the line that calls 
cut, graphics display in LyX.  Of course, this will go awry the day that 
a conversion actually fails.)

The other confounding factor is that my machine's not a virgin; I have 
Cygwin installed, and Cygwin *does* supply cut.exe.  So on my machine the 
call to cut works -- which turns out to be unfortunate, because argument 
$2 contains a drive specification (ppm:C:/LyX/...).  The second colon 
causes the -f 2 argument to return C as the value of $FILE, and then the 
test fails.  I tried -f 3 and -f 2-, and neither worked.  What finally 
worked (I think) was

FILE=`echo $2 | cut -d ':' -f 3`
FILE=/c/$FILE

and then the rest of the script as is.

Disclaimer here:  I grew up in the PC world and speak very limited 
amounts of Unix.  Someone who actually understands sh should check this 
over.

-- Paul

*
Paul A. Rubin  Phone:(517) 432-3509
Department of Management   Fax:  (517) 432-
The Eli Broad Graduate School of ManagementE-mail:   [EMAIL PROTECTED]
Michigan State University  http://www.msu.edu/~rubin/
East Lansing, MI  48824-1122  (USA)
*
Mathematicians are like Frenchmen:  whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different.J. W. v. GOETHE



Enterind a matrix

2003-10-27 Thread Rich Shepard
  I've read the Users Guide and I've futzed with the Math Panel but I don't
know how to enter a 3x3 matrix. I _think_ I have the top line OK, but I
cannot move the cursor down one row for the second line. What I want to
enter is:

  _ _
  | 1  1/3  1/2 |
  M = | 3   13  |
  | 2  1/3   1  |
  - -

  Where do I read to learn exactly how to do this?

Thanks,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard#64;appl-ecosys.com
 http://www.appl-ecosys.com/


Re: Lyx for Win32, troubleshooting, Results

2003-10-27 Thread Angus Leeming
Paul A. Rubin wrote:

 [posted and mailed]
 
 Angus Leeming [EMAIL PROTECTED] wrote in
 news:[EMAIL PROTECTED]:
 
 
 You say that, if you run convertDefault.sh 'by hand', it works
 perfectly?
 
 Yes
 Could you try again with this new version, dumping output
 to a LyX temp directory.
 
 In fact, since file names like C:/foo/bar/file.xyz are clearly
 dodgy on Win32, please try the attached script which will change
 them to C:\foo\bar\file.xyz
 
 Here's the output (run by hand):
 
 
 
 C:\LyX\lyx\binsh ../share/lyx/scripts/convertdefault.sh
 jpg:C:/LyX/Documents/ha
 ppy.jpg ppm:C:/LyX/lyx/tmp/lyx_tmpdir604a01532/happy.ppm
 ../share/lyx/scripts/convertdefault.sh invoked as:
 jpg:C:/LyX/Documents/happy.jpg
 ppm:C:/LyX/lyx/tmp/lyx_tmpdir604a01532/happy.ppm
 $arg1 is jpg:C:\LyX\Documents\happy.jpg
 $arg2 is ppm:C:\LyX\lyx\tmp\lyx_tmpdir604a01532\happy.ppm
 ../share/lyx/scripts/convertdefault.sh ERROR
 Unable to find file C:\LyX\lyx\tmp\lyx_tmpdir604a01532\happy.ppm
 
 The target file happy.ppm was created and is in fact sitting in the
 temp directory when the Unable to find ... message is generated.
 The path and file name are correct.

Good. So we have probably nailed down the problem. The file is 
generated correctly but LyX itself is unable to understand this 
'mixed language' file name 'C:/foo/bar.ppm'.

The proper fix will almost certainly be to tell LyX that the file name 
is of the form 'C:\foo\bar.ppm. It should be able to find that well 
enough.

 I poked around with the script myself over the weekend, and may have
 come up with at least a partial answer.

Yes, I have come to this conclusion myself and have changed the script 
appropriately. The relevant line is now
FILE=`echo $arg2 | sed 's,^[^:]*:,,'`

which cuts off anything up to and including the first ':'.

In the long run it may be easier to change the language and use 
python.

 Disclaimer here:  I grew up in the PC world and speak very limited
 amounts of Unix.  Someone who actually understands sh should check
 this over.

Well, I'll hold your hand in the unix world if you hold mine in the pc 
one ;-)

I'll try and fix the real problem which lies in the LyX sources.

Many thanks for your detective work.
-- 
Angus



Re: Enterind a matrix

2003-10-27 Thread Paul A. Rubin
[posted and mailed]

Rich Shepard [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]: 

   I've read the Users Guide and I've futzed with the Math Panel but I
   don't 
 know how to enter a 3x3 matrix. I _think_ I have the top line OK, but
 I cannot move the cursor down one row for the second line. What I want
 to enter is:
 
   _ _
   | 1  1/3  1/2 |
   M = | 3   13  |
   | 2  1/3   1  |
   - -
 
   Where do I read to learn exactly how to do this?
 

Hi,

Not sure what the problem is.  You should be able to do the following:

1.  Open the math panel and click the insert matrix button.

2.  Adjust the size to 3x3, adjust the vertical and horizontal alignment 
as desired, and click Ok.  That inserts an empty matrix.

3.  You should be seeing 9 empty cells (outlined in blue) in a 3x3 
configuration.  You should be able to click into any cell you want, or 
use the arrow keys to navigate among cells.

4.  To enclose in brackets, braces or whatever, highlight the whole 
matrix and use the appropriate delimiter button from the math panel.

I gather this isn't working for you?  Can you post a click-by-click 
description of what you're doing and where it goes south?

-- Paul

*
Paul A. Rubin  Phone:(517) 432-3509
Department of Management   Fax:  (517) 432-
The Eli Broad Graduate School of ManagementE-mail:   [EMAIL PROTECTED]
Michigan State University  http://www.msu.edu/~rubin/
East Lansing, MI  48824-1122  (USA)
*
Mathematicians are like Frenchmen:  whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different.J. W. v. GOETHE



Re: Enterind a matrix

2003-10-27 Thread Christian Ridderström
On Mon, 27 Oct 2003, Rich Shepard wrote:

   I've read the Users Guide and I've futzed with the Math Panel but I don't
 know how to enter a 3x3 matrix. I _think_ I have the top line OK, but I
 cannot move the cursor down one row for the second line. What I want to
 enter is:

Hi, I'm not sure what your problem is, but I put an example here:

http://wiki.lyx.org/pmwiki.php/Examples/InsertMatrix

/Christian 

-- 
Christian Ridderström   http://www.md.kth.se/~chr




Re: Lyx for Win32, troubleshooting, Results

2003-10-27 Thread Kayvan A. Sylvan
  temp directory when the Unable to find ... message is generated.
  The path and file name are correct.
 
 Good. So we have probably nailed down the problem. The file is 
 generated correctly but LyX itself is unable to understand this 
 'mixed language' file name 'C:/foo/bar.ppm'.

Maybe it's not LyX, but LaTeX?

I had a similar problem with the CVS lyx and had to apply the following patch:

$ cvs diff -u src/support/os_win32.C 
Index: src/support/os_win32.C
===
RCS file: /cvs/lyx/lyx-devel/src/support/os_win32.C,v
retrieving revision 1.13
diff -u -r1.13 os_win32.C
--- src/support/os_win32.C  2003/10/08 08:38:05 1.13
+++ src/support/os_win32.C  2003/10/27 22:36:47
@@ -108,8 +108,9 @@
 
 string external_path(string const  p)
 {
+   char const * const disable_cygwin_fixup = getenv(LYX_NO_CYGPATH_FIX);
string dos_path = p;
-   if (is_absolute_path(p)) {
+   if ((! disable_cygwin_fixup)  is_absolute_path(p)) {
char dp[255];
cygwin_conv_to_full_win32_path(p.c_str(), dp);
dos_path = subst(dp,'\\','/');

I run with the environment variable LYX_NO_CYGPATH_FIX defined
and things work.

I may be right, or I may be crazy.
But it just might be a lunatic you're looking for...

---Kayvan
-- 
Kayvan A. Sylvan  | Proud husband of   | Father to my kids:
Sylvan Associates, Inc.   | Laura Isabella Sylvan  | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | crown of her husband | Robin Gregory (2/28/92)


Re: Lyx for Win32, troubleshooting, Results

2003-10-27 Thread Angus Leeming
On Monday 27 October 2003 10:40 pm, Kayvan A. Sylvan wrote:
   temp directory when the Unable to find ... message is generated.
   The path and file name are correct.
 
  Good. So we have probably nailed down the problem. The file is
  generated correctly but LyX itself is unable to understand this
  'mixed language' file name 'C:/foo/bar.ppm'.

 Maybe it's not LyX, but LaTeX?

In the particular case we're discussing it's not LaTeX. The Win32 version of 
LyX is unable to display graphics files on screen if they need to first be 
converted to a 'loadable' format. It transpires that there are several bugs 
in the code when it comes to Win32 but the primary one is:

LyX calls the files stuff like 'C:/foo/bar.jpg'
It seems like the shell script and ImageMagick can handle this abuse but once 
LyX is told that the conversion has succeeded it has code:

void CacheItem::Impl::imageConverted(bool success)
{
file_to_load_ = converter_.get() ?
converter_-convertedFile() : string();
success = !file_to_load_.empty()  IsFileReadable(file_to_load_);

if (!success) {
lyxerr[Debug::GRAPHICS]  Unable to find converted file!
 endl;
setStatus(ErrorConverting);
return;
}
...
}

I bet that 'IsFileReadable(file_to_load_)' can't handle 'C:/foo/bar.jpg'

Anyway, we go on from there to actually loading the file. Can Qt cope with 
such abuse? I'd be musch happier if we generated a 'reasonable' file name in 
the first place.

void QLImage::load(string const  filename)
{
if (!pixmap_.load(toqstr(filename))) {
lyxerr[Debug::GRAPHICS]
 Unable to open image  endl;
return;
}


 I had a similar problem with the CVS lyx and had to apply the following
 patch:

Yes, but this works around the problem rather than addresses the primary 
cause.

 I may be right, or I may be crazy.
 But it just might be a lunatic you're looking for...

In this case I want someone sane, but thanks for the offer ;-)
Regards,
Angus



Re: Enterind a matrix

2003-10-27 Thread Rich Shepard
On Mon, 27 Oct 2003, Paul A. Rubin wrote:

 Not sure what the problem is.  You should be able to do the following:

Paul,

  A couple of problems.

 1.  Open the math panel and click the insert matrix button.
   ^

  I paused the cursor over every button but this one. I kept looking for a
matrix button but didn't find it. When I read your answer I looked more
carefully and there it was.

 4.  To enclose in brackets, braces or whatever, highlight the whole
 matrix and use the appropriate delimiter button from the math panel.

  This is still not working for me. When I try to highlight the entire
matrix by moving the cursor over the 9 positions while holding down the left
trackball button, I get 9 little blue squares. Then I select the [] from the
left side of the delimiter widget and click on 'insert'. Now all my values
are gone, except for position 1,1 which has the bracket around it.

  When I try to highlight the entire math box I get a little bracketed box
either in front of or behind the matrix.

  Why the brackets don't enclose all 9 elements I don't know; I've tried it
3 times.

Thanks very much,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard#64;appl-ecosys.com
 http://www.appl-ecosys.com/


Re: Enterind a matrix

2003-10-27 Thread Rich Shepard
On Mon, 27 Oct 2003, Christian Ridderström wrote:

 Hi, I'm not sure what your problem is, but I put an example here:

   http://wiki.lyx.org/pmwiki.php/Examples/InsertMatrix

Christian,

  Thank you. As I wrote in response to the previous reply, I missed the
matrix button. However, I still cannot get the brackets around it.

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard#64;appl-ecosys.com
 http://www.appl-ecosys.com/


Re: Enterind a matrix

2003-10-27 Thread Kai Johannes Keller
Hello Rich,

just try it again with this further information. I didn't figure out
what exactly your problem is, but when I tried to put a bracket around a
matrix I did either:

1. Insert the bracket and pklace the curser inside (that's where it is
anyway after inserting a bracket)

2. Insert the matrix as described before.

or:

1. Insert the matrix and highlighten it (there has to be one blue-filled
box for all the 9 small boxes) maybe try to look at the matrix as if it
is only one letter and highlighten this.

2. Insert the brackets

and both worked just fine.




Am Die, 2003-10-28 um 01.03 schrieb Rich Shepard:
 On Mon, 27 Oct 2003, Christian Ridderström wrote:
 
  Hi, I'm not sure what your problem is, but I put an example here:
 
  http://wiki.lyx.org/pmwiki.php/Examples/InsertMatrix
 
 Christian,
 
   Thank you. As I wrote in response to the previous reply, I missed the
 matrix button. However, I still cannot get the brackets around it.
 
 Rich
 
 Dr. Richard B. Shepard, President
 
Applied Ecosystem Services, Inc. (TM)
 2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
  + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard#64;appl-ecosys.com
  http://www.appl-ecosys.com/
-- 
Kai Johannes Keller [EMAIL PROTECTED]



Re: Entering a matrix

2003-10-27 Thread Rich Shepard
On Mon, 28 Oct 2003, Kai Johannes Keller wrote:

 1. Insert the bracket and pklace the curser inside (that's where it is
 anyway after inserting a bracket)

 2. Insert the matrix as described before.

Kai,

  That was going to be my next try. :-)

 or:

 1. Insert the matrix and highlighten it (there has to be one blue-filled
 box for all the 9 small boxes) maybe try to look at the matrix as if it
 is only one letter and highlighten this.

  This is what I've been trying to do. I keep getting 9 little blue boxes
until ... I held down the ctrl key while blocking the matrix boxes with the
trackball. _That_ worked!

  Perhaps it's just my installation. I don't know why I had so much trouble,
but I just could not get a single, large highlight for all matrix elements.

Whew! Thanks to all of you,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard#64;appl-ecosys.com
 http://www.appl-ecosys.com/


footnote indentation

2003-10-27 Thread James Cane-Carrasco
I haven't been able to find any other posts that quite address the problem 
that I am having here.

I have a document in the book (AMS) document class which has many (incredibly 
interesting!) footnotes. These footnotes are formatted fine, with a nice 
indent at the start of the note, as long as I keep the main text single 
space.

But if I change the main text to 1.5 space or double space, the footnotes lose 
the indent, which makes them a bit difficult to distinguish from eachother. 
The margins are fine, the notes just lose the indent at the beginning.

I tried removing all of the comments from my document preamble and setting 
everything to the class defaults to see if there was something obvious that 
might be causing this, but even in my resulting vanilla document I find the 
same problem.

Sorry to be asking such an obvious question, but I haven't been able to find 
the answer to this one in any of the documentation or lists.

Thanks, and best wishes,
Jim
-- 
James Cane-Carrasco
Department of History/SIAS
University of Oklahoma
[EMAIL PROTECTED]



Re: Column alignment in a table (LyX-1.3.3)

2003-10-27 Thread Jeannette Meyer

   What I want is to have the column title centered, but the data in
 the rows below it left-aligned.

Change the title cell to a multicolumn cell (in table settings). Then you can 
set the horizontal alignment individually.

Jeannette


Re: Label placement for table reference

2003-10-27 Thread Jeannette Meyer
On Monday 27 October 2003 21:37, Rich Shepard wrote:
   I want to put a cross-reference in the body of the text to a table. The
 table is placed in a float. Where do I place the label?

   If placed at the beginning of the caption it is a 'caption label'. If at
 the immediate left of the table itself the table is captioned 10.1 but
 the cross reference is 10.

Place it at the beginning of the caption (right before your caption text). 
That should work, at least it works for me. The same goes for figures. You 
can rename the 'cap:' to 'fig:' or 'table:' if you want.

Jeannette


trouble with 1.3.3

2003-10-27 Thread Konrad Blum
Hi,

I am using lyx regularly to prepare slides and materials for classes.
With 1.3.3 I am working quite happily under SuSE 8.2. since it was
available.

Since a few days something goes wrong - any  time I try to save a freshly
started slide file after I try to insert a table --  I get something like:

lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. Please read the bug-reporting
instructions in Help-Introduction and send us a bug report, if necessary.
Thanks !
LyX: Versuche, das Dokument slides_three_new.lyx zu speichern...
  slides_three_new.lyx.emergency

The emergency file then proves to be a bastard which sends lyx into an
infinite loop - if I copy xyz.lyx.emergency to xyz.lyx and then start lyx
xyz.lyx  it never makes it further than just to display the qt-window
frame...

Well I should mention, that exporting or viewing PDF without saving the
file works nicely, only the save button has to be avoided...

Any idea how to proceed with diagnostics? (I have attached the latest
slides_three_new.lyx.emergency )

thanx

-KB

===
Dr. Konrad Blum / PPRE / EHF / Dept. Physics / Fac. Maths  Science
  Carl von Ossietzky University of Oldenburg / http://www.ppre.de
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass slides
\language english
\inputencoding auto
\fontscheme times
\graphics default
\paperfontsize default
\spacing single 
\papersize a5paper
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation landscape
\leftmargin 0.1in
\topmargin 0.1in
\rightmargin 0.1in
\bottommargin 0.1in
\headheight 0in
\headsep 0in
\footskip 0in
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle empty

\layout Standard
\align center 

\series bold 
\shape slanted 
\size huge 
\color red
Energy of Biomass Fuels
\layout Standard

Thinking chemistrywise:
\layout Standard


\begin_inset Formula \[
A+B\longrightarrow C+D\]

\end_inset 


\layout Standard


\begin_inset Formula $\Delta H_{reaction}=H_{products}-H_{educts}$
\end_inset 

 and
\layout Standard


\begin_inset Formula $\Delta G_{reaction}=G_{products}-G_{educts}$
\end_inset 


\layout Standard

So, if we talk of 
\begin_inset Quotes eld
\end_inset 

energy content
\begin_inset Quotes erd
\end_inset 

 of some biofuel 
\begin_inset Formula $A$
\end_inset 

 we in reality assume that this is the 
\emph on 
enthalpy
\emph default 
 released in the reaction of 
\begin_inset Formula $A$
\end_inset 

 with oxygen under some well defined conditions (
\begin_inset Formula $B$
\end_inset 

 in the equation above) to the products 
\begin_inset Formula $C+D$
\end_inset 

 (regularly 
\emph on 
water
\emph default 
 and carbon 
\emph on 
dioxide
\emph default 
).
\layout Standard

And there is a further complication:
\layout Standard


\begin_inset Formula \[
CH_{4}+2O_{2}\longrightarrow CO_{2}+2H_{2}O\]

\end_inset 


\layout Standard

...the so called 
\emph on 
stoichiometric factors.
\layout Standard

So for the 
\emph on 
combustion reaction of methane
\emph default 
 the above given calculcations for 
\begin_inset Formula $\Delta H_{reaction}$
\end_inset 

 and 
\begin_inset Formula $\Delta G_{reaction}$
\end_inset 

 are better made in the following way:
\layout Standard
\align center 

\begin_inset  Tabular


Re: LyX Problem: Using Figure Floats with Center-Justified Figures

2003-10-27 Thread Angus Leeming
Paul Medwell wrote:

 To centre a figure, there are two main alternatives. If you have
 come from a Microsoft background, the most intuitive will be to
 select the graphics, then Layout-Paragraph-Center.
 
 HOWEVER, this is not strictly correct. The correct way of doing it
 is to type \centering in an ERT before the figure.

Note that in the next release, LyX will insert the correct latex from 
Layout-Paragraph-Center.

Just something to bear in mind...
-- 
Angus



Unnumbered pages

2003-10-27 Thread Toby Allen
Hey all,

I am writing my thesis at the moment and I need to
have the Abstract, Title page, Lists of Tables and
Figures, etc to be unnumbered. That is I need the
numbering to start at chapter one and have the first
pages numbered i,ii,iii,iv etc. How do I do this? 

I looked at the help etc but couldnt seem to find
anything.

Also what is a good bibtex style that doesnt display
titles of the references and is unsorted?

Thanks,
Toby

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/


Re: Unnumbered pages

2003-10-27 Thread Jeannette Meyer

 I am writing my thesis at the moment and I need to
 have the Abstract, Title page, Lists of Tables and
 Figures, etc to be unnumbered. That is I need the
 numbering to start at chapter one and have the first
 pages numbered i,ii,iii,iv etc. How do I do this?

Put (in ERT):
\renewcommand\thepage{\roman{page}}
\setcounter{page}{1} 

where you want to start with the roman numbering (e.g. right before the toc), 
and 

\renewcommand\thepage{\arabic{page}}
\setcounter{page}{1} 

where you want to start the arabic numbering. If you use

\begin{titlepage}  
...stuff on your titlepage...
\end{titlepage}

the titlepage has no page number. I don't know if this works for all document 
classes, though. I use report (koma-script) for my thesis.

 Also what is a good bibtex style that doesnt display
 titles of the references and is unsorted?

There should be something like unsrt.bst, but you can also create your own 
bibtex style with latex makebst.

Good luck!

Jeannette


Re: Unnumbered pages

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 03:03:06AM -0800, Toby Allen wrote:
 Hey all,
 
 I am writing my thesis at the moment and I need to
 have the Abstract, Title page, Lists of Tables and
 Figures, etc to be unnumbered. That is I need the
 numbering to start at chapter one and have the first
 pages numbered i,ii,iii,iv etc. How do I do this? 

\pagenumbering{roman} in ERT (the red stuff you get with Ctrl-I)

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Scientific Word files

2003-10-27 Thread Martijn Brouwer
I have a document created wiht Scientific Word, and exported as portable tex document. 
Together with the tcilatex file, it compiles correctly, but how can I read it in lyx? 
Is there a nice script that replaces SW macros like \unit{} with normal tex commands?
What is the correct way to insert units anyways?

Thanks in advance

Martijn


strange bug in RH9 qt lyx1.3.3

2003-10-27 Thread Cabuz Alexandru
Hello list,

Here is a behavior that I have seen ever since I installed lyx for the first 
time a few months ago, version 1.3.2 but it did not really bother me. But now 
it's starting to get on my nerves so here it is.

I am working in version 1.3.3  RH9 qt.

Sometimes, when I select text in lyx, like for example I select a couple of 
lines to make them bold or italic or something, something strange happens and 
I seem to lose contact with the red hat task bar at the bottom of the screen. 
For example if I am running xmms but it's minimized then there is a little 
xmms button at the bottom. Problem is that if I click on that button to 
maximize xmms it takes like 5 minutes for that to happen. It eventually 
happens, but after quite a while. Then, after it opens (which it does all of 
a sudden), I can do anything INSIDE the window, like change the volume, add 
songs, whatever, and it responds just fine. No delay. Then I minimize it 
again, and it does it right away. If I try to remaximize it it takes 5 
minutes again. 
Same with like a konsole or any other program, like kmail or mozilla or gftp. 
If it's minimized it takes 5 minutes to maximize it, then, I can work inside 
of it without a problem, and minimize it without a problem. During the dead 
time it seems to access the hard disk every couple of seconds or so, so it's 
not like it's busy working on something like updating the rpm database or 
something.

If I want to open the start menu, again it takes 5 minutes.

But if I move the mouse over the desktop it does turn into a little pointing 
hand when I hover over files or folders. 

So it seems that this bug is very specific to a certain part of the graphical 
interface, the task bar.

This does not happen EVERY time I select text in lyx, but it ONLY happens when 
I have selected some text, and done like copy paste, or just changed the font 
type or something.

Before, this used to happen for like a couple of minutes and then all the 
stuff I had clicked on would happen all at once. But this time I lost an hour 
and a half a cause de ces conneries.

Oh, also, during the time it's quasi-frozen the clock on the task bar is not 
updated at all, so I can see exactly when it froze, and how much time I 
wasted.

If anybody has ever seen this kind of behavior before, or if anybody has any 
clue what this is all about, I would appreciate a helping hand. This is 
exactly the kind of stuff I do not expect to see happening in Linux.

Alex.


Re: Scientific Word files

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 02:00:01PM +0100, Martijn Brouwer wrote:
 I have a document created wiht Scientific Word, and exported as
 portable tex document. Together with the tcilatex file, it compiles
 correctly,

Export as 'Clean LaTeX'.

 but how can I read it in lyx?

And try both reLyX and recent tex2lyx on the result. tex2lyx should be
quite a bit better, but there are a few corner cases were reLyX is
better.

 Is there a nice script that replaces SW macros like \unit{} with
 normal tex commands?

You could simply define a \unit macro that does what you need without
translating it at all. Apart from that,

 perl -pi -e 's:\\unit{}:whatever:g'

should do as 'script'.

 What is the correct way to insert units anyways?

*shrug*

Andre'
-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Scientific Word files

2003-10-27 Thread Martijn Brouwer
On Mon, 27 Oct 2003 14:30:21 +0100
Andre Poenitz [EMAIL PROTECTED] wrote:

 On Mon, Oct 27, 2003 at 02:00:01PM +0100, Martijn Brouwer wrote:
  I have a document created wiht Scientific Word, and exported as
  portable tex document. Together with the tcilatex file, it compiles
  correctly,
 
 Export as 'Clean LaTeX'.

Has been done. This produces a file that relies on the tcilatex file because it 
contains a lot of non-standard latex.
 
  but how can I read it in lyx?
 
 And try both reLyX and recent tex2lyx on the result. tex2lyx should be
 quite a bit better, but there are a few corner cases were reLyX is
 better.
 
I  cannot find tex2lyx. Neither in my local lyx dir, nor at the lyx site. Is it only 
available in cvs?


Re: Scientific Word files

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 04:29:22PM +0100, Martijn Brouwer wrote:
 On Mon, 27 Oct 2003 14:30:21 +0100 Andre Poenitz [EMAIL PROTECTED]
 wrote:
 
  On Mon, Oct 27, 2003 at 02:00:01PM +0100, Martijn Brouwer wrote:
   I have a document created wiht Scientific Word, and exported as
   portable tex document. Together with the tcilatex file, it
   compiles correctly,
  
  Export as 'Clean LaTeX'.
 
 Has been done. This produces a file that relies on the tcilatex file
 because it contains a lot of non-standard latex.

But only in comments? I had the impression that the exported LaTeX
was clean.

   but how can I read it in lyx?
  
  And try both reLyX and recent tex2lyx on the result. tex2lyx should
  be quite a bit better, but there are a few corner cases were reLyX
  is better.
  
 I  cannot find tex2lyx. Neither in my local lyx dir, nor at the lyx
 site. Is it only available in cvs?

Hm... yes, could well be. 

Andre'


Re: Scientific Word files

2003-10-27 Thread Angus Leeming
Andre Poenitz wrote:

 Is there a nice script that replaces SW macros like \unit{} with
 normal tex commands?
 
 You could simply define a \unit macro that does what you need
 without translating it at all. Apart from that,

Alternatively, create a math-macro. For example, if I open up a new, 
empty document and then type
M-x (the Alt key and 'x' at the same time)
the cursor is placed in the minibuffer at the bottom of the LyX 
window.

Typing in this window:
math-macro Vector 1[Return]
creates a math-macro in the main LyX window, looking something like:
Macro: Vector: [][]

Input the latex definition of the macro in the first box. In my case 
that would be
Macro: Vector: [\boldmath{#1}][]

Usually you should leave the second box empty. It is a useful hack for 
those times when the math editor doesn't provide visual feedback for 
the macro you have defined. For example, LyX 1.3.x has no native 
support for \boldmath, so you can 'fix' the display by telling LyX to 
use \mathbf or similar.
Macro: Vector: [\boldmath{#1}][\mathbfspace#1]
where space is a literal space char. Note that, because LyX 
understands \mathbf, this gets translated so that the '#1' is typeset 
in bold.

What to put in the box? Whatever SW uses as its definition of \unit.

-- 
Angus



Re: Scientific Word files

2003-10-27 Thread Martijn Brouwer
On Mon, 27 Oct 2003 16:40:36 +0100
Andre Poenitz [EMAIL PROTECTED] wrote:

I have a document created wiht Scientific Word, and exported as
portable tex document. Together with the tcilatex file, it
compiles correctly,
   
   Export as 'Clean LaTeX'.
  
  Has been done. This produces a file that relies on the tcilatex file
  because it contains a lot of non-standard latex.
 
 But only in comments? I had the impression that the exported LaTeX
 was clean.

It still uses SW defined macro's. (SW version 4.1 I believe)

but how can I read it in lyx?
   
   And try both reLyX and recent tex2lyx on the result. tex2lyx should
   be quite a bit better, but there are a few corner cases were reLyX
   is better.
   
  I  cannot find tex2lyx. Neither in my local lyx dir, nor at the lyx
  site. Is it only available in cvs?
 
 Hm... yes, could well be. 

I would like to give it a try. Can it be obtained separately from the lyx source?


Re: Scientific Word files

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 05:27:13PM +0100, Martijn Brouwer wrote:
 I would like to give it a try. Can it be obtained separately from
 the lyx source?

Well, it's part of the LyX Source.

In theory you could chop off a few bits, but in practice getting the
full source should be much simpler.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Scientific Word files

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 05:27:13PM +0100, Martijn Brouwer wrote:
 I would like to give it a try. Can it be obtained separately from
 the lyx source?

I could send you a SuSE 8.3 binary for 32 bit Intel. 380k stripped...

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Scientific Word files

2003-10-27 Thread Angus Leeming
Andre Poenitz wrote:
 I would like to give it a try. Can it be obtained 
 separately from the lyx source?

 I could send you a SuSE 8.3 binary for 32 bit Intel.
 380k stripped...

H.
$ ldd tex2lyx
libz.so.1 = /usr/lib/libz.so.1 (0x40024000)
libstdc++.so.5 = /usr/lib/libstdc++.so.5 (0x40033000)
libm.so.6 = /lib/i686/libm.so.6 (0x400e5000)
libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x40107000)
libc.so.6 = /lib/i686/libc.so.6 (0x4200)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)

Why does it depend on libz?

Other than libz its dependencies look fine. I take it that libz is 
just a function of linking against libsupport.la?



Given the steady stream of people asking about tex2lyx, would it make 
sense to set up separate cvs trees for both tex2lyx and lyx2lyx? They 
are separate executables after all...

- 
Angus



Re: strange bug in RH9 qt lyx1.3.3

2003-10-27 Thread Jerome Schretter
I don't have any solution to your specific problem. All I can say is
that I had a similar problem with klipper on a RH7.3 system distribution
and with lyx1.3.1 running under KDE.
After selecting text in lyx and clicking on the klipper icon in the
taskbar, it took a while for klipper to pop-up the menu.
Depending on the amount of text selected: the more text I selected, the
longer it took klipper to display the menu.
Some other persons reported no problem under similar conditions on an
updated system (i.e. rh7.3 + some patches). I thought it was klipper's
fault which may have been lost because of lyx's treatment of text.
That's only a very wild guess as I don't know much of lyx's internal
text handling.

A bug in the taskbar or another part of your desktop can't be ruled out.
May be you could try to find a way to reproduce the bug.

From your description, one doesn't know what desktop you're using. Maybe
you can provide more detailed information.

cheers,
JS

Am Mon, 2003-10-27 um 14.19 schrieb Cabuz Alexandru:
 Hello list,
 
 Here is a behavior that I have seen ever since I installed lyx for the first 
 time a few months ago, version 1.3.2 but it did not really bother me. But now 
 it's starting to get on my nerves so here it is.
 
 I am working in version 1.3.3  RH9 qt.
 
 Sometimes, when I select text in lyx, like for example I select a couple of 
 lines to make them bold or italic or something, something strange happens and 
 I seem to lose contact with the red hat task bar at the bottom of the screen. 
 For example if I am running xmms but it's minimized then there is a little 
 xmms button at the bottom. Problem is that if I click on that button to 
 maximize xmms it takes like 5 minutes for that to happen. It eventually 
 happens, but after quite a while. Then, after it opens (which it does all of 
 a sudden), I can do anything INSIDE the window, like change the volume, add 
 songs, whatever, and it responds just fine. No delay. Then I minimize it 
 again, and it does it right away. If I try to remaximize it it takes 5 
 minutes again. 
 Same with like a konsole or any other program, like kmail or mozilla or gftp. 
 If it's minimized it takes 5 minutes to maximize it, then, I can work inside 
 of it without a problem, and minimize it without a problem. During the dead 
 time it seems to access the hard disk every couple of seconds or so, so it's 
 not like it's busy working on something like updating the rpm database or 
 something.
 
 If I want to open the start menu, again it takes 5 minutes.
 
 But if I move the mouse over the desktop it does turn into a little pointing 
 hand when I hover over files or folders. 
 
 So it seems that this bug is very specific to a certain part of the graphical 
 interface, the task bar.
 
 This does not happen EVERY time I select text in lyx, but it ONLY happens when 
 I have selected some text, and done like copy paste, or just changed the font 
 type or something.
 
 Before, this used to happen for like a couple of minutes and then all the 
 stuff I had clicked on would happen all at once. But this time I lost an hour 
 and a half a cause de ces conneries.
 
 Oh, also, during the time it's quasi-frozen the clock on the task bar is not 
 updated at all, so I can see exactly when it froze, and how much time I 
 wasted.
 
 If anybody has ever seen this kind of behavior before, or if anybody has any 
 clue what this is all about, I would appreciate a helping hand. This is 
 exactly the kind of stuff I do not expect to see happening in Linux.
 
 Alex.


Column alignment in a table (LyX-1.3.3)

2003-10-27 Thread Rich Shepard
  I checked the archives and found a thread from 2001 that asks how to
change the default alignment in a table column from centered to
left-aligned. Dekel Tsur's response doesn't seem to apply to the current
version. I can change the alignment of the entire column (heading and data),
but not individually.

  What I want is to have the column title centered, but the data in
the rows below it left-aligned.

  How do I do this?

TIA,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard#64;appl-ecosys.com
 http://www.appl-ecosys.com/


Label placement for table reference

2003-10-27 Thread Rich Shepard
  I want to put a cross-reference in the body of the text to a table. The
table is placed in a float. Where do I place the label?

  If placed at the beginning of the caption it is a 'caption label'. If at
the immediate left of the table itself the table is captioned 10.1 but the
cross reference is 10.

Thanks,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard#64;appl-ecosys.com
 http://www.appl-ecosys.com/


Re: Re: Scientific Word files

2003-10-27 Thread Martijn Brouwer
I could send you a SuSE 8.3 binary for 32 bit Intel. 380k stripped...


Great! It would like it to run on K7.

Thanks for your help.

Martijn



Re: Lyx for Win32, troubleshooting, Results

2003-10-27 Thread Paul A. Rubin
[posted and mailed]

Angus Leeming [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]:

 
 You say that, if you run convertDefault.sh 'by hand', it works 
 perfectly?

Yes
 Could you try again with this new version, dumping output 
 to a LyX temp directory.
 
 In fact, since file names like C:/foo/bar/file.xyz are clearly dodgy 
 on Win32, please try the attached script which will change them to 
 C:\foo\bar\file.xyz

Here's the output (run by hand):



 C:\LyX\lyx\binsh ../share/lyx/scripts/convertdefault.sh 
jpg:C:/LyX/Documents/ha
 ppy.jpg ppm:C:/LyX/lyx/tmp/lyx_tmpdir604a01532/happy.ppm
 ../share/lyx/scripts/convertdefault.sh invoked as:
 jpg:C:/LyX/Documents/happy.jpg 
ppm:C:/LyX/lyx/tmp/lyx_tmpdir604a01532/happy.ppm
 $arg1 is jpg:C:\LyX\Documents\happy.jpg
 $arg2 is ppm:C:\LyX\lyx\tmp\lyx_tmpdir604a01532\happy.ppm
 ../share/lyx/scripts/convertdefault.sh ERROR
 Unable to find file C:\LyX\lyx\tmp\lyx_tmpdir604a01532\happy.ppm

The target file happy.ppm was created and is in fact sitting in the temp 
directory when the Unable to find ... message is generated. The path 
and file name are correct.
 
 I understand that Win32 machines often have a 'convert.exe' file that 
 converts file partitions to/from FAT32. Perhaps this is a PATH issue 
 and the wrong 'convert' is getting called.

No, the conversion is being done correctly, so it must be the correct 
convert program.

I poked around with the script myself over the weekend, and may have come 
up with at least a partial answer.  We seem to be dealing with not one 
but two problems here.  The first is that Ruurd supplies a Windows port 
of sh but not a port of cut.  Thus on a virgin installation of Ruurd's 
port, the line 

FILE=`echo $2 | cut -d ':' -f 2`

in convertDefault.sh will fail silently (because cut is not found), 
setting FILE to a null value.  The subsequent 

test -f $FILE || FSTATUS=1

must then succeed (trivially) and the script proceeds on the (untested) 
assumption that the converted file is where it is supposed to be -- which 
in fact it is in my test case.  (If I comment out the line that calls 
cut, graphics display in LyX.  Of course, this will go awry the day that 
a conversion actually fails.)

The other confounding factor is that my machine's not a virgin; I have 
Cygwin installed, and Cygwin *does* supply cut.exe.  So on my machine the 
call to cut works -- which turns out to be unfortunate, because argument 
$2 contains a drive specification (ppm:C:/LyX/...).  The second colon 
causes the -f 2 argument to return C as the value of $FILE, and then the 
test fails.  I tried -f 3 and -f 2-, and neither worked.  What finally 
worked (I think) was

FILE=`echo $2 | cut -d ':' -f 3`
FILE=/c/$FILE

and then the rest of the script as is.

Disclaimer here:  I grew up in the PC world and speak very limited 
amounts of Unix.  Someone who actually understands sh should check this 
over.

-- Paul

*
Paul A. Rubin  Phone:(517) 432-3509
Department of Management   Fax:  (517) 432-
The Eli Broad Graduate School of ManagementE-mail:   [EMAIL PROTECTED]
Michigan State University  http://www.msu.edu/~rubin/
East Lansing, MI  48824-1122  (USA)
*
Mathematicians are like Frenchmen:  whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different.J. W. v. GOETHE



Enterind a matrix

2003-10-27 Thread Rich Shepard
  I've read the Users Guide and I've futzed with the Math Panel but I don't
know how to enter a 3x3 matrix. I _think_ I have the top line OK, but I
cannot move the cursor down one row for the second line. What I want to
enter is:

  _ _
  | 1  1/3  1/2 |
  M = | 3   13  |
  | 2  1/3   1  |
  - -

  Where do I read to learn exactly how to do this?

Thanks,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard#64;appl-ecosys.com
 http://www.appl-ecosys.com/


Re: Lyx for Win32, troubleshooting, Results

2003-10-27 Thread Angus Leeming
Paul A. Rubin wrote:

 [posted and mailed]
 
 Angus Leeming [EMAIL PROTECTED] wrote in
 news:[EMAIL PROTECTED]:
 
 
 You say that, if you run convertDefault.sh 'by hand', it works
 perfectly?
 
 Yes
 Could you try again with this new version, dumping output
 to a LyX temp directory.
 
 In fact, since file names like C:/foo/bar/file.xyz are clearly
 dodgy on Win32, please try the attached script which will change
 them to C:\foo\bar\file.xyz
 
 Here's the output (run by hand):
 
 
 
 C:\LyX\lyx\binsh ../share/lyx/scripts/convertdefault.sh
 jpg:C:/LyX/Documents/ha
 ppy.jpg ppm:C:/LyX/lyx/tmp/lyx_tmpdir604a01532/happy.ppm
 ../share/lyx/scripts/convertdefault.sh invoked as:
 jpg:C:/LyX/Documents/happy.jpg
 ppm:C:/LyX/lyx/tmp/lyx_tmpdir604a01532/happy.ppm
 $arg1 is jpg:C:\LyX\Documents\happy.jpg
 $arg2 is ppm:C:\LyX\lyx\tmp\lyx_tmpdir604a01532\happy.ppm
 ../share/lyx/scripts/convertdefault.sh ERROR
 Unable to find file C:\LyX\lyx\tmp\lyx_tmpdir604a01532\happy.ppm
 
 The target file happy.ppm was created and is in fact sitting in the
 temp directory when the Unable to find ... message is generated.
 The path and file name are correct.

Good. So we have probably nailed down the problem. The file is 
generated correctly but LyX itself is unable to understand this 
'mixed language' file name 'C:/foo/bar.ppm'.

The proper fix will almost certainly be to tell LyX that the file name 
is of the form 'C:\foo\bar.ppm. It should be able to find that well 
enough.

 I poked around with the script myself over the weekend, and may have
 come up with at least a partial answer.

Yes, I have come to this conclusion myself and have changed the script 
appropriately. The relevant line is now
FILE=`echo $arg2 | sed 's,^[^:]*:,,'`

which cuts off anything up to and including the first ':'.

In the long run it may be easier to change the language and use 
python.

 Disclaimer here:  I grew up in the PC world and speak very limited
 amounts of Unix.  Someone who actually understands sh should check
 this over.

Well, I'll hold your hand in the unix world if you hold mine in the pc 
one ;-)

I'll try and fix the real problem which lies in the LyX sources.

Many thanks for your detective work.
-- 
Angus



Re: Enterind a matrix

2003-10-27 Thread Paul A. Rubin
[posted and mailed]

Rich Shepard [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]: 

   I've read the Users Guide and I've futzed with the Math Panel but I
   don't 
 know how to enter a 3x3 matrix. I _think_ I have the top line OK, but
 I cannot move the cursor down one row for the second line. What I want
 to enter is:
 
   _ _
   | 1  1/3  1/2 |
   M = | 3   13  |
   | 2  1/3   1  |
   - -
 
   Where do I read to learn exactly how to do this?
 

Hi,

Not sure what the problem is.  You should be able to do the following:

1.  Open the math panel and click the insert matrix button.

2.  Adjust the size to 3x3, adjust the vertical and horizontal alignment 
as desired, and click Ok.  That inserts an empty matrix.

3.  You should be seeing 9 empty cells (outlined in blue) in a 3x3 
configuration.  You should be able to click into any cell you want, or 
use the arrow keys to navigate among cells.

4.  To enclose in brackets, braces or whatever, highlight the whole 
matrix and use the appropriate delimiter button from the math panel.

I gather this isn't working for you?  Can you post a click-by-click 
description of what you're doing and where it goes south?

-- Paul

*
Paul A. Rubin  Phone:(517) 432-3509
Department of Management   Fax:  (517) 432-
The Eli Broad Graduate School of ManagementE-mail:   [EMAIL PROTECTED]
Michigan State University  http://www.msu.edu/~rubin/
East Lansing, MI  48824-1122  (USA)
*
Mathematicians are like Frenchmen:  whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different.J. W. v. GOETHE



Re: Enterind a matrix

2003-10-27 Thread Christian Ridderström
On Mon, 27 Oct 2003, Rich Shepard wrote:

   I've read the Users Guide and I've futzed with the Math Panel but I don't
 know how to enter a 3x3 matrix. I _think_ I have the top line OK, but I
 cannot move the cursor down one row for the second line. What I want to
 enter is:

Hi, I'm not sure what your problem is, but I put an example here:

http://wiki.lyx.org/pmwiki.php/Examples/InsertMatrix

/Christian 

-- 
Christian Ridderström   http://www.md.kth.se/~chr




Re: Lyx for Win32, troubleshooting, Results

2003-10-27 Thread Kayvan A. Sylvan
  temp directory when the Unable to find ... message is generated.
  The path and file name are correct.
 
 Good. So we have probably nailed down the problem. The file is 
 generated correctly but LyX itself is unable to understand this 
 'mixed language' file name 'C:/foo/bar.ppm'.

Maybe it's not LyX, but LaTeX?

I had a similar problem with the CVS lyx and had to apply the following patch:

$ cvs diff -u src/support/os_win32.C 
Index: src/support/os_win32.C
===
RCS file: /cvs/lyx/lyx-devel/src/support/os_win32.C,v
retrieving revision 1.13
diff -u -r1.13 os_win32.C
--- src/support/os_win32.C  2003/10/08 08:38:05 1.13
+++ src/support/os_win32.C  2003/10/27 22:36:47
@@ -108,8 +108,9 @@
 
 string external_path(string const  p)
 {
+   char const * const disable_cygwin_fixup = getenv(LYX_NO_CYGPATH_FIX);
string dos_path = p;
-   if (is_absolute_path(p)) {
+   if ((! disable_cygwin_fixup)  is_absolute_path(p)) {
char dp[255];
cygwin_conv_to_full_win32_path(p.c_str(), dp);
dos_path = subst(dp,'\\','/');

I run with the environment variable LYX_NO_CYGPATH_FIX defined
and things work.

I may be right, or I may be crazy.
But it just might be a lunatic you're looking for...

---Kayvan
-- 
Kayvan A. Sylvan  | Proud husband of   | Father to my kids:
Sylvan Associates, Inc.   | Laura Isabella Sylvan  | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | crown of her husband | Robin Gregory (2/28/92)


Re: Lyx for Win32, troubleshooting, Results

2003-10-27 Thread Angus Leeming
On Monday 27 October 2003 10:40 pm, Kayvan A. Sylvan wrote:
   temp directory when the Unable to find ... message is generated.
   The path and file name are correct.
 
  Good. So we have probably nailed down the problem. The file is
  generated correctly but LyX itself is unable to understand this
  'mixed language' file name 'C:/foo/bar.ppm'.

 Maybe it's not LyX, but LaTeX?

In the particular case we're discussing it's not LaTeX. The Win32 version of 
LyX is unable to display graphics files on screen if they need to first be 
converted to a 'loadable' format. It transpires that there are several bugs 
in the code when it comes to Win32 but the primary one is:

LyX calls the files stuff like 'C:/foo/bar.jpg'
It seems like the shell script and ImageMagick can handle this abuse but once 
LyX is told that the conversion has succeeded it has code:

void CacheItem::Impl::imageConverted(bool success)
{
file_to_load_ = converter_.get() ?
converter_-convertedFile() : string();
success = !file_to_load_.empty()  IsFileReadable(file_to_load_);

if (!success) {
lyxerr[Debug::GRAPHICS]  Unable to find converted file!
 endl;
setStatus(ErrorConverting);
return;
}
...
}

I bet that 'IsFileReadable(file_to_load_)' can't handle 'C:/foo/bar.jpg'

Anyway, we go on from there to actually loading the file. Can Qt cope with 
such abuse? I'd be musch happier if we generated a 'reasonable' file name in 
the first place.

void QLImage::load(string const  filename)
{
if (!pixmap_.load(toqstr(filename))) {
lyxerr[Debug::GRAPHICS]
 Unable to open image  endl;
return;
}


 I had a similar problem with the CVS lyx and had to apply the following
 patch:

Yes, but this works around the problem rather than addresses the primary 
cause.

 I may be right, or I may be crazy.
 But it just might be a lunatic you're looking for...

In this case I want someone sane, but thanks for the offer ;-)
Regards,
Angus



Re: Enterind a matrix

2003-10-27 Thread Rich Shepard
On Mon, 27 Oct 2003, Paul A. Rubin wrote:

 Not sure what the problem is.  You should be able to do the following:

Paul,

  A couple of problems.

 1.  Open the math panel and click the insert matrix button.
   ^

  I paused the cursor over every button but this one. I kept looking for a
matrix button but didn't find it. When I read your answer I looked more
carefully and there it was.

 4.  To enclose in brackets, braces or whatever, highlight the whole
 matrix and use the appropriate delimiter button from the math panel.

  This is still not working for me. When I try to highlight the entire
matrix by moving the cursor over the 9 positions while holding down the left
trackball button, I get 9 little blue squares. Then I select the [] from the
left side of the delimiter widget and click on 'insert'. Now all my values
are gone, except for position 1,1 which has the bracket around it.

  When I try to highlight the entire math box I get a little bracketed box
either in front of or behind the matrix.

  Why the brackets don't enclose all 9 elements I don't know; I've tried it
3 times.

Thanks very much,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard#64;appl-ecosys.com
 http://www.appl-ecosys.com/


Re: Enterind a matrix

2003-10-27 Thread Rich Shepard
On Mon, 27 Oct 2003, Christian Ridderström wrote:

 Hi, I'm not sure what your problem is, but I put an example here:

   http://wiki.lyx.org/pmwiki.php/Examples/InsertMatrix

Christian,

  Thank you. As I wrote in response to the previous reply, I missed the
matrix button. However, I still cannot get the brackets around it.

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard#64;appl-ecosys.com
 http://www.appl-ecosys.com/


Re: Enterind a matrix

2003-10-27 Thread Kai Johannes Keller
Hello Rich,

just try it again with this further information. I didn't figure out
what exactly your problem is, but when I tried to put a bracket around a
matrix I did either:

1. Insert the bracket and pklace the curser inside (that's where it is
anyway after inserting a bracket)

2. Insert the matrix as described before.

or:

1. Insert the matrix and highlighten it (there has to be one blue-filled
box for all the 9 small boxes) maybe try to look at the matrix as if it
is only one letter and highlighten this.

2. Insert the brackets

and both worked just fine.




Am Die, 2003-10-28 um 01.03 schrieb Rich Shepard:
 On Mon, 27 Oct 2003, Christian Ridderström wrote:
 
  Hi, I'm not sure what your problem is, but I put an example here:
 
  http://wiki.lyx.org/pmwiki.php/Examples/InsertMatrix
 
 Christian,
 
   Thank you. As I wrote in response to the previous reply, I missed the
 matrix button. However, I still cannot get the brackets around it.
 
 Rich
 
 Dr. Richard B. Shepard, President
 
Applied Ecosystem Services, Inc. (TM)
 2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
  + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard#64;appl-ecosys.com
  http://www.appl-ecosys.com/
-- 
Kai Johannes Keller [EMAIL PROTECTED]



Re: Entering a matrix

2003-10-27 Thread Rich Shepard
On Mon, 28 Oct 2003, Kai Johannes Keller wrote:

 1. Insert the bracket and pklace the curser inside (that's where it is
 anyway after inserting a bracket)

 2. Insert the matrix as described before.

Kai,

  That was going to be my next try. :-)

 or:

 1. Insert the matrix and highlighten it (there has to be one blue-filled
 box for all the 9 small boxes) maybe try to look at the matrix as if it
 is only one letter and highlighten this.

  This is what I've been trying to do. I keep getting 9 little blue boxes
until ... I held down the ctrl key while blocking the matrix boxes with the
trackball. _That_ worked!

  Perhaps it's just my installation. I don't know why I had so much trouble,
but I just could not get a single, large highlight for all matrix elements.

Whew! Thanks to all of you,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard#64;appl-ecosys.com
 http://www.appl-ecosys.com/


footnote indentation

2003-10-27 Thread James Cane-Carrasco
I haven't been able to find any other posts that quite address the problem 
that I am having here.

I have a document in the book (AMS) document class which has many (incredibly 
interesting!) footnotes. These footnotes are formatted fine, with a nice 
indent at the start of the note, as long as I keep the main text single 
space.

But if I change the main text to 1.5 space or double space, the footnotes lose 
the indent, which makes them a bit difficult to distinguish from eachother. 
The margins are fine, the notes just lose the indent at the beginning.

I tried removing all of the comments from my document preamble and setting 
everything to the class defaults to see if there was something obvious that 
might be causing this, but even in my resulting vanilla document I find the 
same problem.

Sorry to be asking such an obvious question, but I haven't been able to find 
the answer to this one in any of the documentation or lists.

Thanks, and best wishes,
Jim
-- 
James Cane-Carrasco
Department of History/SIAS
University of Oklahoma
[EMAIL PROTECTED]



Re: Column alignment in a table (LyX-1.3.3)

2003-10-27 Thread Jeannette Meyer

   What I want is to have the column title centered, but the data in
 the rows below it left-aligned.

Change the title cell to a multicolumn cell (in table settings). Then you can 
set the horizontal alignment individually.

Jeannette


Re: Label placement for table reference

2003-10-27 Thread Jeannette Meyer
On Monday 27 October 2003 21:37, Rich Shepard wrote:
   I want to put a cross-reference in the body of the text to a table. The
 table is placed in a float. Where do I place the label?

   If placed at the beginning of the caption it is a 'caption label'. If at
 the immediate left of the table itself the table is captioned 10.1 but
 the cross reference is 10.

Place it at the beginning of the caption (right before your caption text). 
That should work, at least it works for me. The same goes for figures. You 
can rename the 'cap:' to 'fig:' or 'table:' if you want.

Jeannette


trouble with 1.3.3

2003-10-27 Thread Konrad Blum
Hi,

I am using lyx regularly to prepare slides and materials for classes.
With 1.3.3 I am working quite happily under SuSE 8.2. since it was
available.

Since a few days something goes wrong - any  time I try to save a freshly
started slide file after I try to insert a table --  I get something like:

lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. Please read the bug-reporting
instructions in Help-Introduction and send us a bug report, if necessary.
Thanks !
LyX: Versuche, das Dokument slides_three_new.lyx zu speichern...
  slides_three_new.lyx.emergency

The emergency file then proves to be a bastard which sends lyx into an
infinite loop - if I copy xyz.lyx.emergency to xyz.lyx and then start lyx
xyz.lyx  it never makes it further than just to display the qt-window
frame...

Well I should mention, that exporting or viewing PDF without saving the
file works nicely, only the save button has to be avoided...

Any idea how to proceed with diagnostics? (I have attached the latest
slides_three_new.lyx.emergency )

thanx

-KB

===
Dr. Konrad Blum / PPRE / EHF / Dept. Physics / Fac. Maths  Science
  Carl von Ossietzky University of Oldenburg / http://www.ppre.de
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass slides
\language english
\inputencoding auto
\fontscheme times
\graphics default
\paperfontsize default
\spacing single 
\papersize a5paper
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation landscape
\leftmargin 0.1in
\topmargin 0.1in
\rightmargin 0.1in
\bottommargin 0.1in
\headheight 0in
\headsep 0in
\footskip 0in
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle empty

\layout Standard
\align center 

\series bold 
\shape slanted 
\size huge 
\color red
Energy of Biomass Fuels
\layout Standard

Thinking chemistrywise:
\layout Standard


\begin_inset Formula \[
A+B\longrightarrow C+D\]

\end_inset 


\layout Standard


\begin_inset Formula $\Delta H_{reaction}=H_{products}-H_{educts}$
\end_inset 

 and
\layout Standard


\begin_inset Formula $\Delta G_{reaction}=G_{products}-G_{educts}$
\end_inset 


\layout Standard

So, if we talk of 
\begin_inset Quotes eld
\end_inset 

energy content
\begin_inset Quotes erd
\end_inset 

 of some biofuel 
\begin_inset Formula $A$
\end_inset 

 we in reality assume that this is the 
\emph on 
enthalpy
\emph default 
 released in the reaction of 
\begin_inset Formula $A$
\end_inset 

 with oxygen under some well defined conditions (
\begin_inset Formula $B$
\end_inset 

 in the equation above) to the products 
\begin_inset Formula $C+D$
\end_inset 

 (regularly 
\emph on 
water
\emph default 
 and carbon 
\emph on 
dioxide
\emph default 
).
\layout Standard

And there is a further complication:
\layout Standard


\begin_inset Formula \[
CH_{4}+2O_{2}\longrightarrow CO_{2}+2H_{2}O\]

\end_inset 


\layout Standard

...the so called 
\emph on 
stoichiometric factors.
\layout Standard

So for the 
\emph on 
combustion reaction of methane
\emph default 
 the above given calculcations for 
\begin_inset Formula $\Delta H_{reaction}$
\end_inset 

 and 
\begin_inset Formula $\Delta G_{reaction}$
\end_inset 

 are better made in the following way:
\layout Standard
\align center 

\begin_inset  Tabular


Re: LyX Problem: Using Figure Floats with Center-Justified Figures

2003-10-27 Thread Angus Leeming
Paul Medwell wrote:

> To centre a figure, there are two main alternatives. If you have
> come from a Microsoft background, the most intuitive will be to
> select the graphics, then Layout->Paragraph->Center.
> 
> HOWEVER, this is not strictly correct. The "correct" way of doing it
> is to type \centering in an ERT before the figure.

Note that in the next release, LyX will insert the correct latex from 
Layout->Paragraph->Center.

Just something to bear in mind...
-- 
Angus



Unnumbered pages

2003-10-27 Thread Toby Allen
Hey all,

I am writing my thesis at the moment and I need to
have the Abstract, Title page, Lists of Tables and
Figures, etc to be unnumbered. That is I need the
numbering to start at chapter one and have the first
pages numbered i,ii,iii,iv etc. How do I do this? 

I looked at the help etc but couldnt seem to find
anything.

Also what is a good bibtex style that doesnt display
titles of the references and is unsorted?

Thanks,
Toby

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/


Re: Unnumbered pages

2003-10-27 Thread Jeannette Meyer

> I am writing my thesis at the moment and I need to
> have the Abstract, Title page, Lists of Tables and
> Figures, etc to be unnumbered. That is I need the
> numbering to start at chapter one and have the first
> pages numbered i,ii,iii,iv etc. How do I do this?

Put (in ERT):
\renewcommand\thepage{\roman{page}}
\setcounter{page}{1} 

where you want to start with the roman numbering (e.g. right before the toc), 
and 

\renewcommand\thepage{\arabic{page}}
\setcounter{page}{1} 

where you want to start the arabic numbering. If you use

\begin{titlepage}  
...stuff on your titlepage...
\end{titlepage}

the titlepage has no page number. I don't know if this works for all document 
classes, though. I use report (koma-script) for my thesis.

> Also what is a good bibtex style that doesnt display
> titles of the references and is unsorted?

There should be something like unsrt.bst, but you can also create your own 
bibtex style with latex makebst.

Good luck!

Jeannette


Re: Unnumbered pages

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 03:03:06AM -0800, Toby Allen wrote:
> Hey all,
> 
> I am writing my thesis at the moment and I need to
> have the Abstract, Title page, Lists of Tables and
> Figures, etc to be unnumbered. That is I need the
> numbering to start at chapter one and have the first
> pages numbered i,ii,iii,iv etc. How do I do this? 

\pagenumbering{roman} in ERT (the red stuff you get with Ctrl-I)

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Scientific Word files

2003-10-27 Thread Martijn Brouwer
I have a document created wiht Scientific Word, and exported as portable tex document. 
Together with the tcilatex file, it compiles correctly, but how can I read it in lyx? 
Is there a nice script that replaces SW macros like \unit{} with normal tex commands?
What is the correct way to insert units anyways?

Thanks in advance

Martijn


strange bug in RH9 qt lyx1.3.3

2003-10-27 Thread Cabuz Alexandru
Hello list,

Here is a behavior that I have seen ever since I installed lyx for the first 
time a few months ago, version 1.3.2 but it did not really bother me. But now 
it's starting to get on my nerves so here it is.

I am working in version 1.3.3  RH9 qt.

Sometimes, when I select text in lyx, like for example I select a couple of 
lines to make them bold or italic or something, something strange happens and 
I seem to lose contact with the red hat task bar at the bottom of the screen. 
For example if I am running xmms but it's minimized then there is a little 
xmms button at the bottom. Problem is that if I click on that button to 
maximize xmms it takes like 5 minutes for that to happen. It eventually 
happens, but after quite a while. Then, after it opens (which it does all of 
a sudden), I can do anything INSIDE the window, like change the volume, add 
songs, whatever, and it responds just fine. No delay. Then I minimize it 
again, and it does it right away. If I try to remaximize it it takes 5 
minutes again. 
Same with like a konsole or any other program, like kmail or mozilla or gftp. 
If it's minimized it takes 5 minutes to maximize it, then, I can work inside 
of it without a problem, and minimize it without a problem. During the dead 
time it seems to access the hard disk every couple of seconds or so, so it's 
not like it's busy working on something like updating the rpm database or 
something.

If I want to open the start menu, again it takes 5 minutes.

But if I move the mouse over the desktop it does turn into a little pointing 
hand when I hover over files or folders. 

So it seems that this bug is very specific to a certain part of the graphical 
interface, the task bar.

This does not happen EVERY time I select text in lyx, but it ONLY happens when 
I have selected some text, and done like copy paste, or just changed the font 
type or something.

Before, this used to happen for like a couple of minutes and then all the 
stuff I had clicked on would happen all at once. But this time I lost an hour 
and a half a cause de ces conneries.

Oh, also, during the time it's "quasi-frozen" the clock on the task bar is not 
updated at all, so I can see exactly when it froze, and how much time I 
wasted.

If anybody has ever seen this kind of behavior before, or if anybody has any 
clue what this is all about, I would appreciate a helping hand. This is 
exactly the kind of stuff I do not expect to see happening in Linux.

Alex.


Re: Scientific Word files

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 02:00:01PM +0100, Martijn Brouwer wrote:
> I have a document created wiht Scientific Word, and exported as
> portable tex document. Together with the tcilatex file, it compiles
> correctly,

Export as 'Clean LaTeX'.

> but how can I read it in lyx?

And try both reLyX and recent tex2lyx on the result. tex2lyx should be
quite a bit better, but there are a few corner cases were reLyX is
better.

> Is there a nice script that replaces SW macros like \unit{} with
> normal tex commands?

You could simply define a \unit macro that does what you need without
translating it at all. Apart from that,

 perl -pi -e 's:\\unit{}:whatever:g'

should do as 'script'.

> What is the correct way to insert units anyways?

*shrug*

Andre'
-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Scientific Word files

2003-10-27 Thread Martijn Brouwer
On Mon, 27 Oct 2003 14:30:21 +0100
Andre Poenitz <[EMAIL PROTECTED]> wrote:

> On Mon, Oct 27, 2003 at 02:00:01PM +0100, Martijn Brouwer wrote:
> > I have a document created wiht Scientific Word, and exported as
> > portable tex document. Together with the tcilatex file, it compiles
> > correctly,
> 
> Export as 'Clean LaTeX'.

Has been done. This produces a file that relies on the tcilatex file because it 
contains a lot of non-standard latex.
 
> > but how can I read it in lyx?
> 
> And try both reLyX and recent tex2lyx on the result. tex2lyx should be
> quite a bit better, but there are a few corner cases were reLyX is
> better.
> 
I  cannot find tex2lyx. Neither in my local lyx dir, nor at the lyx site. Is it only 
available in cvs?


Re: Scientific Word files

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 04:29:22PM +0100, Martijn Brouwer wrote:
> On Mon, 27 Oct 2003 14:30:21 +0100 Andre Poenitz <[EMAIL PROTECTED]>
> wrote:
> 
> > On Mon, Oct 27, 2003 at 02:00:01PM +0100, Martijn Brouwer wrote:
> > > I have a document created wiht Scientific Word, and exported as
> > > portable tex document. Together with the tcilatex file, it
> > > compiles correctly,
> > 
> > Export as 'Clean LaTeX'.
> 
> Has been done. This produces a file that relies on the tcilatex file
> because it contains a lot of non-standard latex.

But only in comments? I had the impression that the exported LaTeX
was "clean".

> > > but how can I read it in lyx?
> > 
> > And try both reLyX and recent tex2lyx on the result. tex2lyx should
> > be quite a bit better, but there are a few corner cases were reLyX
> > is better.
> > 
> I  cannot find tex2lyx. Neither in my local lyx dir, nor at the lyx
> site. Is it only available in cvs?

Hm... yes, could well be. 

Andre'


Re: Scientific Word files

2003-10-27 Thread Angus Leeming
Andre Poenitz wrote:

>> Is there a nice script that replaces SW macros like \unit{} with
>> normal tex commands?
> 
> You could simply define a \unit macro that does what you need
> without translating it at all. Apart from that,

Alternatively, create a math-macro. For example, if I open up a new, 
empty document and then type
M-x (the Alt key and 'x' at the same time)
the cursor is placed in the minibuffer at the bottom of the LyX 
window.

Typing in this window:
math-macro Vector 1[Return]
creates a math-macro in the main LyX window, looking something like:
Macro: Vector: [][]

Input the latex definition of the macro in the first box. In my case 
that would be
Macro: Vector: [\boldmath{#1}][]

Usually you should leave the second box empty. It is a useful hack for 
those times when the math editor doesn't provide visual feedback for 
the macro you have defined. For example, LyX 1.3.x has no native 
support for \boldmath, so you can 'fix' the display by telling LyX to 
use \mathbf or similar.
Macro: Vector: [\boldmath{#1}][\mathbf#1]
where  is a literal space char. Note that, because LyX 
understands \mathbf, this gets translated so that the '#1' is typeset 
in bold.

What to put in the box? Whatever SW uses as its definition of \unit.

-- 
Angus



Re: Scientific Word files

2003-10-27 Thread Martijn Brouwer
On Mon, 27 Oct 2003 16:40:36 +0100
Andre Poenitz <[EMAIL PROTECTED]> wrote:

> > > > I have a document created wiht Scientific Word, and exported as
> > > > portable tex document. Together with the tcilatex file, it
> > > > compiles correctly,
> > > 
> > > Export as 'Clean LaTeX'.
> > 
> > Has been done. This produces a file that relies on the tcilatex file
> > because it contains a lot of non-standard latex.
> 
> But only in comments? I had the impression that the exported LaTeX
> was "clean".

It still uses SW defined macro's. (SW version 4.1 I believe)

> > > > but how can I read it in lyx?
> > > 
> > > And try both reLyX and recent tex2lyx on the result. tex2lyx should
> > > be quite a bit better, but there are a few corner cases were reLyX
> > > is better.
> > > 
> > I  cannot find tex2lyx. Neither in my local lyx dir, nor at the lyx
> > site. Is it only available in cvs?
> 
> Hm... yes, could well be. 

I would like to give it a try. Can it be obtained separately from the lyx source?


Re: Scientific Word files

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 05:27:13PM +0100, Martijn Brouwer wrote:
> I would like to give it a try. Can it be obtained separately from
> the lyx source?

Well, it's part of the LyX Source.

In theory you could chop off a few bits, but in practice getting the
full source should be much simpler.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Scientific Word files

2003-10-27 Thread Andre Poenitz
On Mon, Oct 27, 2003 at 05:27:13PM +0100, Martijn Brouwer wrote:
> I would like to give it a try. Can it be obtained separately from
> the lyx source?

I could send you a SuSE 8.3 binary for 32 bit Intel. 380k stripped...

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)


Re: Scientific Word files

2003-10-27 Thread Angus Leeming
Andre Poenitz wrote:
>> I would like to give it a try. Can it be obtained 
>> separately from the lyx source?

> I could send you a SuSE 8.3 binary for 32 bit Intel.
> 380k stripped...

H.
$ ldd tex2lyx
libz.so.1 => /usr/lib/libz.so.1 (0x40024000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40033000)
libm.so.6 => /lib/i686/libm.so.6 (0x400e5000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40107000)
libc.so.6 => /lib/i686/libc.so.6 (0x4200)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000)

Why does it depend on libz?

Other than libz its dependencies look fine. I take it that libz is 
just a function of linking against libsupport.la?



Given the steady stream of people asking about tex2lyx, would it make 
sense to set up separate cvs trees for both tex2lyx and lyx2lyx? They 
are separate executables after all...

- 
Angus



Re: strange bug in RH9 qt lyx1.3.3

2003-10-27 Thread Jerome Schretter
I don't have any solution to your specific problem. All I can say is
that I had a similar problem with klipper on a RH7.3 system distribution
and with lyx1.3.1 running under KDE.
After selecting text in lyx and clicking on the klipper icon in the
taskbar, it took a while for klipper to pop-up the menu.
Depending on the amount of text selected: the more text I selected, the
longer it took klipper to display the menu.
Some other persons reported no problem under similar conditions on an
updated system (i.e. rh7.3 + "some" patches). I thought it was klipper's
fault which may have been lost because of lyx's treatment of text.
That's only a very wild guess as I don't know much of lyx's internal
text handling.

A bug in the taskbar or another part of your desktop can't be ruled out.
May be you could try to find a way to reproduce the bug.

>From your description, one doesn't know what desktop you're using. Maybe
you can provide more detailed information.

cheers,
JS

Am Mon, 2003-10-27 um 14.19 schrieb Cabuz Alexandru:
> Hello list,
> 
> Here is a behavior that I have seen ever since I installed lyx for the first 
> time a few months ago, version 1.3.2 but it did not really bother me. But now 
> it's starting to get on my nerves so here it is.
> 
> I am working in version 1.3.3  RH9 qt.
> 
> Sometimes, when I select text in lyx, like for example I select a couple of 
> lines to make them bold or italic or something, something strange happens and 
> I seem to lose contact with the red hat task bar at the bottom of the screen. 
> For example if I am running xmms but it's minimized then there is a little 
> xmms button at the bottom. Problem is that if I click on that button to 
> maximize xmms it takes like 5 minutes for that to happen. It eventually 
> happens, but after quite a while. Then, after it opens (which it does all of 
> a sudden), I can do anything INSIDE the window, like change the volume, add 
> songs, whatever, and it responds just fine. No delay. Then I minimize it 
> again, and it does it right away. If I try to remaximize it it takes 5 
> minutes again. 
> Same with like a konsole or any other program, like kmail or mozilla or gftp. 
> If it's minimized it takes 5 minutes to maximize it, then, I can work inside 
> of it without a problem, and minimize it without a problem. During the dead 
> time it seems to access the hard disk every couple of seconds or so, so it's 
> not like it's busy working on something like updating the rpm database or 
> something.
> 
> If I want to open the start menu, again it takes 5 minutes.
> 
> But if I move the mouse over the desktop it does turn into a little pointing 
> hand when I hover over files or folders. 
> 
> So it seems that this bug is very specific to a certain part of the graphical 
> interface, the task bar.
> 
> This does not happen EVERY time I select text in lyx, but it ONLY happens when 
> I have selected some text, and done like copy paste, or just changed the font 
> type or something.
> 
> Before, this used to happen for like a couple of minutes and then all the 
> stuff I had clicked on would happen all at once. But this time I lost an hour 
> and a half a cause de ces conneries.
> 
> Oh, also, during the time it's "quasi-frozen" the clock on the task bar is not 
> updated at all, so I can see exactly when it froze, and how much time I 
> wasted.
> 
> If anybody has ever seen this kind of behavior before, or if anybody has any 
> clue what this is all about, I would appreciate a helping hand. This is 
> exactly the kind of stuff I do not expect to see happening in Linux.
> 
> Alex.


Column alignment in a table (LyX-1.3.3)

2003-10-27 Thread Rich Shepard
  I checked the archives and found a thread from 2001 that asks how to
change the default alignment in a table column from centered to
left-aligned. Dekel Tsur's response doesn't seem to apply to the current
version. I can change the alignment of the entire column (heading and data),
but not individually.

  What I want is to have the column title centered, but the data in
the rows below it left-aligned.

  How do I do this?

TIA,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepardappl-ecosys.com
 http://www.appl-ecosys.com/


Label placement for table reference

2003-10-27 Thread Rich Shepard
  I want to put a cross-reference in the body of the text to a table. The
table is placed in a float. Where do I place the label?

  If placed at the beginning of the caption it is a 'caption label'. If at
the immediate left of the table itself the table is captioned "10.1" but the
cross reference is "10".

Thanks,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepardappl-ecosys.com
 http://www.appl-ecosys.com/


Re: Re: Scientific Word files

2003-10-27 Thread Martijn Brouwer
I could send you a SuSE 8.3 binary for 32 bit Intel. 380k stripped...


Great! It would like it to run on K7.

Thanks for your help.

Martijn



Re: Lyx for Win32, troubleshooting, Results

2003-10-27 Thread Paul A. Rubin
[posted and mailed]

Angus Leeming <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]:

> 
> You say that, if you run convertDefault.sh 'by hand', it works 
> perfectly?

Yes
> Could you try again with this new version, dumping output 
> to a LyX temp directory.
> 
> In fact, since file names like C:/foo/bar/file.xyz are clearly dodgy 
> on Win32, please try the attached script which will change them to 
> C:\foo\bar\file.xyz

Here's the output (run by hand):



> C:\LyX\lyx\bin>sh ../share/lyx/scripts/convertdefault.sh 
jpg:C:/LyX/Documents/ha
> ppy.jpg ppm:C:/LyX/lyx/tmp/lyx_tmpdir604a01532/happy.ppm
> ../share/lyx/scripts/convertdefault.sh invoked as:
> jpg:C:/LyX/Documents/happy.jpg 
ppm:C:/LyX/lyx/tmp/lyx_tmpdir604a01532/happy.ppm
> $arg1 is jpg:C:\LyX\Documents\happy.jpg
> $arg2 is ppm:C:\LyX\lyx\tmp\lyx_tmpdir604a01532\happy.ppm
> ../share/lyx/scripts/convertdefault.sh ERROR
> Unable to find file "C:\LyX\lyx\tmp\lyx_tmpdir604a01532\happy.ppm"

The target file happy.ppm was created and is in fact sitting in the temp 
directory when the "Unable to find ..." message is generated. The path 
and file name are correct.
> 
> I understand that Win32 machines often have a 'convert.exe' file that 
> converts file partitions to/from FAT32. Perhaps this is a PATH issue 
> and the wrong 'convert' is getting called.

No, the conversion is being done correctly, so it must be the correct 
"convert" program.

I poked around with the script myself over the weekend, and may have come 
up with at least a partial answer.  We seem to be dealing with not one 
but two problems here.  The first is that Ruurd supplies a Windows port 
of sh but not a port of cut.  Thus on a "virgin" installation of Ruurd's 
port, the line 

FILE=`echo $2 | cut -d ':' -f 2`

in convertDefault.sh will fail silently (because cut is not found), 
setting FILE to a null value.  The subsequent 

test -f $FILE || FSTATUS=1

must then succeed (trivially) and the script proceeds on the (untested) 
assumption that the converted file is where it is supposed to be -- which 
in fact it is in my test case.  (If I comment out the line that calls 
cut, graphics display in LyX.  Of course, this will go awry the day that 
a conversion actually fails.)

The other confounding factor is that my machine's not a virgin; I have 
Cygwin installed, and Cygwin *does* supply cut.exe.  So on my machine the 
call to cut works -- which turns out to be unfortunate, because argument 
$2 contains a drive specification (ppm:C:/LyX/...).  The second colon 
causes the -f 2 argument to return C as the value of $FILE, and then the 
test fails.  I tried -f 3 and -f 2-, and neither worked.  What finally 
worked (I think) was

FILE=`echo $2 | cut -d ':' -f 3`
FILE="/c/$FILE"

and then the rest of the script as is.

Disclaimer here:  I grew up in the PC world and speak very limited 
amounts of Unix.  Someone who actually understands sh should check this 
over.

-- Paul

*
Paul A. Rubin  Phone:(517) 432-3509
Department of Management   Fax:  (517) 432-
The Eli Broad Graduate School of ManagementE-mail:   [EMAIL PROTECTED]
Michigan State University  http://www.msu.edu/~rubin/
East Lansing, MI  48824-1122  (USA)
*
Mathematicians are like Frenchmen:  whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different.J. W. v. GOETHE



Enterind a matrix

2003-10-27 Thread Rich Shepard
  I've read the Users Guide and I've futzed with the Math Panel but I don't
know how to enter a 3x3 matrix. I _think_ I have the top line OK, but I
cannot move the cursor down one row for the second line. What I want to
enter is:

  _ _
  | 1  1/3  1/2 |
  M = | 3   13  |
  | 2  1/3   1  |
  - -

  Where do I read to learn exactly how to do this?

Thanks,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepardappl-ecosys.com
 http://www.appl-ecosys.com/


Re: Lyx for Win32, troubleshooting, Results

2003-10-27 Thread Angus Leeming
Paul A. Rubin wrote:

> [posted and mailed]
> 
> Angus Leeming <[EMAIL PROTECTED]> wrote in
> news:[EMAIL PROTECTED]:
> 
>> 
>> You say that, if you run convertDefault.sh 'by hand', it works
>> perfectly?
> 
> Yes
>> Could you try again with this new version, dumping output
>> to a LyX temp directory.
>> 
>> In fact, since file names like C:/foo/bar/file.xyz are clearly
>> dodgy on Win32, please try the attached script which will change
>> them to C:\foo\bar\file.xyz
> 
> Here's the output (run by hand):
> 
> 
> 
>> C:\LyX\lyx\bin>sh ../share/lyx/scripts/convertdefault.sh
> jpg:C:/LyX/Documents/ha
>> ppy.jpg ppm:C:/LyX/lyx/tmp/lyx_tmpdir604a01532/happy.ppm
>> ../share/lyx/scripts/convertdefault.sh invoked as:
>> jpg:C:/LyX/Documents/happy.jpg
> ppm:C:/LyX/lyx/tmp/lyx_tmpdir604a01532/happy.ppm
>> $arg1 is jpg:C:\LyX\Documents\happy.jpg
>> $arg2 is ppm:C:\LyX\lyx\tmp\lyx_tmpdir604a01532\happy.ppm
>> ../share/lyx/scripts/convertdefault.sh ERROR
>> Unable to find file "C:\LyX\lyx\tmp\lyx_tmpdir604a01532\happy.ppm"
> 
> The target file happy.ppm was created and is in fact sitting in the
> temp directory when the "Unable to find ..." message is generated.
> The path and file name are correct.

Good. So we have probably nailed down the problem. The file is 
generated correctly but LyX itself is unable to understand this 
'mixed language' file name 'C:/foo/bar.ppm'.

The proper fix will almost certainly be to tell LyX that the file name 
is of the form 'C:\foo\bar.ppm. It should be able to find that well 
enough.

> I poked around with the script myself over the weekend, and may have
> come up with at least a partial answer.

Yes, I have come to this conclusion myself and have changed the script 
appropriately. The relevant line is now
FILE=`echo $arg2 | sed 's,^[^:]*:,,'`

which cuts off anything up to and including the first ':'.

In the long run it may be easier to change the language and use 
python.

> Disclaimer here:  I grew up in the PC world and speak very limited
> amounts of Unix.  Someone who actually understands sh should check
> this over.

Well, I'll hold your hand in the unix world if you hold mine in the pc 
one ;-)

I'll try and fix the real problem which lies in the LyX sources.

Many thanks for your detective work.
-- 
Angus



Re: Enterind a matrix

2003-10-27 Thread Paul A. Rubin
[posted and mailed]

Rich Shepard <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]: 

>   I've read the Users Guide and I've futzed with the Math Panel but I
>   don't 
> know how to enter a 3x3 matrix. I _think_ I have the top line OK, but
> I cannot move the cursor down one row for the second line. What I want
> to enter is:
> 
>   _ _
>   | 1  1/3  1/2 |
>   M = | 3   13  |
>   | 2  1/3   1  |
>   - -
> 
>   Where do I read to learn exactly how to do this?
> 

Hi,

Not sure what the problem is.  You should be able to do the following:

1.  Open the math panel and click the insert matrix button.

2.  Adjust the size to 3x3, adjust the vertical and horizontal alignment 
as desired, and click Ok.  That inserts an empty matrix.

3.  You should be seeing 9 empty cells (outlined in blue) in a 3x3 
configuration.  You should be able to click into any cell you want, or 
use the arrow keys to navigate among cells.

4.  To enclose in brackets, braces or whatever, highlight the whole 
matrix and use the appropriate delimiter button from the math panel.

I gather this isn't working for you?  Can you post a click-by-click 
description of what you're doing and where it goes south?

-- Paul

*
Paul A. Rubin  Phone:(517) 432-3509
Department of Management   Fax:  (517) 432-
The Eli Broad Graduate School of ManagementE-mail:   [EMAIL PROTECTED]
Michigan State University  http://www.msu.edu/~rubin/
East Lansing, MI  48824-1122  (USA)
*
Mathematicians are like Frenchmen:  whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different.J. W. v. GOETHE



Re: Enterind a matrix

2003-10-27 Thread Christian Ridderström
On Mon, 27 Oct 2003, Rich Shepard wrote:

>   I've read the Users Guide and I've futzed with the Math Panel but I don't
> know how to enter a 3x3 matrix. I _think_ I have the top line OK, but I
> cannot move the cursor down one row for the second line. What I want to
> enter is:

Hi, I'm not sure what your problem is, but I put an example here:

http://wiki.lyx.org/pmwiki.php/Examples/InsertMatrix

/Christian 

-- 
Christian Ridderström   http://www.md.kth.se/~chr




Re: Lyx for Win32, troubleshooting, Results

2003-10-27 Thread Kayvan A. Sylvan
> > temp directory when the "Unable to find ..." message is generated.
> > The path and file name are correct.
> 
> Good. So we have probably nailed down the problem. The file is 
> generated correctly but LyX itself is unable to understand this 
> 'mixed language' file name 'C:/foo/bar.ppm'.

Maybe it's not LyX, but LaTeX?

I had a similar problem with the CVS lyx and had to apply the following patch:

$ cvs diff -u src/support/os_win32.C 
Index: src/support/os_win32.C
===
RCS file: /cvs/lyx/lyx-devel/src/support/os_win32.C,v
retrieving revision 1.13
diff -u -r1.13 os_win32.C
--- src/support/os_win32.C  2003/10/08 08:38:05 1.13
+++ src/support/os_win32.C  2003/10/27 22:36:47
@@ -108,8 +108,9 @@
 
 string external_path(string const & p)
 {
+   char const * const disable_cygwin_fixup = getenv("LYX_NO_CYGPATH_FIX");
string dos_path = p;
-   if (is_absolute_path(p)) {
+   if ((! disable_cygwin_fixup) && is_absolute_path(p)) {
char dp[255];
cygwin_conv_to_full_win32_path(p.c_str(), dp);
dos_path = subst(dp,'\\','/');

I run with the environment variable LYX_NO_CYGPATH_FIX defined
and things work.

I may be right, or I may be crazy.
But it just might be a lunatic you're looking for...

---Kayvan
-- 
Kayvan A. Sylvan  | Proud husband of   | Father to my kids:
Sylvan Associates, Inc.   | Laura Isabella Sylvan  | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)


Re: Lyx for Win32, troubleshooting, Results

2003-10-27 Thread Angus Leeming
On Monday 27 October 2003 10:40 pm, Kayvan A. Sylvan wrote:
> > > temp directory when the "Unable to find ..." message is generated.
> > > The path and file name are correct.
> >
> > Good. So we have probably nailed down the problem. The file is
> > generated correctly but LyX itself is unable to understand this
> > 'mixed language' file name 'C:/foo/bar.ppm'.
>
> Maybe it's not LyX, but LaTeX?

In the particular case we're discussing it's not LaTeX. The Win32 version of 
LyX is unable to display graphics files on screen if they need to first be 
converted to a 'loadable' format. It transpires that there are several bugs 
in the code when it comes to Win32 but the primary one is:

LyX calls the files stuff like 'C:/foo/bar.jpg'
It seems like the shell script and ImageMagick can handle this abuse but once 
LyX is told that the conversion has succeeded it has code:

void CacheItem::Impl::imageConverted(bool success)
{
file_to_load_ = converter_.get() ?
converter_->convertedFile() : string();
success = !file_to_load_.empty() && IsFileReadable(file_to_load_);

if (!success) {
lyxerr[Debug::GRAPHICS] << "Unable to find converted file!"
<< endl;
setStatus(ErrorConverting);
return;
}
...
}

I bet that 'IsFileReadable(file_to_load_)' can't handle 'C:/foo/bar.jpg'

Anyway, we go on from there to actually loading the file. Can Qt cope with 
such abuse? I'd be musch happier if we generated a 'reasonable' file name in 
the first place.

void QLImage::load(string const & filename)
{
if (!pixmap_.load(toqstr(filename))) {
lyxerr[Debug::GRAPHICS]
<< "Unable to open image" << endl;
return;
}


> I had a similar problem with the CVS lyx and had to apply the following
> patch:

Yes, but this works around the problem rather than addresses the primary 
cause.

> I may be right, or I may be crazy.
> But it just might be a lunatic you're looking for...

In this case I want someone sane, but thanks for the offer ;-)
Regards,
Angus



Re: Enterind a matrix

2003-10-27 Thread Rich Shepard
On Mon, 27 Oct 2003, Paul A. Rubin wrote:

> Not sure what the problem is.  You should be able to do the following:

Paul,

  A couple of problems.

> 1.  Open the math panel and click the insert matrix button.
   ^

  I paused the cursor over every button but this one. I kept looking for a
matrix button but didn't find it. When I read your answer I looked more
carefully and there it was.

> 4.  To enclose in brackets, braces or whatever, highlight the whole
> matrix and use the appropriate delimiter button from the math panel.

  This is still not working for me. When I try to highlight the entire
matrix by moving the cursor over the 9 positions while holding down the left
trackball button, I get 9 little blue squares. Then I select the [] from the
left side of the delimiter widget and click on 'insert'. Now all my values
are gone, except for position 1,1 which has the bracket around it.

  When I try to highlight the entire math box I get a little bracketed box
either in front of or behind the matrix.

  Why the brackets don't enclose all 9 elements I don't know; I've tried it
3 times.

Thanks very much,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepardappl-ecosys.com
 http://www.appl-ecosys.com/


Re: Enterind a matrix

2003-10-27 Thread Rich Shepard
On Mon, 27 Oct 2003, Christian Ridderström wrote:

> Hi, I'm not sure what your problem is, but I put an example here:
>
>   http://wiki.lyx.org/pmwiki.php/Examples/InsertMatrix

Christian,

  Thank you. As I wrote in response to the previous reply, I missed the
matrix button. However, I still cannot get the brackets around it.

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepardappl-ecosys.com
 http://www.appl-ecosys.com/


Re: Enterind a matrix

2003-10-27 Thread Kai Johannes Keller
Hello Rich,

just try it again with this further information. I didn't figure out
what exactly your problem is, but when I tried to put a bracket around a
matrix I did either:

1. Insert the bracket and pklace the curser inside (that's where it is
anyway after inserting a bracket)

2. Insert the matrix as described before.

or:

1. Insert the matrix and highlighten it (there has to be one blue-filled
box for all the 9 small boxes) "maybe try to look at the matrix as if it
is only one letter and highlighten this".

2. Insert the brackets

and both worked just fine.




Am Die, 2003-10-28 um 01.03 schrieb Rich Shepard:
> On Mon, 27 Oct 2003, Christian Ridderström wrote:
> 
> > Hi, I'm not sure what your problem is, but I put an example here:
> >
> > http://wiki.lyx.org/pmwiki.php/Examples/InsertMatrix
> 
> Christian,
> 
>   Thank you. As I wrote in response to the previous reply, I missed the
> matrix button. However, I still cannot get the brackets around it.
> 
> Rich
> 
> Dr. Richard B. Shepard, President
> 
>Applied Ecosystem Services, Inc. (TM)
> 2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
>  + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepardappl-ecosys.com
>  http://www.appl-ecosys.com/
-- 
Kai Johannes Keller <[EMAIL PROTECTED]>



Re: Entering a matrix

2003-10-27 Thread Rich Shepard
On Mon, 28 Oct 2003, Kai Johannes Keller wrote:

> 1. Insert the bracket and pklace the curser inside (that's where it is
> anyway after inserting a bracket)

> 2. Insert the matrix as described before.

Kai,

  That was going to be my next try. :-)

> or:
>
> 1. Insert the matrix and highlighten it (there has to be one blue-filled
> box for all the 9 small boxes) "maybe try to look at the matrix as if it
> is only one letter and highlighten this".

  This is what I've been trying to do. I keep getting 9 little blue boxes
until ... I held down the ctrl key while blocking the matrix boxes with the
trackball. _That_ worked!

  Perhaps it's just my installation. I don't know why I had so much trouble,
but I just could not get a single, large highlight for all matrix elements.

Whew! Thanks to all of you,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepardappl-ecosys.com
 http://www.appl-ecosys.com/


footnote indentation

2003-10-27 Thread James Cane-Carrasco
I haven't been able to find any other posts that quite address the problem 
that I am having here.

I have a document in the book (AMS) document class which has many (incredibly 
interesting!) footnotes. These footnotes are formatted fine, with a nice 
indent at the start of the note, as long as I keep the main text single 
space.

But if I change the main text to 1.5 space or double space, the footnotes lose 
the indent, which makes them a bit difficult to distinguish from eachother. 
The margins are fine, the notes just lose the indent at the beginning.

I tried removing all of the comments from my document preamble and setting 
everything to the class defaults to see if there was something obvious that 
might be causing this, but even in my resulting "vanilla" document I find the 
same problem.

Sorry to be asking such an obvious question, but I haven't been able to find 
the answer to this one in any of the documentation or lists.

Thanks, and best wishes,
Jim
-- 
James Cane-Carrasco
Department of History/SIAS
University of Oklahoma
[EMAIL PROTECTED]



Re: Column alignment in a table (LyX-1.3.3)

2003-10-27 Thread Jeannette Meyer

>   What I want is to have the column title centered, but the data in
> the rows below it left-aligned.

Change the title cell to a multicolumn cell (in table settings). Then you can 
set the horizontal alignment individually.

Jeannette


Re: Label placement for table reference

2003-10-27 Thread Jeannette Meyer
On Monday 27 October 2003 21:37, Rich Shepard wrote:
>   I want to put a cross-reference in the body of the text to a table. The
> table is placed in a float. Where do I place the label?
>
>   If placed at the beginning of the caption it is a 'caption label'. If at
> the immediate left of the table itself the table is captioned "10.1" but
> the cross reference is "10".

Place it at the beginning of the caption (right before your caption text). 
That should work, at least it works for me. The same goes for figures. You 
can rename the 'cap:' to 'fig:' or 'table:' if you want.

Jeannette


trouble with 1.3.3

2003-10-27 Thread Konrad Blum
Hi,

I am using lyx regularly to prepare slides and materials for classes.
With 1.3.3 I am working quite happily under SuSE 8.2. since it was
available.

Since a few days something goes wrong - any  time I try to save a freshly
started slide file after I try to insert a table --  I get something like:

lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. Please read the bug-reporting
instructions in Help->Introduction and send us a bug report, if necessary.
Thanks !
LyX: Versuche, das Dokument slides_three_new.lyx zu speichern...
  slides_three_new.lyx.emergency

The emergency file then proves to be a bastard which sends lyx into an
infinite loop - if I copy xyz.lyx.emergency to xyz.lyx and then start lyx
xyz.lyx & it never makes it further than just to display the qt-window
frame...

Well I should mention, that exporting or viewing PDF without saving the
file works nicely, only the save button has to be avoided...

Any idea how to proceed with diagnostics? (I have attached the latest
"slides_three_new.lyx.emergency" )

thanx

-KB

===
Dr. Konrad Blum / PPRE / EHF / Dept. Physics / Fac. Maths & Science
  Carl von Ossietzky University of Oldenburg / http://www.ppre.de
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass slides
\language english
\inputencoding auto
\fontscheme times
\graphics default
\paperfontsize default
\spacing single 
\papersize a5paper
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation landscape
\leftmargin 0.1in
\topmargin 0.1in
\rightmargin 0.1in
\bottommargin 0.1in
\headheight 0in
\headsep 0in
\footskip 0in
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle empty

\layout Standard
\align center 

\series bold 
\shape slanted 
\size huge 
\color red
Energy of Biomass Fuels
\layout Standard

Thinking chemistrywise:
\layout Standard


\begin_inset Formula \[
A+B\longrightarrow C+D\]

\end_inset 


\layout Standard


\begin_inset Formula $\Delta H_{reaction}=H_{products}-H_{educts}$
\end_inset 

 and
\layout Standard


\begin_inset Formula $\Delta G_{reaction}=G_{products}-G_{educts}$
\end_inset 


\layout Standard

So, if we talk of 
\begin_inset Quotes eld
\end_inset 

energy content
\begin_inset Quotes erd
\end_inset 

 of some biofuel 
\begin_inset Formula $A$
\end_inset 

 we in reality assume that this is the 
\emph on 
enthalpy
\emph default 
 released in the reaction of 
\begin_inset Formula $A$
\end_inset 

 with oxygen under some well defined conditions (
\begin_inset Formula $B$
\end_inset 

 in the equation above) to the products 
\begin_inset Formula $C+D$
\end_inset 

 (regularly 
\emph on 
water
\emph default 
 and carbon 
\emph on 
dioxide
\emph default 
).
\layout Standard

And there is a further complication:
\layout Standard


\begin_inset Formula \[
CH_{4}+2O_{2}\longrightarrow CO_{2}+2H_{2}O\]

\end_inset 


\layout Standard

...the so called 
\emph on 
stoichiometric factors.
\layout Standard

So for the 
\emph on 
combustion reaction of methane
\emph default 
 the above given calculcations for 
\begin_inset Formula $\Delta H_{reaction}$
\end_inset 

 and 
\begin_inset Formula $\Delta G_{reaction}$
\end_inset 

 are better made in the following way:
\layout Standard
\align center 

\begin_inset  Tabular