Re: multline environement

2002-03-18 Thread Andre Poenitz

On Fri, Mar 15, 2002 at 07:51:35PM +0100, Davide Cavallari wrote:
 What should I do to use the multline environment? I get an error
 message complaining it is an undefined environment.

The only way to get it is to use 1.2.0cvs. 

There is no support for multline (and all the other AMS environments for
that matter) in the 1.1.6 series.

Andre'

-- 
André Pönitz .. [EMAIL PROTECTED]



Re: problem with latex commands

2002-03-18 Thread Andre Poenitz

On Sat, Mar 16, 2002 at 11:09:56AM +0100, Davide Cavallari wrote:
 The fact is that I want to use the command:
 
 \begin{equation*}
 |x|= 
 \begin{cases} x  \text{if $x0$,}
 -x \text{if $x\le 0$.}
 \end{cases}
 \end{equation*}
 
 What I have to do to make it work in lyx?

\text{} does not work even in 1.2, so the closest thing you might get is

\begin{equation*}
|x|= 
\begin{cases} x  \mathrm{if} x0 \mathrm{,}
-x \mathrm{if} x\le 0.}
\end{cases}
\end{equation*}

You can type this in the main LyX text, highlight it and press C-m to
convert it to math.

Andre'

-- 
André Pönitz .. [EMAIL PROTECTED]



Re: Re: multline environement

2002-03-18 Thread Guenter Milde

On Mon, 18 Mar 2002 09:38:35 +0100 wrote Andre Poenitz [EMAIL PROTECTED]:

 On Fri, Mar 15, 2002 at 07:51:35PM +0100, Davide Cavallari wrote:
  What should I do to use the multline environment? I get an error
  message complaining it is an undefined environment.
 
 The only way to get it is to use 1.2.0cvs. 
 
 There is no support for multline (and all the other AMS environments for
 that matter) in the 1.1.6 series.

Besides ERT, of course.

GM

--
[EMAIL PROTECTED]




HTML export: ALT tag for images uses TeX code

2002-03-18 Thread laurent . duperval

Hi,

I noticed that when exporting my LyX files to HTML, the ALT tag of my
figures consists of the TeX code needed to load the image in the document.
How can I make LyX use the caption of my figure instead?

Thanks,

L

P.S. I vote for the newsgroup with a gateway to the mailing list. One list I
subscribe to (I think it was postgres) was a closed list (unlike LyX) and
had a news gateway. The way it worked was that you could only post to the NG
if you were subscribed. In your mailing list options, you could say that you
only wanted to use NNTP, then you didn't get any email in your box.

-- 
Laurent Duperval mailto:[EMAIL PROTECTED]

If 7-11 is open 24 hours a day, 365 days a year, why are there locks on
the doors?





RE: LyX and Prosper

2002-03-18 Thread Bo Peng

 Okay,

 Do this:

 Set the LaTeX stuff up in a private directory (/some/directory).

 Then:

 export TEXINPUTS=.:/some/directory:`kspepath tex`

 This should add . and /some/directory to the standard list of directories
 that LaTeX searches.


I was using $TEXINPUTS and latex could compile cluster.tex smoothly. Still,
lyx could not find prosper.cls. That is why I thought that lyx only searchs
standard latex path.

Bo




Fixed! [was Re: Changes to my .bib file are ignored]

2002-03-18 Thread Todd Greer

I moved to 1.6.6fix4 (I was at 1.6.6fix3b), and it works now, though only if I
run LyX as lyxwin32.exe.  If I run it as lyx.exe, it doesn't work, which is OK,
since the Win32 port webpage does say to use lyxwin32.exe.  (With fix3b,
I'd had some sort of problem with lyxwin32.exe, so I was using lyx.exe.)

Thanks for the responses, and I apologize for mailing the list before checking
the latest stable build.  Mea culpa.

-- 
Todd Greer  [EMAIL PROTECTED]







Re: labeling equation in tex style

2002-03-18 Thread Davide Cavallari

On Sun, Mar 17, 2002 at 11:52:26AM +0100, Davide Cavallari wrote:
 \[
 \pi (w_r|\vec{w}) =
 \begin{cases}\frac{1}{\eta} f \left(
 \frac{w_r'-(1-\eta)w_r}{\eta}\right) + C_r(\vec{w})\delta(w_r'-w_r), 
   \alpha_r(\vec{w}) \le w_r' \le \beta_r(\vec{w}) \\
 C_r(\vec{w})\delta(w_r'-w_r),  w_r'  \alpha_r(\vec{w}) 
   \vee w_r'  \beta_r(\vec{w})
 \end{cases} 
 \]
 
 What is  the best way to  label it? 

It  was a  silly question,  sorry!  I only  need to  substitute \[  \]
with  begin/end{equation} and  then i  can  simply insert  a labal  with
Insert-Label.
-- 
Cheers,
Davide Cavallari
If a thing's worth having, it's worth cheating for.
-- W.C. Fields



Copy text and paste it in math mode

2002-03-18 Thread Reuben D Budiardja

Hi,
I can't seem to copy text (either from another application or from text in 
Lyx itself) and then paste it in Math mode. Is there any way to do that? or 
at least insert a text file that containts math expression, and have lyx 
display it in math mode?

The problem is, I do all my calculation and work in another application 
(maple), but I want to write my final paper in lyx. It would be really 
tedious if I have to write all those long messy equation by hand. I am using  
lyx-1.1.6fix4-1 in RedHat linux 7.2.

Sorry for the newbie question. Thanks in advance for any help.

Reuben D. Budiardja



Re: Problems including bitmap figures pdflatex

2002-03-18 Thread Dekel Tsur

On Mon, Mar 18, 2002 at 08:37:29AM +0100, Víctor Martínez Moll wrote:
 Thank you Wayan!
 
 I tried png files and everything is OK now. It works even for the table 
 issue!
 Reffering to the use of pdflatex, I prefer to use it because  I have 
 problems with some fonts (especially in matematical mode) with ps2pdf.

Read section 3.3.6 on Extended.lyx in order to learn how to have good fonts
when using ps2pdf.

Also, the problem you had with the bitmap image when you converted them to
PDF was due to your broken version of pdftex (probably 0.13d).
Of course, even without bugs, the correct way to is not to convert to PDF,
but to convert to png/jpeg.



Re: Bibliography

2002-03-18 Thread Dekel Tsur

On Mon, Mar 18, 2002 at 10:11:48AM -0400, Rodrigo Gesswein wrote:
 Hi!
 
 I'm  writing  a  document  with  book  class. In Bibliography
 environment  I need to customize the big skip space from top page
 and  the  word  Bibliography.  Also  I  need to change the word

In the preamble put the following lines(change the zero after \vspace*
if you want to change the space to something else):

\def\mymakeschapterhead#1{%
  \vspace*{0\p@}%
  {\parindent \z \raggedright
\normalfont
\interlinepenalty\@M
\Huge \bfseries X #1\par\nobreak
\vskip 40\p
  }}

\let\oldthebibliography=\thebibliography
\def\thebibliography{%
  \let\@makeschapterhead\mymakeschapterhead%
  \oldthebibliography}

 Bibliography  for  My custom bibliography words. How can I do
 this ??

In the preamble:
\AtBeginDocument{\renewcommand{\bibname}{My custom bibliography words}}



Re: Copy text and paste it in math mode

2002-03-18 Thread Dekel Tsur

On Mon, Mar 18, 2002 at 02:37:20PM -0500, Reuben D Budiardja wrote:
 Hi,
 I can't seem to copy text (either from another application or from text in 
 Lyx itself) and then paste it in Math mode. Is there any way to do that? or 
 at least insert a text file that containts math expression, and have lyx 
 display it in math mode?
 
 The problem is, I do all my calculation and work in another application 
 (maple), but I want to write my final paper in lyx. It would be really 
 tedious if I have to write all those long messy equation by hand. I am using  
 lyx-1.1.6fix4-1 in RedHat linux 7.2.

This can be done in lyx 1.2.0cvs, but not in 1.1.6.
In lyx 1.1.6 you need to copy the text into a temporary .tex file
(in maple you need to output the equations as latex)
say temp.tex, run reLyX -p -c article temp.tex, and then
do Insert-Insert-LyX document in LyX, and select temp.lyx in the file
browser.

In fact, in lyx 1.2.0cvs can communicate with maple.
For example, you can write 2x-x in lyx,
hit a key, and lyx automatically adds =x.



RE: Copy text and paste it in math mode

2002-03-18 Thread Bo Peng


 On Mon, Mar 18, 2002 at 02:37:20PM -0500, Reuben D Budiardja wrote:
  Hi,
  I can't seem to copy text (either from another application or
 from text in
  Lyx itself) and then paste it in Math mode. Is there any way to
 do that? or
  at least insert a text file that containts math expression, and
 have lyx
  display it in math mode?
 
  The problem is, I do all my calculation and work in another application
  (maple), but I want to write my final paper in lyx. It would be really
  tedious if I have to write all those long messy equation by
 hand. I am using
  lyx-1.1.6fix4-1 in RedHat linux 7.2.

 This can be done in lyx 1.2.0cvs, but not in 1.1.6.
 In lyx 1.1.6 you need to copy the text into a temporary .tex file
 (in maple you need to output the equations as latex)
 say temp.tex, run reLyX -p -c article temp.tex, and then
 do Insert-Insert-LyX document in LyX, and select temp.lyx in the file
 browser.

 In fact, in lyx 1.2.0cvs can communicate with maple.
 For example, you can write 2x-x in lyx,
 hit a key, and lyx automatically adds =x.


You can also let maple generate latex output and then paste it into lyx.
Then, mark the tex code as tex mode.

Bo




\input{} doesn't auto-update when latex is re-run

2002-03-18 Thread Nirmal Govind

Hi,

I've got a couple of \input{my_file} statements in my file. However, when I 
change the contents of my_file and then do an Update-DVI or an Update-PS 
in LyX, the changes I made to my_file aren't reflected. I have to then 
remove the \input statement and do an Update-DVI (basically re-run Latex), 
then have to insert the \input again and do an Update again and now the 
changes in my_file are made in the DVI and PS files. Anyone know what's 
going wrong?

Thanks,
nirmal




Dangerous BUG: Search/Replace

2002-03-18 Thread Laszlo E Szabo

Hello,

RedHat 7.2 (Default=Hungarian) + LyX 1.1.6fix4 

I reported a dangerous bug some days ago, but I made a mistake. The actual 
problem is even more dangerous: 
Enter a word into the search box AND PRESS SPACE (sorry, I wrote ENTER in 
my previous mail).  It starts to DELETE all instances of the word you 
entered. It is dangerous if you have a long part of the document which was 
not yet saved. Because you cannot step by step undo deleting say 5000 The-s 
in a book (it would take a few hours). The other possibility is to close the 
file without saving and opening it again without using the autosaved version, 
which means you lost the not yet saved part of the document. So, you are 
enforced to make a choice between loosing 5000 the-s or loosing the new 
part of the text you wrote. So, you cannot search, the apple, for example, 
because of the space.

Laszlo
-- 

Laszlo E. Szabo
Department of Theoretical Physics
Department of History and Philosophy of Science
Eotvos University, Budapest
H-1518 Budapest, Pf. 32, Hungary
Phone/Fax: (36-1)372-2924
Home: (36-1) 200-7318
Mobil/SMS: (36) 20-366-1172
http://hps.elte.hu/~leszabo



Re: converting xml to lyx

2002-03-18 Thread Paul Tremblay

On Sun, Mar 17, 2002 at 10:05:16PM +0100, Florian Kohl wrote:

 
 sorry if this has already been covered but I could not find
 anything on google about this,
 
 I have an xml document that I want to convert to lyx,
 what would be the easiest approach to do so?
 
 
 

Funny, but I am working on this same exact problem right now. I
have learned perl just for this purpose. I joined an xml-perl
mailing list.

Below is a copy of an email I sent to this mailing list and the
response. If you want, I'll update you with my progress. I think
it is definitely something people should look into--I mean,
converting XML to LaTeX.

Paul

**8

Paul Tremblay wrote:

Specifically, I have files in xml that I want to convert to
LaTeX.

[...]

I am assuming that XML::Parser is the module I
should use. However, I have seen that there are several modules
out there (for example, the DOM module). Should I also be looking
at what these modules do? 

Have you tried XSLT? It's primarly used for XML-XML transformations, 
but with an xsl:output method=text / at the top, it can do XML-LaTeX.

Advantage: XSLT is familiar to most people who deal with XML. There's 
just the stylesheet and a very few lines of Perl (with the XML::LibXSLT 
module or whichever you prefer). In fact, this might be heresy here, but 
it would be just as easy to run with even a non-Perl XSLT processor.

Disadvantage: It loads the entire document into memory before doing 
anything. I think incremental XSLT processors are possible, but I've 
never seen one. This is not a big deal for small documents, but may be 
for large ones.

If not that, then XML::SAX might be a good choice. Get a parser with 
XML::SAX::ParserFactory (or specify one explicitly), derive a package 
from XML::SAX::Base, override stuff appropriately. It's the same concept 
as XML::Parser, but better for reasons explained in XML::SAX::Intro. It 
is incremental, if that matters to you. (I've been playing around with 
this lately. Seems fairly easy.)


-- 


*Paul Tremblay *
*[EMAIL PROTECTED]*




Brace grouping in math mode.

2002-03-18 Thread Joao Luis Meloni Assirati


Hello,

I use the latest lyx 1.2.0cvs. When in math mode, typing { produces a pair
of raw grouping braces {} instead of a pure brace \{, as in text mode. I
posted this to lyx-devel and was informed that grouping {} are sometimes
needed in math mode. Can someone show me an example where grouping braces
are needed outside ERT?

Thank you,

Joao Luis.




Re: multline environement

2002-03-18 Thread Andre Poenitz

On Fri, Mar 15, 2002 at 07:51:35PM +0100, Davide Cavallari wrote:
 What should I do to use the multline environment? I get an error
 message complaining it is an undefined environment.

The only way to get it is to use 1.2.0cvs. 

There is no support for multline (and all the other AMS environments for
that matter) in the 1.1.6 series.

Andre'

-- 
André Pönitz .. [EMAIL PROTECTED]



Re: problem with latex commands

2002-03-18 Thread Andre Poenitz

On Sat, Mar 16, 2002 at 11:09:56AM +0100, Davide Cavallari wrote:
 The fact is that I want to use the command:
 
 \begin{equation*}
 |x|= 
 \begin{cases} x  \text{if $x0$,}
 -x \text{if $x\le 0$.}
 \end{cases}
 \end{equation*}
 
 What I have to do to make it work in lyx?

\text{} does not work even in 1.2, so the closest thing you might get is

\begin{equation*}
|x|= 
\begin{cases} x  \mathrm{if} x0 \mathrm{,}
-x \mathrm{if} x\le 0.}
\end{cases}
\end{equation*}

You can type this in the main LyX text, highlight it and press C-m to
convert it to math.

Andre'

-- 
André Pönitz .. [EMAIL PROTECTED]



Re: Re: multline environement

2002-03-18 Thread Guenter Milde

On Mon, 18 Mar 2002 09:38:35 +0100 wrote Andre Poenitz [EMAIL PROTECTED]:

 On Fri, Mar 15, 2002 at 07:51:35PM +0100, Davide Cavallari wrote:
  What should I do to use the multline environment? I get an error
  message complaining it is an undefined environment.
 
 The only way to get it is to use 1.2.0cvs. 
 
 There is no support for multline (and all the other AMS environments for
 that matter) in the 1.1.6 series.

Besides ERT, of course.

GM

--
[EMAIL PROTECTED]




HTML export: ALT tag for images uses TeX code

2002-03-18 Thread laurent . duperval

Hi,

I noticed that when exporting my LyX files to HTML, the ALT tag of my
figures consists of the TeX code needed to load the image in the document.
How can I make LyX use the caption of my figure instead?

Thanks,

L

P.S. I vote for the newsgroup with a gateway to the mailing list. One list I
subscribe to (I think it was postgres) was a closed list (unlike LyX) and
had a news gateway. The way it worked was that you could only post to the NG
if you were subscribed. In your mailing list options, you could say that you
only wanted to use NNTP, then you didn't get any email in your box.

-- 
Laurent Duperval mailto:[EMAIL PROTECTED]

If 7-11 is open 24 hours a day, 365 days a year, why are there locks on
the doors?





RE: LyX and Prosper

2002-03-18 Thread Bo Peng

 Okay,

 Do this:

 Set the LaTeX stuff up in a private directory (/some/directory).

 Then:

 export TEXINPUTS=.:/some/directory:`kspepath tex`

 This should add . and /some/directory to the standard list of directories
 that LaTeX searches.


I was using $TEXINPUTS and latex could compile cluster.tex smoothly. Still,
lyx could not find prosper.cls. That is why I thought that lyx only searchs
standard latex path.

Bo




Fixed! [was Re: Changes to my .bib file are ignored]

2002-03-18 Thread Todd Greer

I moved to 1.6.6fix4 (I was at 1.6.6fix3b), and it works now, though only if I
run LyX as lyxwin32.exe.  If I run it as lyx.exe, it doesn't work, which is OK,
since the Win32 port webpage does say to use lyxwin32.exe.  (With fix3b,
I'd had some sort of problem with lyxwin32.exe, so I was using lyx.exe.)

Thanks for the responses, and I apologize for mailing the list before checking
the latest stable build.  Mea culpa.

-- 
Todd Greer  [EMAIL PROTECTED]







Re: labeling equation in tex style

2002-03-18 Thread Davide Cavallari

On Sun, Mar 17, 2002 at 11:52:26AM +0100, Davide Cavallari wrote:
 \[
 \pi (w_r|\vec{w}) =
 \begin{cases}\frac{1}{\eta} f \left(
 \frac{w_r'-(1-\eta)w_r}{\eta}\right) + C_r(\vec{w})\delta(w_r'-w_r), 
   \alpha_r(\vec{w}) \le w_r' \le \beta_r(\vec{w}) \\
 C_r(\vec{w})\delta(w_r'-w_r),  w_r'  \alpha_r(\vec{w}) 
   \vee w_r'  \beta_r(\vec{w})
 \end{cases} 
 \]
 
 What is  the best way to  label it? 

It  was a  silly question,  sorry!  I only  need to  substitute \[  \]
with  begin/end{equation} and  then i  can  simply insert  a labal  with
Insert-Label.
-- 
Cheers,
Davide Cavallari
If a thing's worth having, it's worth cheating for.
-- W.C. Fields



Copy text and paste it in math mode

2002-03-18 Thread Reuben D Budiardja

Hi,
I can't seem to copy text (either from another application or from text in 
Lyx itself) and then paste it in Math mode. Is there any way to do that? or 
at least insert a text file that containts math expression, and have lyx 
display it in math mode?

The problem is, I do all my calculation and work in another application 
(maple), but I want to write my final paper in lyx. It would be really 
tedious if I have to write all those long messy equation by hand. I am using  
lyx-1.1.6fix4-1 in RedHat linux 7.2.

Sorry for the newbie question. Thanks in advance for any help.

Reuben D. Budiardja



Re: Problems including bitmap figures pdflatex

2002-03-18 Thread Dekel Tsur

On Mon, Mar 18, 2002 at 08:37:29AM +0100, Víctor Martínez Moll wrote:
 Thank you Wayan!
 
 I tried png files and everything is OK now. It works even for the table 
 issue!
 Reffering to the use of pdflatex, I prefer to use it because  I have 
 problems with some fonts (especially in matematical mode) with ps2pdf.

Read section 3.3.6 on Extended.lyx in order to learn how to have good fonts
when using ps2pdf.

Also, the problem you had with the bitmap image when you converted them to
PDF was due to your broken version of pdftex (probably 0.13d).
Of course, even without bugs, the correct way to is not to convert to PDF,
but to convert to png/jpeg.



Re: Bibliography

2002-03-18 Thread Dekel Tsur

On Mon, Mar 18, 2002 at 10:11:48AM -0400, Rodrigo Gesswein wrote:
 Hi!
 
 I'm  writing  a  document  with  book  class. In Bibliography
 environment  I need to customize the big skip space from top page
 and  the  word  Bibliography.  Also  I  need to change the word

In the preamble put the following lines(change the zero after \vspace*
if you want to change the space to something else):

\def\mymakeschapterhead#1{%
  \vspace*{0\p@}%
  {\parindent \z \raggedright
\normalfont
\interlinepenalty\@M
\Huge \bfseries X #1\par\nobreak
\vskip 40\p
  }}

\let\oldthebibliography=\thebibliography
\def\thebibliography{%
  \let\@makeschapterhead\mymakeschapterhead%
  \oldthebibliography}

 Bibliography  for  My custom bibliography words. How can I do
 this ??

In the preamble:
\AtBeginDocument{\renewcommand{\bibname}{My custom bibliography words}}



Re: Copy text and paste it in math mode

2002-03-18 Thread Dekel Tsur

On Mon, Mar 18, 2002 at 02:37:20PM -0500, Reuben D Budiardja wrote:
 Hi,
 I can't seem to copy text (either from another application or from text in 
 Lyx itself) and then paste it in Math mode. Is there any way to do that? or 
 at least insert a text file that containts math expression, and have lyx 
 display it in math mode?
 
 The problem is, I do all my calculation and work in another application 
 (maple), but I want to write my final paper in lyx. It would be really 
 tedious if I have to write all those long messy equation by hand. I am using  
 lyx-1.1.6fix4-1 in RedHat linux 7.2.

This can be done in lyx 1.2.0cvs, but not in 1.1.6.
In lyx 1.1.6 you need to copy the text into a temporary .tex file
(in maple you need to output the equations as latex)
say temp.tex, run reLyX -p -c article temp.tex, and then
do Insert-Insert-LyX document in LyX, and select temp.lyx in the file
browser.

In fact, in lyx 1.2.0cvs can communicate with maple.
For example, you can write 2x-x in lyx,
hit a key, and lyx automatically adds =x.



RE: Copy text and paste it in math mode

2002-03-18 Thread Bo Peng


 On Mon, Mar 18, 2002 at 02:37:20PM -0500, Reuben D Budiardja wrote:
  Hi,
  I can't seem to copy text (either from another application or
 from text in
  Lyx itself) and then paste it in Math mode. Is there any way to
 do that? or
  at least insert a text file that containts math expression, and
 have lyx
  display it in math mode?
 
  The problem is, I do all my calculation and work in another application
  (maple), but I want to write my final paper in lyx. It would be really
  tedious if I have to write all those long messy equation by
 hand. I am using
  lyx-1.1.6fix4-1 in RedHat linux 7.2.

 This can be done in lyx 1.2.0cvs, but not in 1.1.6.
 In lyx 1.1.6 you need to copy the text into a temporary .tex file
 (in maple you need to output the equations as latex)
 say temp.tex, run reLyX -p -c article temp.tex, and then
 do Insert-Insert-LyX document in LyX, and select temp.lyx in the file
 browser.

 In fact, in lyx 1.2.0cvs can communicate with maple.
 For example, you can write 2x-x in lyx,
 hit a key, and lyx automatically adds =x.


You can also let maple generate latex output and then paste it into lyx.
Then, mark the tex code as tex mode.

Bo




\input{} doesn't auto-update when latex is re-run

2002-03-18 Thread Nirmal Govind

Hi,

I've got a couple of \input{my_file} statements in my file. However, when I 
change the contents of my_file and then do an Update-DVI or an Update-PS 
in LyX, the changes I made to my_file aren't reflected. I have to then 
remove the \input statement and do an Update-DVI (basically re-run Latex), 
then have to insert the \input again and do an Update again and now the 
changes in my_file are made in the DVI and PS files. Anyone know what's 
going wrong?

Thanks,
nirmal




Dangerous BUG: Search/Replace

2002-03-18 Thread Laszlo E Szabo

Hello,

RedHat 7.2 (Default=Hungarian) + LyX 1.1.6fix4 

I reported a dangerous bug some days ago, but I made a mistake. The actual 
problem is even more dangerous: 
Enter a word into the search box AND PRESS SPACE (sorry, I wrote ENTER in 
my previous mail).  It starts to DELETE all instances of the word you 
entered. It is dangerous if you have a long part of the document which was 
not yet saved. Because you cannot step by step undo deleting say 5000 The-s 
in a book (it would take a few hours). The other possibility is to close the 
file without saving and opening it again without using the autosaved version, 
which means you lost the not yet saved part of the document. So, you are 
enforced to make a choice between loosing 5000 the-s or loosing the new 
part of the text you wrote. So, you cannot search, the apple, for example, 
because of the space.

Laszlo
-- 

Laszlo E. Szabo
Department of Theoretical Physics
Department of History and Philosophy of Science
Eotvos University, Budapest
H-1518 Budapest, Pf. 32, Hungary
Phone/Fax: (36-1)372-2924
Home: (36-1) 200-7318
Mobil/SMS: (36) 20-366-1172
http://hps.elte.hu/~leszabo



Re: converting xml to lyx

2002-03-18 Thread Paul Tremblay

On Sun, Mar 17, 2002 at 10:05:16PM +0100, Florian Kohl wrote:

 
 sorry if this has already been covered but I could not find
 anything on google about this,
 
 I have an xml document that I want to convert to lyx,
 what would be the easiest approach to do so?
 
 
 

Funny, but I am working on this same exact problem right now. I
have learned perl just for this purpose. I joined an xml-perl
mailing list.

Below is a copy of an email I sent to this mailing list and the
response. If you want, I'll update you with my progress. I think
it is definitely something people should look into--I mean,
converting XML to LaTeX.

Paul

**8

Paul Tremblay wrote:

Specifically, I have files in xml that I want to convert to
LaTeX.

[...]

I am assuming that XML::Parser is the module I
should use. However, I have seen that there are several modules
out there (for example, the DOM module). Should I also be looking
at what these modules do? 

Have you tried XSLT? It's primarly used for XML-XML transformations, 
but with an xsl:output method=text / at the top, it can do XML-LaTeX.

Advantage: XSLT is familiar to most people who deal with XML. There's 
just the stylesheet and a very few lines of Perl (with the XML::LibXSLT 
module or whichever you prefer). In fact, this might be heresy here, but 
it would be just as easy to run with even a non-Perl XSLT processor.

Disadvantage: It loads the entire document into memory before doing 
anything. I think incremental XSLT processors are possible, but I've 
never seen one. This is not a big deal for small documents, but may be 
for large ones.

If not that, then XML::SAX might be a good choice. Get a parser with 
XML::SAX::ParserFactory (or specify one explicitly), derive a package 
from XML::SAX::Base, override stuff appropriately. It's the same concept 
as XML::Parser, but better for reasons explained in XML::SAX::Intro. It 
is incremental, if that matters to you. (I've been playing around with 
this lately. Seems fairly easy.)


-- 


*Paul Tremblay *
*[EMAIL PROTECTED]*




Brace grouping in math mode.

2002-03-18 Thread Joao Luis Meloni Assirati


Hello,

I use the latest lyx 1.2.0cvs. When in math mode, typing { produces a pair
of raw grouping braces {} instead of a pure brace \{, as in text mode. I
posted this to lyx-devel and was informed that grouping {} are sometimes
needed in math mode. Can someone show me an example where grouping braces
are needed outside ERT?

Thank you,

Joao Luis.




Re: multline environement

2002-03-18 Thread Andre Poenitz

On Fri, Mar 15, 2002 at 07:51:35PM +0100, Davide Cavallari wrote:
> What should I do to use the multline environment? I get an error
> message complaining it is an undefined environment.

The only way to get it is to use 1.2.0cvs. 

There is no support for multline (and all the other AMS environments for
that matter) in the 1.1.6 series.

Andre'

-- 
André Pönitz .. [EMAIL PROTECTED]



Re: problem with latex commands

2002-03-18 Thread Andre Poenitz

On Sat, Mar 16, 2002 at 11:09:56AM +0100, Davide Cavallari wrote:
> The fact is that I want to use the command:
> 
> \begin{equation*}
> |x|= 
> \begin{cases} x & \text{if $x>0$,}
> -x &\text{if $x\le 0$.}
> \end{cases}
> \end{equation*}
> 
> What I have to do to make it work in lyx?

\text{} does not work even in 1.2, so the closest thing you might get is

\begin{equation*}
|x|= 
\begin{cases} x & \mathrm{if} x>0 \mathrm{,}
-x &\mathrm{if} x\le 0.}
\end{cases}
\end{equation*}

You can type this in the main LyX text, highlight it and press C-m to
convert it to math.

Andre'

-- 
André Pönitz .. [EMAIL PROTECTED]



Re: Re: multline environement

2002-03-18 Thread Guenter Milde

On Mon, 18 Mar 2002 09:38:35 +0100 wrote Andre Poenitz <[EMAIL PROTECTED]>:

> On Fri, Mar 15, 2002 at 07:51:35PM +0100, Davide Cavallari wrote:
> > What should I do to use the multline environment? I get an error
> > message complaining it is an undefined environment.
> 
> The only way to get it is to use 1.2.0cvs. 
> 
> There is no support for multline (and all the other AMS environments for
> that matter) in the 1.1.6 series.

Besides ERT, of course.

GM

--
[EMAIL PROTECTED]




HTML export: ALT tag for images uses TeX code

2002-03-18 Thread laurent . duperval

Hi,

I noticed that when exporting my LyX files to HTML, the ALT tag of my
figures consists of the TeX code needed to load the image in the document.
How can I make LyX use the caption of my figure instead?

Thanks,

L

P.S. I vote for the newsgroup with a gateway to the mailing list. One list I
subscribe to (I think it was postgres) was a closed list (unlike LyX) and
had a news gateway. The way it worked was that you could only post to the NG
if you were subscribed. In your mailing list options, you could say that you
only wanted to use NNTP, then you didn't get any email in your box.

-- 
Laurent Duperval 

If 7-11 is open 24 hours a day, 365 days a year, why are there locks on
the doors?





RE: LyX and Prosper

2002-03-18 Thread Bo Peng

> Okay,
>
> Do this:
>
> Set the LaTeX stuff up in a private directory (/some/directory).
>
> Then:
>
> export TEXINPUTS=".:/some/directory:`kspepath tex`"
>
> This should add . and /some/directory to the standard list of directories
> that LaTeX searches.
>

I was using $TEXINPUTS and latex could compile cluster.tex smoothly. Still,
lyx could not find prosper.cls. That is why I thought that lyx only searchs
standard latex path.

Bo




Fixed! [was Re: Changes to my .bib file are ignored]

2002-03-18 Thread Todd Greer

I moved to 1.6.6fix4 (I was at 1.6.6fix3b), and it works now, though only if I
run LyX as lyxwin32.exe.  If I run it as lyx.exe, it doesn't work, which is OK,
since the Win32 port webpage does say to use lyxwin32.exe.  (With fix3b,
I'd had some sort of problem with lyxwin32.exe, so I was using lyx.exe.)

Thanks for the responses, and I apologize for mailing the list before checking
the latest stable build.  Mea culpa.

-- 
Todd Greer  <[EMAIL PROTECTED]>







Re: labeling equation in tex style

2002-03-18 Thread Davide Cavallari

On Sun, Mar 17, 2002 at 11:52:26AM +0100, Davide Cavallari wrote:
> \[
> \pi (w_r|\vec{w}) =
> \begin{cases}\frac{1}{\eta} f \left(
> \frac{w_r'-(1-\eta)w_r}{\eta}\right) + C_r(\vec{w})\delta(w_r'-w_r), &
>   \alpha_r(\vec{w}) \le w_r' \le \beta_r(\vec{w}) \\
> C_r(\vec{w})\delta(w_r'-w_r), & w_r' < \alpha_r(\vec{w}) 
>   \vee w_r' > \beta_r(\vec{w})
> \end{cases} 
> \]
> 
> What is  the best way to  label it? 

It  was a  silly question,  sorry!  I only  need to  substitute "\["  "\]"
with  "begin/end{equation}" and  then i  can  simply insert  a labal  with
Insert->Label.
-- 
Cheers,
Davide Cavallari
If a thing's worth having, it's worth cheating for.
-- W.C. Fields



Copy text and paste it in math mode

2002-03-18 Thread Reuben D Budiardja

Hi,
I can't seem to copy text (either from another application or from text in 
Lyx itself) and then paste it in Math mode. Is there any way to do that? or 
at least insert a text file that containts math expression, and have lyx 
display it in math mode?

The problem is, I do all my calculation and work in another application 
(maple), but I want to write my final paper in lyx. It would be really 
tedious if I have to write all those long messy equation by hand. I am using  
lyx-1.1.6fix4-1 in RedHat linux 7.2.

Sorry for the newbie question. Thanks in advance for any help.

Reuben D. Budiardja



Re: Problems including bitmap figures & pdflatex

2002-03-18 Thread Dekel Tsur

On Mon, Mar 18, 2002 at 08:37:29AM +0100, Víctor Martínez Moll wrote:
> Thank you Wayan!
> 
> I tried png files and everything is OK now. It works even for the table 
> issue!
> Reffering to the use of pdflatex, I prefer to use it because  I have 
> problems with some fonts (especially in matematical mode) with ps2pdf.

Read section 3.3.6 on Extended.lyx in order to learn how to have "good fonts"
when using ps2pdf.

Also, the problem you had with the bitmap image when you converted them to
PDF was due to your broken version of pdftex (probably 0.13d).
Of course, even without bugs, the correct way to is not to convert to PDF,
but to convert to png/jpeg.



Re: Bibliography

2002-03-18 Thread Dekel Tsur

On Mon, Mar 18, 2002 at 10:11:48AM -0400, Rodrigo Gesswein wrote:
> Hi!
> 
> I'm  writing  a  document  with  book  class. In Bibliography
> environment  I need to customize the big skip space from top page
> and  the  word  "Bibliography".  Also  I  need to change the word

In the preamble put the following lines(change the zero after \vspace*
if you want to change the space to something else):

\def\mymakeschapterhead#1{%
  \vspace*{0\p@}%
  {\parindent \z@ \raggedright
\normalfont
\interlinepenalty\@M
\Huge \bfseries X #1\par\nobreak
\vskip 40\p@
  }}

\let\oldthebibliography=\thebibliography
\def\thebibliography{%
  \let\@makeschapterhead\mymakeschapterhead%
  \oldthebibliography}

> "Bibliography"  for  "My custom bibliography words". How can I do
> this ??

In the preamble:
\AtBeginDocument{\renewcommand{\bibname}{My custom bibliography words}}



Re: Copy text and paste it in math mode

2002-03-18 Thread Dekel Tsur

On Mon, Mar 18, 2002 at 02:37:20PM -0500, Reuben D Budiardja wrote:
> Hi,
> I can't seem to copy text (either from another application or from text in 
> Lyx itself) and then paste it in Math mode. Is there any way to do that? or 
> at least insert a text file that containts math expression, and have lyx 
> display it in math mode?
> 
> The problem is, I do all my calculation and work in another application 
> (maple), but I want to write my final paper in lyx. It would be really 
> tedious if I have to write all those long messy equation by hand. I am using  
> lyx-1.1.6fix4-1 in RedHat linux 7.2.

This can be done in lyx 1.2.0cvs, but not in 1.1.6.
In lyx 1.1.6 you need to copy the text into a temporary .tex file
(in maple you need to output the equations as latex)
say temp.tex, run reLyX -p -c article temp.tex, and then
do Insert->Insert->LyX document in LyX, and select temp.lyx in the file
browser.

In fact, in lyx 1.2.0cvs can communicate with maple.
For example, you can write 2x-x in lyx,
hit a key, and lyx automatically adds =x.



RE: Copy text and paste it in math mode

2002-03-18 Thread Bo Peng


> On Mon, Mar 18, 2002 at 02:37:20PM -0500, Reuben D Budiardja wrote:
> > Hi,
> > I can't seem to copy text (either from another application or
> from text in
> > Lyx itself) and then paste it in Math mode. Is there any way to
> do that? or
> > at least insert a text file that containts math expression, and
> have lyx
> > display it in math mode?
> >
> > The problem is, I do all my calculation and work in another application
> > (maple), but I want to write my final paper in lyx. It would be really
> > tedious if I have to write all those long messy equation by
> hand. I am using
> > lyx-1.1.6fix4-1 in RedHat linux 7.2.
>
> This can be done in lyx 1.2.0cvs, but not in 1.1.6.
> In lyx 1.1.6 you need to copy the text into a temporary .tex file
> (in maple you need to output the equations as latex)
> say temp.tex, run reLyX -p -c article temp.tex, and then
> do Insert->Insert->LyX document in LyX, and select temp.lyx in the file
> browser.
>
> In fact, in lyx 1.2.0cvs can communicate with maple.
> For example, you can write 2x-x in lyx,
> hit a key, and lyx automatically adds =x.


You can also let maple generate latex output and then paste it into lyx.
Then, mark the tex code as tex mode.

Bo




\input{} doesn't auto-update when latex is re-run

2002-03-18 Thread Nirmal Govind

Hi,

I've got a couple of \input{my_file} statements in my file. However, when I 
change the contents of my_file and then do an Update->DVI or an Update->PS 
in LyX, the changes I made to my_file aren't reflected. I have to then 
remove the \input statement and do an Update-DVI (basically re-run Latex), 
then have to insert the \input again and do an Update again and now the 
changes in my_file are made in the DVI and PS files. Anyone know what's 
going wrong?

Thanks,
nirmal




Dangerous BUG: Search/Replace

2002-03-18 Thread Laszlo E Szabo

Hello,

RedHat 7.2 (Default=Hungarian) + LyX 1.1.6fix4 

I reported a dangerous bug some days ago, but I made a mistake. The actual 
problem is even more dangerous: 
Enter a word into the search box AND PRESS  (sorry, I wrote  in 
my previous mail).  It starts to DELETE all instances of the word you 
entered. It is dangerous if you have a long part of the document which was 
not yet saved. Because you cannot step by step undo deleting say 5000 "The"-s 
in a book (it would take a few hours). The other possibility is to close the 
file without saving and opening it again without using the autosaved version, 
which means you lost the not yet saved part of the document. So, you are 
enforced to make a choice between loosing 5000 "the"-s or loosing the new 
part of the text you wrote. So, you cannot search, "the apple", for example, 
because of the space.

Laszlo
-- 

Laszlo E. Szabo
Department of Theoretical Physics
Department of History and Philosophy of Science
Eotvos University, Budapest
H-1518 Budapest, Pf. 32, Hungary
Phone/Fax: (36-1)372-2924
Home: (36-1) 200-7318
Mobil/SMS: (36) 20-366-1172
http://hps.elte.hu/~leszabo



Re: converting xml to lyx

2002-03-18 Thread Paul Tremblay

On Sun, Mar 17, 2002 at 10:05:16PM +0100, Florian Kohl wrote:

> 
> sorry if this has already been covered but I could not find
> anything on google about this,
> 
> I have an xml document that I want to convert to lyx,
> what would be the easiest approach to do so?
> 
> 
> 

Funny, but I am working on this same exact problem right now. I
have learned perl just for this purpose. I joined an xml-perl
mailing list.

Below is a copy of an email I sent to this mailing list and the
response. If you want, I'll update you with my progress. I think
it is definitely something people should look into--I mean,
converting XML to LaTeX.

Paul

**8

Paul Tremblay wrote:

>Specifically, I have files in xml that I want to convert to
>LaTeX.
>
[...]

>I am assuming that XML::Parser is the module I
>should use. However, I have seen that there are several modules
>out there (for example, the DOM module). Should I also be looking
>at what these modules do? 
>
Have you tried XSLT? It's primarly used for XML->XML transformations, 
but with an  at the top, it can do XML->LaTeX.

Advantage: XSLT is familiar to most people who deal with XML. There's 
just the stylesheet and a very few lines of Perl (with the XML::LibXSLT 
module or whichever you prefer). In fact, this might be heresy here, but 
it would be just as easy to run with even a non-Perl XSLT processor.

Disadvantage: It loads the entire document into memory before doing 
anything. I think incremental XSLT processors are possible, but I've 
never seen one. This is not a big deal for small documents, but may be 
for large ones.

If not that, then XML::SAX might be a good choice. Get a parser with 
XML::SAX::ParserFactory (or specify one explicitly), derive a package 
from XML::SAX::Base, override stuff appropriately. It's the same concept 
as XML::Parser, but better for reasons explained in XML::SAX::Intro. It 
is incremental, if that matters to you. (I've been playing around with 
this lately. Seems fairly easy.)


-- 


*Paul Tremblay *
*[EMAIL PROTECTED]*




Brace grouping in math mode.

2002-03-18 Thread Joao Luis Meloni Assirati


Hello,

I use the latest lyx 1.2.0cvs. When in math mode, typing { produces a pair
of raw grouping braces {} instead of a pure brace \{, as in text mode. I
posted this to lyx-devel and was informed that grouping {} are sometimes
needed in math mode. Can someone show me an example where grouping braces
are needed outside ERT?

Thank you,

Joao Luis.