LyX 2.0 beta4 LyXHTML LaTeX output

2011-03-06 Thread Gerard Ateshian

Hi ,

The new LyXHTML output is really great.  The ability to output in  
LaTeX format makes it a lot easier to use jsMath for rendering  
equations online.


I use LyX on a Mac running OS X 10.5.8.

I've noticed an odd behavior:  When a LyX file is first created and  
exported as LyXHTML, inlined equations are exported as HTML tables  
with hardcoded equation numbers.  However, if the LyX file is closed  
and reopened, then exported to LyXHTML again, inlined equations are no  
longer exported as tables, and neither are they numbered.  In other  
words, the problem fixes itself after reloading the file, though it  
recurs as soon as new inline equations are added to the text.


As a little tidbit of information for potential jsMath users:  I found  
that jsMath will not render LaTeX equations if the file extension  
is .xhtml; renaming the file extension to .html solves that problem.


Gerard



LyX 2.0 beta4 LyXHTML LaTeX output

2011-03-06 Thread Gerard Ateshian

Hi ,

The new LyXHTML output is really great.  The ability to output in  
LaTeX format makes it a lot easier to use jsMath for rendering  
equations online.


I use LyX on a Mac running OS X 10.5.8.

I've noticed an odd behavior:  When a LyX file is first created and  
exported as LyXHTML, inlined equations are exported as HTML tables  
with hardcoded equation numbers.  However, if the LyX file is closed  
and reopened, then exported to LyXHTML again, inlined equations are no  
longer exported as tables, and neither are they numbered.  In other  
words, the problem fixes itself after reloading the file, though it  
recurs as soon as new inline equations are added to the text.


As a little tidbit of information for potential jsMath users:  I found  
that jsMath will not render LaTeX equations if the file extension  
is .xhtml; renaming the file extension to .html solves that problem.


Gerard



LyX 2.0 beta4 LyXHTML LaTeX output

2011-03-06 Thread Gerard Ateshian

Hi ,

The new LyXHTML output is really great.  The ability to output in  
LaTeX format makes it a lot easier to use jsMath for rendering  
equations online.


I use LyX on a Mac running OS X 10.5.8.

I've noticed an odd behavior:  When a LyX file is first created and  
exported as LyXHTML, inlined equations are exported as HTML tables  
with hardcoded equation numbers.  However, if the LyX file is closed  
and reopened, then exported to LyXHTML again, inlined equations are no  
longer exported as tables, and neither are they numbered.  In other  
words, the problem fixes itself after reloading the file, though it  
recurs as soon as new inline equations are added to the text.


As a little tidbit of information for potential jsMath users:  I found  
that jsMath will not render LaTeX equations if the file extension  
is .xhtml; renaming the file extension to .html solves that problem.


Gerard



Copying from LyX and pasting to Word with $...$ and \[...\] delimiters

2010-01-06 Thread Gerard Ateshian

Hi,

Recently I discovered that PubMed Central (http://www.ncbi.nlm.nih.gov/pmc/ 
) does not accept TeX/LaTeX submissions, so I have to convert some of  
my LyX documents to Microsoft Word (a common headache).  My  
manuscripts have lots of equations, so I need to use MathType to  
convert the equations.  MathType has recently added a feature to  
convert LaTeX equations directly from within a Word document, as long  
as the equation is delimited by $...$ or \[...\], so the conversion  
would be relatively easy to do.


Unfortunately, though copying from LyX and pasting into Word produces  
LaTeX formulas, these do not have $...$ or \[...\] delimiters, which  
means that they would have to be added by hand, one-by-one, making the  
process tedious.  (It is also possible to export the LyX document into  
LaTeX and import it into Word, but the LaTeX file breaks each screen  
line of text with a paragraph mark, which then has to be deleted  
within Word.  Furthermore, the LaTeX file preserves all of the  
remaining commands for sections, subsections, etc., whereas copying  
and pasting from LyX into Word gives a very clean and nearly ready  
format.)


I seem to recall that the inline and display equation delimiters were  
included in copy/paste in an earlier version of LyX, but the latest  
version does not seem to have them.  Is there a way to turn this  
feature on?  (If not, could this optional feature be added easily in  
the next release?)


Thanks,

Gerard Ateshian



Copying from LyX and pasting to Word with $...$ and \[...\] delimiters

2010-01-06 Thread Gerard Ateshian

Hi,

Recently I discovered that PubMed Central (http://www.ncbi.nlm.nih.gov/pmc/ 
) does not accept TeX/LaTeX submissions, so I have to convert some of  
my LyX documents to Microsoft Word (a common headache).  My  
manuscripts have lots of equations, so I need to use MathType to  
convert the equations.  MathType has recently added a feature to  
convert LaTeX equations directly from within a Word document, as long  
as the equation is delimited by $...$ or \[...\], so the conversion  
would be relatively easy to do.


Unfortunately, though copying from LyX and pasting into Word produces  
LaTeX formulas, these do not have $...$ or \[...\] delimiters, which  
means that they would have to be added by hand, one-by-one, making the  
process tedious.  (It is also possible to export the LyX document into  
LaTeX and import it into Word, but the LaTeX file breaks each screen  
line of text with a paragraph mark, which then has to be deleted  
within Word.  Furthermore, the LaTeX file preserves all of the  
remaining commands for sections, subsections, etc., whereas copying  
and pasting from LyX into Word gives a very clean and nearly ready  
format.)


I seem to recall that the inline and display equation delimiters were  
included in copy/paste in an earlier version of LyX, but the latest  
version does not seem to have them.  Is there a way to turn this  
feature on?  (If not, could this optional feature be added easily in  
the next release?)


Thanks,

Gerard Ateshian



Copying from LyX and pasting to Word with $...$ and \[...\] delimiters

2010-01-06 Thread Gerard Ateshian

Hi,

Recently I discovered that PubMed Central (http://www.ncbi.nlm.nih.gov/pmc/ 
) does not accept TeX/LaTeX submissions, so I have to convert some of  
my LyX documents to Microsoft Word (a common headache).  My  
manuscripts have lots of equations, so I need to use MathType to  
convert the equations.  MathType has recently added a feature to  
convert LaTeX equations directly from within a Word document, as long  
as the equation is delimited by $...$ or \[...\], so the conversion  
would be relatively easy to do.


Unfortunately, though copying from LyX and pasting into Word produces  
LaTeX formulas, these do not have $...$ or \[...\] delimiters, which  
means that they would have to be added by hand, one-by-one, making the  
process tedious.  (It is also possible to export the LyX document into  
LaTeX and import it into Word, but the LaTeX file breaks each screen  
line of text with a paragraph mark, which then has to be deleted  
within Word.  Furthermore, the LaTeX file preserves all of the  
remaining commands for sections, subsections, etc., whereas copying  
and pasting from LyX into Word gives a very clean and nearly ready  
format.)


I seem to recall that the inline and display equation delimiters were  
included in copy/paste in an earlier version of LyX, but the latest  
version does not seem to have them.  Is there a way to turn this  
feature on?  (If not, could this optional feature be added easily in  
the next release?)


Thanks,

Gerard Ateshian



Re: Using movie15 with LyX to insert movies in PDF output

2008-01-17 Thread Gerard Ateshian

Hi Bruno,

It turns out it is possible to use LyX with movie15 (see earlier  
responses by Lorenzo and JMarc), with the caveat that the full path to  
the movie file must be provided.  One must also use a PDF viewer that  
can display movies (such as Acrobat Reader 8) as the default viewer in  
LyX.


Gerard


On Jan 17, 2008, at 4:03 AM, Bruno C. wrote:


Hello,
Sorry i deleted the first mail so maybe I will not give a proper  
reply.
My opinion is that you cannot generate a pdf file from a latex file  
containing movie15 commands using lyx.
You can use lyx to export the latex code and then you will have to  
use the technique specified in the movie15 documentation.


At least that's the way I did it! Gerard Ateshian ha scritto:

pdfTeX error (ext5): cannot open file for embedding.


I think that when you ask LyX to generate the pdf a latex file is
generated somewhere in /tmp/lyx_*, and it is passed through pdflatex
directly there.

As LyX doesn't know that you are including the movie it cannot make a
copy (or a link) from the file to the temporary location.

You can try to copy the movie file by hand in the temporary  
location, or

some similar workaround.

--
Lorenzo `paulatz' Paulatto
Trieste

``Grandissima mi par l'inezia di coloro che vorrebbero che Iddio  
avesse
fatto l'universo più proporzionato alla piccola capacità del lor  
discorso.''

--Galileo Galilei (Opere VII)


--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Raggruppa i tuoi finanziamenti in uno: pagherai un’unica rata fino  
al 50% più bassa della tua attuale! Clicca qui e chiedi maggiori  
informazioni a Prometeo!

*
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7433d=16-1







Re: Using movie15 with LyX to insert movies in PDF output

2008-01-17 Thread Gerard Ateshian

Hi Bruno,

It turns out it is possible to use LyX with movie15 (see earlier  
responses by Lorenzo and JMarc), with the caveat that the full path to  
the movie file must be provided.  One must also use a PDF viewer that  
can display movies (such as Acrobat Reader 8) as the default viewer in  
LyX.


Gerard


On Jan 17, 2008, at 4:03 AM, Bruno C. wrote:


Hello,
Sorry i deleted the first mail so maybe I will not give a proper  
reply.
My opinion is that you cannot generate a pdf file from a latex file  
containing movie15 commands using lyx.
You can use lyx to export the latex code and then you will have to  
use the technique specified in the movie15 documentation.


At least that's the way I did it! Gerard Ateshian ha scritto:

pdfTeX error (ext5): cannot open file for embedding.


I think that when you ask LyX to generate the pdf a latex file is
generated somewhere in /tmp/lyx_*, and it is passed through pdflatex
directly there.

As LyX doesn't know that you are including the movie it cannot make a
copy (or a link) from the file to the temporary location.

You can try to copy the movie file by hand in the temporary  
location, or

some similar workaround.

--
Lorenzo `paulatz' Paulatto
Trieste

``Grandissima mi par l'inezia di coloro che vorrebbero che Iddio  
avesse
fatto l'universo più proporzionato alla piccola capacità del lor  
discorso.''

--Galileo Galilei (Opere VII)


--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Raggruppa i tuoi finanziamenti in uno: pagherai un’unica rata fino  
al 50% più bassa della tua attuale! Clicca qui e chiedi maggiori  
informazioni a Prometeo!

*
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7433d=16-1







Re: Using movie15 with LyX to insert movies in PDF output

2008-01-17 Thread Gerard Ateshian

Hi Bruno,

It turns out it is possible to use LyX with movie15 (see earlier  
responses by Lorenzo and JMarc), with the caveat that the full path to  
the movie file must be provided.  One must also use a PDF viewer that  
can display movies (such as Acrobat Reader 8) as the default viewer in  
LyX.


Gerard


On Jan 17, 2008, at 4:03 AM, Bruno C. wrote:


Hello,
Sorry i deleted the first mail so maybe I will not give a proper  
reply.
My opinion is that you cannot generate a pdf file from a latex file  
containing movie15 commands using lyx.
You can use lyx to export the latex code and then you will have to  
use the technique specified in the movie15 documentation.


At least that's the way I did it!> Gerard Ateshian ha scritto:

pdfTeX error (ext5): cannot open file for embedding.


I think that when you ask LyX to generate the pdf a latex file is
generated somewhere in /tmp/lyx_*, and it is passed through pdflatex
directly there.

As LyX doesn't know that you are including the movie it cannot make a
copy (or a link) from the file to the temporary location.

You can try to copy the movie file by hand in the temporary  
location, or

some similar workaround.

--
Lorenzo `paulatz' Paulatto
Trieste

``Grandissima mi par l'inezia di coloro che vorrebbero che Iddio  
avesse
fatto l'universo più proporzionato alla piccola capacità del lor  
discorso.''

--Galileo Galilei (Opere VII)


--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Raggruppa i tuoi finanziamenti in uno: pagherai un’unica rata fino  
al 50% più bassa della tua attuale! Clicca qui e chiedi maggiori  
informazioni a Prometeo!

*
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7433=16-1







Using movie15 with LyX to insert movies in PDF output

2008-01-16 Thread Gerard Ateshian

Hi all,

Does anyone have experience using the movie15 package with LyX?  I  
would like to insert a movie in a document, and have it appear as an  
animation in the PDF output.  I followed the instructions at http://www.uoregon.edu/~noeckel/PDFmovie.html 
 and I am able to get it to work from a terminal command (pdflatex  
movie.tex), so that means I have all the necessary packages  
installed.  However, importing the sample movie.tex file into LyX  
produces a bunch of errors when issuing View-PDF (pdflatex).   
Alternatively, copying the necessary \usepackage commands in the  
preamble and the basic commands into an ERT box,


\begin{figure}[ht]
\includemovie[poster,
text=(Loading Circle-m-increase3.mp4)]{6cm}{6cm}{Circle-m-increase3.mp4}
\end{figure}

produces the single error

pdfTeX error (ext5): cannot open file for embedding.

Has anyone gotten movie15 to work with LyX?

Thanks,

Gerard

P.S. I am using LyX 1.5.3 on a MacBook Pro running OS X 10.5.1.  My  
TeX installation is texlive 2007.




Re: Using movie15 with LyX to insert movies in PDF output

2008-01-16 Thread Gerard Ateshian

Lorenzo,

Thanks for the suggestion.  I tried it and now LyX is able to produce  
a PDF output file, but the output does not include the movie.


Gerard


On Jan 16, 2008, at 10:06 AM, Lorenzo Paulatto wrote:


Gerard Ateshian ha scritto:

pdfTeX error (ext5): cannot open file for embedding.


I think that when you ask LyX to generate the pdf a latex file is
generated somewhere in /tmp/lyx_*, and it is passed through pdflatex
directly there.

As LyX doesn't know that you are including the movie it cannot make a
copy (or a link) from the file to the temporary location.

You can try to copy the movie file by hand in the temporary  
location, or

some similar workaround.

--
Lorenzo `paulatz' Paulatto
Trieste

``Grandissima mi par l'inezia di coloro che vorrebbero che Iddio  
avesse
fatto l'universo più proporzionato alla piccola capacità del lor  
discorso.''

--Galileo Galilei (Opere VII)


--
Email.it, the professional e-mail, gratis per te: http:// 
www.email.it/f


Sponsor:
Raggruppa i tuoi finanziamenti in uno: pagherai un’unica rata fino  
al 50% più bassa della tua attuale! Clicca qui e chiedi maggiori  
informazioni a Prometeo!

*
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7433d=16-1




Re: Using movie15 with LyX to insert movies in PDF output

2008-01-16 Thread Gerard Ateshian

JMarc,

Yes, it seems it is the same bug.  If I put the full path to the movie  
file (and change my default viewer to Acrobat Reader 8), everything  
works fine.


Thanks,

Gerard



On Jan 16, 2008, at 11:08 AM, Jean-Marc Lasgouttes wrote:


Lorenzo Paulatto [EMAIL PROTECTED] writes:


Gerard Ateshian ha scritto:

pdfTeX error (ext5): cannot open file for embedding.


I think that when you ask LyX to generate the pdf a latex file is
generated somewhere in /tmp/lyx_*, and it is passed through pdflatex
directly there.

As LyX doesn't know that you are including the movie it cannot make a
copy (or a link) from the file to the temporary location.


Is it the same bug as this?
http://bugzilla.lyx.org/show_bug.cgi?id=1751

JMarc




Using movie15 with LyX to insert movies in PDF output

2008-01-16 Thread Gerard Ateshian

Hi all,

Does anyone have experience using the movie15 package with LyX?  I  
would like to insert a movie in a document, and have it appear as an  
animation in the PDF output.  I followed the instructions at http://www.uoregon.edu/~noeckel/PDFmovie.html 
 and I am able to get it to work from a terminal command (pdflatex  
movie.tex), so that means I have all the necessary packages  
installed.  However, importing the sample movie.tex file into LyX  
produces a bunch of errors when issuing View-PDF (pdflatex).   
Alternatively, copying the necessary \usepackage commands in the  
preamble and the basic commands into an ERT box,


\begin{figure}[ht]
\includemovie[poster,
text=(Loading Circle-m-increase3.mp4)]{6cm}{6cm}{Circle-m-increase3.mp4}
\end{figure}

produces the single error

pdfTeX error (ext5): cannot open file for embedding.

Has anyone gotten movie15 to work with LyX?

Thanks,

Gerard

P.S. I am using LyX 1.5.3 on a MacBook Pro running OS X 10.5.1.  My  
TeX installation is texlive 2007.




Re: Using movie15 with LyX to insert movies in PDF output

2008-01-16 Thread Gerard Ateshian

Lorenzo,

Thanks for the suggestion.  I tried it and now LyX is able to produce  
a PDF output file, but the output does not include the movie.


Gerard


On Jan 16, 2008, at 10:06 AM, Lorenzo Paulatto wrote:


Gerard Ateshian ha scritto:

pdfTeX error (ext5): cannot open file for embedding.


I think that when you ask LyX to generate the pdf a latex file is
generated somewhere in /tmp/lyx_*, and it is passed through pdflatex
directly there.

As LyX doesn't know that you are including the movie it cannot make a
copy (or a link) from the file to the temporary location.

You can try to copy the movie file by hand in the temporary  
location, or

some similar workaround.

--
Lorenzo `paulatz' Paulatto
Trieste

``Grandissima mi par l'inezia di coloro che vorrebbero che Iddio  
avesse
fatto l'universo più proporzionato alla piccola capacità del lor  
discorso.''

--Galileo Galilei (Opere VII)


--
Email.it, the professional e-mail, gratis per te: http:// 
www.email.it/f


Sponsor:
Raggruppa i tuoi finanziamenti in uno: pagherai un’unica rata fino  
al 50% più bassa della tua attuale! Clicca qui e chiedi maggiori  
informazioni a Prometeo!

*
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7433d=16-1




Re: Using movie15 with LyX to insert movies in PDF output

2008-01-16 Thread Gerard Ateshian

JMarc,

Yes, it seems it is the same bug.  If I put the full path to the movie  
file (and change my default viewer to Acrobat Reader 8), everything  
works fine.


Thanks,

Gerard



On Jan 16, 2008, at 11:08 AM, Jean-Marc Lasgouttes wrote:


Lorenzo Paulatto [EMAIL PROTECTED] writes:


Gerard Ateshian ha scritto:

pdfTeX error (ext5): cannot open file for embedding.


I think that when you ask LyX to generate the pdf a latex file is
generated somewhere in /tmp/lyx_*, and it is passed through pdflatex
directly there.

As LyX doesn't know that you are including the movie it cannot make a
copy (or a link) from the file to the temporary location.


Is it the same bug as this?
http://bugzilla.lyx.org/show_bug.cgi?id=1751

JMarc




Using movie15 with LyX to insert movies in PDF output

2008-01-16 Thread Gerard Ateshian

Hi all,

Does anyone have experience using the movie15 package with LyX?  I  
would like to insert a movie in a document, and have it appear as an  
animation in the PDF output.  I followed the instructions at http://www.uoregon.edu/~noeckel/PDFmovie.html 
 and I am able to get it to work from a terminal command (pdflatex  
movie.tex), so that means I have all the necessary packages  
installed.  However, importing the sample movie.tex file into LyX  
produces a bunch of errors when issuing View->PDF (pdflatex).   
Alternatively, copying the necessary \usepackage commands in the  
preamble and the basic commands into an ERT box,


\begin{figure}[ht]
\includemovie[poster,
text=(Loading Circle-m-increase3.mp4)]{6cm}{6cm}{Circle-m-increase3.mp4}
\end{figure}

produces the single error

pdfTeX error (ext5): cannot open file for embedding.

Has anyone gotten movie15 to work with LyX?

Thanks,

Gerard

P.S. I am using LyX 1.5.3 on a MacBook Pro running OS X 10.5.1.  My  
TeX installation is texlive 2007.




Re: Using movie15 with LyX to insert movies in PDF output

2008-01-16 Thread Gerard Ateshian

Lorenzo,

Thanks for the suggestion.  I tried it and now LyX is able to produce  
a PDF output file, but the output does not include the movie.


Gerard


On Jan 16, 2008, at 10:06 AM, Lorenzo Paulatto wrote:


Gerard Ateshian ha scritto:

pdfTeX error (ext5): cannot open file for embedding.


I think that when you ask LyX to generate the pdf a latex file is
generated somewhere in /tmp/lyx_*, and it is passed through pdflatex
directly there.

As LyX doesn't know that you are including the movie it cannot make a
copy (or a link) from the file to the temporary location.

You can try to copy the movie file by hand in the temporary  
location, or

some similar workaround.

--
Lorenzo `paulatz' Paulatto
Trieste

``Grandissima mi par l'inezia di coloro che vorrebbero che Iddio  
avesse
fatto l'universo più proporzionato alla piccola capacità del lor  
discorso.''

--Galileo Galilei (Opere VII)


--
Email.it, the professional e-mail, gratis per te: http:// 
www.email.it/f


Sponsor:
Raggruppa i tuoi finanziamenti in uno: pagherai un’unica rata fino  
al 50% più bassa della tua attuale! Clicca qui e chiedi maggiori  
informazioni a Prometeo!

*
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7433=16-1




Re: Using movie15 with LyX to insert movies in PDF output

2008-01-16 Thread Gerard Ateshian

JMarc,

Yes, it seems it is the same bug.  If I put the full path to the movie  
file (and change my default viewer to Acrobat Reader 8), everything  
works fine.


Thanks,

Gerard



On Jan 16, 2008, at 11:08 AM, Jean-Marc Lasgouttes wrote:


Lorenzo Paulatto <[EMAIL PROTECTED]> writes:


Gerard Ateshian ha scritto:

pdfTeX error (ext5): cannot open file for embedding.


I think that when you ask LyX to generate the pdf a latex file is
generated somewhere in /tmp/lyx_*, and it is passed through pdflatex
directly there.

As LyX doesn't know that you are including the movie it cannot make a
copy (or a link) from the file to the temporary location.


Is it the same bug as this?
http://bugzilla.lyx.org/show_bug.cgi?id=1751

JMarc




Re: LyX/Mac 1.5.3 released (for Intel, PPC, Universal)

2007-12-19 Thread Gerard Ateshian
LyX 1.5.3 on the Mac is working great. Thanks for these excellent  
improvements, 1.5.x is truly impressive.


Gerard


On Dec 19, 2007, at 10:15 AM, Bennett Helm wrote:

Binaries for LyX/Mac 1.5.3 have now been posted in all three  
flavors: Intel, PPC, and Universal. All users of 1.5 are encouraged  
to upgrade to this new version. They can be found here:


ftp://ftp.lyx.org/pub/lyx/bin/1.5.3/LyX-1.5.3-1-Mac-Universal.dmg
ftp://ftp.lyx.org/pub/lyx/bin/1.5.3/LyX-1.5.3-1-Mac-Intel.dmg
ftp://ftp.lyx.org/pub/lyx/bin/1.5.3/LyX-1.5.3-1-Mac-PPC.dmg

(Early reports of installation problems on Intel Macs have hopefully  
been fixed, and a new binary has been posted. For users of Intel  
Macs who previously updated and had problems, there is no need to  
download the new version.)


Bennett




Re: LyX/Mac 1.5.3 released (for Intel, PPC, Universal)

2007-12-19 Thread Gerard Ateshian
LyX 1.5.3 on the Mac is working great. Thanks for these excellent  
improvements, 1.5.x is truly impressive.


Gerard


On Dec 19, 2007, at 10:15 AM, Bennett Helm wrote:

Binaries for LyX/Mac 1.5.3 have now been posted in all three  
flavors: Intel, PPC, and Universal. All users of 1.5 are encouraged  
to upgrade to this new version. They can be found here:


ftp://ftp.lyx.org/pub/lyx/bin/1.5.3/LyX-1.5.3-1-Mac-Universal.dmg
ftp://ftp.lyx.org/pub/lyx/bin/1.5.3/LyX-1.5.3-1-Mac-Intel.dmg
ftp://ftp.lyx.org/pub/lyx/bin/1.5.3/LyX-1.5.3-1-Mac-PPC.dmg

(Early reports of installation problems on Intel Macs have hopefully  
been fixed, and a new binary has been posted. For users of Intel  
Macs who previously updated and had problems, there is no need to  
download the new version.)


Bennett




Re: LyX/Mac 1.5.3 released (for Intel, PPC, Universal)

2007-12-19 Thread Gerard Ateshian
LyX 1.5.3 on the Mac is working great. Thanks for these excellent  
improvements, 1.5.x is truly impressive.


Gerard


On Dec 19, 2007, at 10:15 AM, Bennett Helm wrote:

Binaries for LyX/Mac 1.5.3 have now been posted in all three  
flavors: Intel, PPC, and Universal. All users of 1.5 are encouraged  
to upgrade to this new version. They can be found here:






(Early reports of installation problems on Intel Macs have hopefully  
been fixed, and a new binary has been posted. For users of Intel  
Macs who previously updated and had problems, there is no need to  
download the new version.)


Bennett




Re: split long equations and line spacing questions

2007-11-29 Thread Gerard Ateshian

Alex,

Try the \vphantom command inside the parenthesis/braces, for example:

\begin{multline*}
\left(\vphantom{\int_{a}^{b}f\left(x\right)g\left(x-x_{0}\right)dx} 
\int_{a}^{b}f\left(x\right)\right.\\
\left.\vphantom{\int_{a}^{b}f\left(x\right)g\left(x-x_{0}\right)dx}g 
\left(x-x_{0}\right)dx\right)\end{multline*}


\vphantom should contain the entire equation, which will not show, but  
will guarantee that the parentheses/braces will be sized for the  
entire content, not just the first line or second line of the equation.


Gerard

On Nov 29, 2007, at 12:06 PM, Alexander Sklar wrote:


Thanks for your reply. My question was more on the lines of how to get
bigger parenthesis/braces when I need to split the equation:

So if I want to split this:
A = ..( LONG_TERM1 + LONG_TERM2)

I would like to get:
A = ...Big(  LONG_TERM1
  + LONG_TERM2  Big)

Thanks,
Alex

-Original Message-
From: Miguel Bazdresch [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 29, 2007 8:36 AM
To: Alexander Sklar
Subject: Re: split long equations and line spacing questions

On Nov 29, 2007 10:31 AM, Alexander Sklar [EMAIL PROTECTED] wrote:

1)  What's the best way to split an long equation surrounded by
parenthesis, over several lines ?


The best way I know is using the split or multiline environments
provided by AMS.
You need to add \usepackage{amsmath} to your preamble; package
documentation is easy to find with Google.

--
Miguel Bazdresch





Re: split long equations and line spacing questions

2007-11-29 Thread Gerard Ateshian

Alex,

Try the \vphantom command inside the parenthesis/braces, for example:

\begin{multline*}
\left(\vphantom{\int_{a}^{b}f\left(x\right)g\left(x-x_{0}\right)dx} 
\int_{a}^{b}f\left(x\right)\right.\\
\left.\vphantom{\int_{a}^{b}f\left(x\right)g\left(x-x_{0}\right)dx}g 
\left(x-x_{0}\right)dx\right)\end{multline*}


\vphantom should contain the entire equation, which will not show, but  
will guarantee that the parentheses/braces will be sized for the  
entire content, not just the first line or second line of the equation.


Gerard

On Nov 29, 2007, at 12:06 PM, Alexander Sklar wrote:


Thanks for your reply. My question was more on the lines of how to get
bigger parenthesis/braces when I need to split the equation:

So if I want to split this:
A = ..( LONG_TERM1 + LONG_TERM2)

I would like to get:
A = ...Big(  LONG_TERM1
  + LONG_TERM2  Big)

Thanks,
Alex

-Original Message-
From: Miguel Bazdresch [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 29, 2007 8:36 AM
To: Alexander Sklar
Subject: Re: split long equations and line spacing questions

On Nov 29, 2007 10:31 AM, Alexander Sklar [EMAIL PROTECTED] wrote:

1)  What's the best way to split an long equation surrounded by
parenthesis, over several lines ?


The best way I know is using the split or multiline environments
provided by AMS.
You need to add \usepackage{amsmath} to your preamble; package
documentation is easy to find with Google.

--
Miguel Bazdresch





Re: split long equations and line spacing questions

2007-11-29 Thread Gerard Ateshian

Alex,

Try the \vphantom command inside the parenthesis/braces, for example:

\begin{multline*}
\left(\vphantom{\int_{a}^{b}f\left(x\right)g\left(x-x_{0}\right)dx} 
\int_{a}^{b}f\left(x\right)\right.\\
\left.\vphantom{\int_{a}^{b}f\left(x\right)g\left(x-x_{0}\right)dx}g 
\left(x-x_{0}\right)dx\right)\end{multline*}


\vphantom should contain the entire equation, which will not show, but  
will guarantee that the parentheses/braces will be sized for the  
entire content, not just the first line or second line of the equation.


Gerard

On Nov 29, 2007, at 12:06 PM, Alexander Sklar wrote:


Thanks for your reply. My question was more on the lines of how to get
bigger parenthesis/braces when I need to split the equation:

So if I want to split this:
A = ..( LONG_TERM1 + LONG_TERM2)

I would like to get:
A = ...Big(  LONG_TERM1
  + LONG_TERM2  Big)

Thanks,
Alex

-Original Message-
From: Miguel Bazdresch [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 29, 2007 8:36 AM
To: Alexander Sklar
Subject: Re: split long equations and line spacing questions

On Nov 29, 2007 10:31 AM, Alexander Sklar <[EMAIL PROTECTED]> wrote:

1)  What's the best way to split an long equation surrounded by
parenthesis, over several lines ?


The best way I know is using the split or multiline environments
provided by AMS.
You need to add \usepackage{amsmath} to your preamble; package
documentation is easy to find with Google.

--
Miguel Bazdresch





Re: EndNote to LyX

2007-08-15 Thread Gerard Ateshian

Jannika,

Here is what I suggest for Mac OS X (I have used this successfully in  
the past).  I got part of these instructions on the web but I don't  
recall where.  So I am paraphrasing.


1) Convert your EndNote library to BibTex format.

a. Within EndNote, Edit-Output Styles-Open Style Manager and select  
BibTex Export.  After you click on any reference in the main window,  
you should see the BibTex output in the preview window (click Show  
Preview if necessary).


b. DON'T DO THIS: In principle, you should be able to export your  
entire EndNote library in this format by selecting File-Export...- 
Save file type as Text Only.  Unfortunately, this messes up the  
file encoding for some reason.


c. DO THIS:  Select all the references in the EndNote window (Apple- 
A), then copy them with formatting (Apple-K).  Switch to a text  
editor (e.g., emacs, or even Word) and paste the buffer in an empty  
window (Apple-V).  Save the file with an extension .bib (e.g.,  
myrefs.bib; if using Word, make sure to save as a Text Only with line  
breaks).


2) Import it within BibDesk (download from http:// 
bibdesk.sourceforge.net/) to automatically generate cite keys (which  
EndNote does not do).


a. File-Open Using Temporary Cite Keys...

b. Select the .bib file you just saved and answer Generate when  
prompted.


c. Save this file within BibDesk (File-Save)

That's it.  Now you should have your entire EndNote library available  
in BibTex format.  If you need to add references to the library in  
the future, you can download them directly into BibDesk (e.g., under  
the Searches menu).


Gerard


On Aug 15, 2007, at 5:26 AM, Jannika Bock wrote:



I'm writing my thesis in LyX 1.5.1. on MAC OS X. I also use EndNote.

How do I generate my bibliography from EndNote files in LyX?

I tried to convert my EndNote files into BibTex, but did not suceed.

I am a LyX newbie and not accustomed to programming and the like. I  
need an easy-to-understand, step-by-step guide.


Thanks a lot.

Jannika






Re: EndNote to LyX

2007-08-15 Thread Gerard Ateshian

Jannika,

Here is what I suggest for Mac OS X (I have used this successfully in  
the past).  I got part of these instructions on the web but I don't  
recall where.  So I am paraphrasing.


1) Convert your EndNote library to BibTex format.

a. Within EndNote, Edit-Output Styles-Open Style Manager and select  
BibTex Export.  After you click on any reference in the main window,  
you should see the BibTex output in the preview window (click Show  
Preview if necessary).


b. DON'T DO THIS: In principle, you should be able to export your  
entire EndNote library in this format by selecting File-Export...- 
Save file type as Text Only.  Unfortunately, this messes up the  
file encoding for some reason.


c. DO THIS:  Select all the references in the EndNote window (Apple- 
A), then copy them with formatting (Apple-K).  Switch to a text  
editor (e.g., emacs, or even Word) and paste the buffer in an empty  
window (Apple-V).  Save the file with an extension .bib (e.g.,  
myrefs.bib; if using Word, make sure to save as a Text Only with line  
breaks).


2) Import it within BibDesk (download from http:// 
bibdesk.sourceforge.net/) to automatically generate cite keys (which  
EndNote does not do).


a. File-Open Using Temporary Cite Keys...

b. Select the .bib file you just saved and answer Generate when  
prompted.


c. Save this file within BibDesk (File-Save)

That's it.  Now you should have your entire EndNote library available  
in BibTex format.  If you need to add references to the library in  
the future, you can download them directly into BibDesk (e.g., under  
the Searches menu).


Gerard


On Aug 15, 2007, at 5:26 AM, Jannika Bock wrote:



I'm writing my thesis in LyX 1.5.1. on MAC OS X. I also use EndNote.

How do I generate my bibliography from EndNote files in LyX?

I tried to convert my EndNote files into BibTex, but did not suceed.

I am a LyX newbie and not accustomed to programming and the like. I  
need an easy-to-understand, step-by-step guide.


Thanks a lot.

Jannika






Re: EndNote to LyX

2007-08-15 Thread Gerard Ateshian

Jannika,

Here is what I suggest for Mac OS X (I have used this successfully in  
the past).  I got part of these instructions on the web but I don't  
recall where.  So I am paraphrasing.


1) Convert your EndNote library to BibTex format.

a. Within EndNote, Edit->Output Styles->Open Style Manager and select  
BibTex Export.  After you click on any reference in the main window,  
you should see the BibTex output in the preview window (click Show  
Preview if necessary).


b. DON'T DO THIS: In principle, you should be able to export your  
entire EndNote library in this format by selecting File->Export...- 
>Save file type as Text Only.  Unfortunately, this messes up the  
file encoding for some reason.


c. DO THIS:  Select all the references in the EndNote window (Apple- 
A), then copy them with formatting (Apple-K).  Switch to a text  
editor (e.g., emacs, or even Word) and paste the buffer in an empty  
window (Apple-V).  Save the file with an extension .bib (e.g.,  
myrefs.bib; if using Word, make sure to save as a Text Only with line  
breaks).


2) Import it within BibDesk (download from http:// 
bibdesk.sourceforge.net/) to automatically generate cite keys (which  
EndNote does not do).


a. File->Open Using Temporary Cite Keys...

b. Select the .bib file you just saved and answer Generate when  
prompted.


c. Save this file within BibDesk (File->Save)

That's it.  Now you should have your entire EndNote library available  
in BibTex format.  If you need to add references to the library in  
the future, you can download them directly into BibDesk (e.g., under  
the Searches menu).


Gerard


On Aug 15, 2007, at 5:26 AM, Jannika Bock wrote:



I'm writing my thesis in LyX 1.5.1. on MAC OS X. I also use EndNote.

How do I generate my bibliography from EndNote files in LyX?

I tried to convert my EndNote files into BibTex, but did not suceed.

I am a LyX newbie and not accustomed to programming and the like. I  
need an easy-to-understand, step-by-step guide.


Thanks a lot.

Jannika






Re: LyX-1.5.0 Release Candidate 1 on Mac PPC: Speed issues (solution?)

2007-06-09 Thread Gerard Ateshian

Bob,

The version of Qt I had used for that compilation was 4.2.  Just like  
you, I had noticed that the Times font was not a problem in that  
version.  At least it helps to know that this font problem is due to  
Qt, not to LyX.


Gerard



Re: LyX-1.5.0 Release Candidate 1 on Mac PPC: Speed issues (solution?)

2007-06-09 Thread Gerard Ateshian

Bob,

The version of Qt I had used for that compilation was 4.2.  Just like  
you, I had noticed that the Times font was not a problem in that  
version.  At least it helps to know that this font problem is due to  
Qt, not to LyX.


Gerard



Re: LyX-1.5.0 Release Candidate 1 on Mac PPC: Speed issues (solution?)

2007-06-09 Thread Gerard Ateshian

Bob,

The version of Qt I had used for that compilation was 4.2.  Just like  
you, I had noticed that the Times font was not a problem in that  
version.  At least it helps to know that this font problem is due to  
Qt, not to LyX.


Gerard



Re:1.5.0rc1 Mac PPC G3 typing lag

2007-06-05 Thread Gerard Ateshian
I also found that the universal binary for 1.5rc1 runs slowly on Mac  
OS X PPC (I have a PowerBook G4, 1.67 GHz, 2 GB memory), so I  
compiled my own version and it runs just fine.  If you want it, you  
can download it from http://bio7.mech.columbia.edu/~gerard/


Gerard Ateshian



Re:1.5.0rc1 Mac PPC G3 typing lag

2007-06-05 Thread Gerard Ateshian
I also found that the universal binary for 1.5rc1 runs slowly on Mac  
OS X PPC (I have a PowerBook G4, 1.67 GHz, 2 GB memory), so I  
compiled my own version and it runs just fine.  If you want it, you  
can download it from http://bio7.mech.columbia.edu/~gerard/


Gerard Ateshian



Re:1.5.0rc1 Mac PPC G3 typing lag

2007-06-05 Thread Gerard Ateshian
I also found that the universal binary for 1.5rc1 runs slowly on Mac  
OS X PPC (I have a PowerBook G4, 1.67 GHz, 2 GB memory), so I  
compiled my own version and it runs just fine.  If you want it, you  
can download it from http://bio7.mech.columbia.edu/~gerard/


Gerard Ateshian



Re: llibtool error compiling LyX 1.5.0beta1 on Mac OS X ppc

2007-03-18 Thread Gerard Ateshian

Bennett,

Thanks!  I restarted the installation from scratch using this new  
INSTALL.MacOSX file and everything worked fine this time.


Gerard

On Mar 17, 2007, at 7:16 PM, Bennett Helm wrote:


On Mar 17, 2007, at 8:30 AM, Gerard Ateshian wrote:


Hi,

I tried compiling LyX 1.5.0beta1 on Mac OS X ppc and it went on  
for a while until I got this error:


/bin/sh ../libtool --tag=CXX --mode=link g++  -g -Os  -framework  
Carbon -framework OpenGL -framework AGL -framework QuickTime -lz - 
o lyx-qt4  main.o Bidi.o BufferView.o Bullet.o BranchList.o  
Chktex.o Color.o ConverterCache.o CutAndPaste.o DepTable.o  
FloatList.o Floating.o FontIterator.o FuncStatus.o InsetList.o  
LColor.o LaTeX.o LaTeXFeatures.o LyXAction.o MenuBackend.o  
ParagraphParameters.o PrinterParams.o Spacing.o Thesaurus.o  
ToolbarBackend.o author.o boost.o box.o buffer.o buffer_funcs.o  
bufferlist.o bufferparams.o bufferview_funcs.o changes.o chset.o  
converter.o counters.o coordcache.o cursor.o cursor_slice.o  
debug.o dimension.o dociterator.o encoding.o errorlist.o  
exporter.o gettext.o factory.o format.o funcrequest.o graph.o  
importer.o intl.o insetiterator.o kbmap.o kbsequence.o language.o  
session.o lengthcommon.o lyx_cb.o lyx_main.o lyx_sty.o lyxfont.o  
lyxfind.o lyxfunc.o lyxgluelength.o lyxlayout.o lyxlength.o  
lyxlex.o lyxlex_pimpl.o lyxrc.o lyxrow.o lyxserver.o lyxsocket.o  
lyxtextclass.o lyxtextclasslist.o lyxvc.o messages.o metricsinfo.o  
mover.o output.o outputparams.o output_docbook.o output_latex.o  
output_plaintext.o paragraph.o ParagraphMetrics.o  
paragraph_funcs.o paragraph_pimpl.o pariterator.o   ispell.o  
SpellBase.o rowpainter.o sgml.o tabular.o tex-accent.o tex- 
strings.o texrow.o text.o text2.o text3.o TextMetrics.o  
TocBackend.o toc.o trans.o trans_mgr.o undo.o vc-backend.o  
version.o vspace.o mathed/libmathed.la insets/libinsets.la  
frontends/libfrontends.la frontends/qt4/libqt4.la frontends/ 
controllers/libcontrollers.la graphics/libgraphics.la support/ 
libsupport.la ../boost/libs/regex/src/libboost_regex.la ../boost/ 
libs/signals/src/libboost_signals.la ../boost/libs/filesystem/src/ 
libboost_filesystem.la ../boost/libs/iostreams/src/ 
libboost_iostreams.la -liconv ../intl/libintl.a -liconv  -lc -lm  -lz

mkdir .libs
libtool: link: cannot find the library `'
make[3]: *** [lyx-qt4] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Any suggestions?


My guess is that you didn't delete *.la files from [QTDIR]/lib/.  
(1.5beta1 came out before we had a chance to update the  
INSTALL.MacOSX instructions, which hopefully will lay out what you  
need to do. I'm attaching a copy to this e-mail.)


Bennett

INSTALL.MacOSX






Re: llibtool error compiling LyX 1.5.0beta1 on Mac OS X ppc

2007-03-18 Thread Gerard Ateshian

Bennett,

Thanks!  I restarted the installation from scratch using this new  
INSTALL.MacOSX file and everything worked fine this time.


Gerard

On Mar 17, 2007, at 7:16 PM, Bennett Helm wrote:


On Mar 17, 2007, at 8:30 AM, Gerard Ateshian wrote:


Hi,

I tried compiling LyX 1.5.0beta1 on Mac OS X ppc and it went on  
for a while until I got this error:


/bin/sh ../libtool --tag=CXX --mode=link g++  -g -Os  -framework  
Carbon -framework OpenGL -framework AGL -framework QuickTime -lz - 
o lyx-qt4  main.o Bidi.o BufferView.o Bullet.o BranchList.o  
Chktex.o Color.o ConverterCache.o CutAndPaste.o DepTable.o  
FloatList.o Floating.o FontIterator.o FuncStatus.o InsetList.o  
LColor.o LaTeX.o LaTeXFeatures.o LyXAction.o MenuBackend.o  
ParagraphParameters.o PrinterParams.o Spacing.o Thesaurus.o  
ToolbarBackend.o author.o boost.o box.o buffer.o buffer_funcs.o  
bufferlist.o bufferparams.o bufferview_funcs.o changes.o chset.o  
converter.o counters.o coordcache.o cursor.o cursor_slice.o  
debug.o dimension.o dociterator.o encoding.o errorlist.o  
exporter.o gettext.o factory.o format.o funcrequest.o graph.o  
importer.o intl.o insetiterator.o kbmap.o kbsequence.o language.o  
session.o lengthcommon.o lyx_cb.o lyx_main.o lyx_sty.o lyxfont.o  
lyxfind.o lyxfunc.o lyxgluelength.o lyxlayout.o lyxlength.o  
lyxlex.o lyxlex_pimpl.o lyxrc.o lyxrow.o lyxserver.o lyxsocket.o  
lyxtextclass.o lyxtextclasslist.o lyxvc.o messages.o metricsinfo.o  
mover.o output.o outputparams.o output_docbook.o output_latex.o  
output_plaintext.o paragraph.o ParagraphMetrics.o  
paragraph_funcs.o paragraph_pimpl.o pariterator.o   ispell.o  
SpellBase.o rowpainter.o sgml.o tabular.o tex-accent.o tex- 
strings.o texrow.o text.o text2.o text3.o TextMetrics.o  
TocBackend.o toc.o trans.o trans_mgr.o undo.o vc-backend.o  
version.o vspace.o mathed/libmathed.la insets/libinsets.la  
frontends/libfrontends.la frontends/qt4/libqt4.la frontends/ 
controllers/libcontrollers.la graphics/libgraphics.la support/ 
libsupport.la ../boost/libs/regex/src/libboost_regex.la ../boost/ 
libs/signals/src/libboost_signals.la ../boost/libs/filesystem/src/ 
libboost_filesystem.la ../boost/libs/iostreams/src/ 
libboost_iostreams.la -liconv ../intl/libintl.a -liconv  -lc -lm  -lz

mkdir .libs
libtool: link: cannot find the library `'
make[3]: *** [lyx-qt4] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Any suggestions?


My guess is that you didn't delete *.la files from [QTDIR]/lib/.  
(1.5beta1 came out before we had a chance to update the  
INSTALL.MacOSX instructions, which hopefully will lay out what you  
need to do. I'm attaching a copy to this e-mail.)


Bennett

INSTALL.MacOSX






Re: llibtool error compiling LyX 1.5.0beta1 on Mac OS X ppc

2007-03-18 Thread Gerard Ateshian

Bennett,

Thanks!  I restarted the installation from scratch using this new  
INSTALL.MacOSX file and everything worked fine this time.


Gerard

On Mar 17, 2007, at 7:16 PM, Bennett Helm wrote:


On Mar 17, 2007, at 8:30 AM, Gerard Ateshian wrote:


Hi,

I tried compiling LyX 1.5.0beta1 on Mac OS X ppc and it went on  
for a while until I got this error:


/bin/sh ../libtool --tag=CXX --mode=link g++  -g -Os  -framework  
Carbon -framework OpenGL -framework AGL -framework QuickTime -lz - 
o lyx-qt4  main.o Bidi.o BufferView.o Bullet.o BranchList.o  
Chktex.o Color.o ConverterCache.o CutAndPaste.o DepTable.o  
FloatList.o Floating.o FontIterator.o FuncStatus.o InsetList.o  
LColor.o LaTeX.o LaTeXFeatures.o LyXAction.o MenuBackend.o  
ParagraphParameters.o PrinterParams.o Spacing.o Thesaurus.o  
ToolbarBackend.o author.o boost.o box.o buffer.o buffer_funcs.o  
bufferlist.o bufferparams.o bufferview_funcs.o changes.o chset.o  
converter.o counters.o coordcache.o cursor.o cursor_slice.o  
debug.o dimension.o dociterator.o encoding.o errorlist.o  
exporter.o gettext.o factory.o format.o funcrequest.o graph.o  
importer.o intl.o insetiterator.o kbmap.o kbsequence.o language.o  
session.o lengthcommon.o lyx_cb.o lyx_main.o lyx_sty.o lyxfont.o  
lyxfind.o lyxfunc.o lyxgluelength.o lyxlayout.o lyxlength.o  
lyxlex.o lyxlex_pimpl.o lyxrc.o lyxrow.o lyxserver.o lyxsocket.o  
lyxtextclass.o lyxtextclasslist.o lyxvc.o messages.o metricsinfo.o  
mover.o output.o outputparams.o output_docbook.o output_latex.o  
output_plaintext.o paragraph.o ParagraphMetrics.o  
paragraph_funcs.o paragraph_pimpl.o pariterator.o   ispell.o  
SpellBase.o rowpainter.o sgml.o tabular.o tex-accent.o tex- 
strings.o texrow.o text.o text2.o text3.o TextMetrics.o  
TocBackend.o toc.o trans.o trans_mgr.o undo.o vc-backend.o  
version.o vspace.o mathed/libmathed.la insets/libinsets.la  
frontends/libfrontends.la frontends/qt4/libqt4.la frontends/ 
controllers/libcontrollers.la graphics/libgraphics.la support/ 
libsupport.la ../boost/libs/regex/src/libboost_regex.la ../boost/ 
libs/signals/src/libboost_signals.la ../boost/libs/filesystem/src/ 
libboost_filesystem.la ../boost/libs/iostreams/src/ 
libboost_iostreams.la -liconv ../intl/libintl.a -liconv  -lc -lm  -lz

mkdir .libs
libtool: link: cannot find the library `'
make[3]: *** [lyx-qt4] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Any suggestions?


My guess is that you didn't delete *.la files from [QTDIR]/lib/.  
(1.5beta1 came out before we had a chance to update the  
INSTALL.MacOSX instructions, which hopefully will lay out what you  
need to do. I'm attaching a copy to this e-mail.)


Bennett








llibtool error compiling LyX 1.5.0beta1 on Mac OS X ppc

2007-03-17 Thread Gerard Ateshian

Hi,

I tried compiling LyX 1.5.0beta1 on Mac OS X ppc and it went on for a  
while until I got this error:


/bin/sh ../libtool --tag=CXX --mode=link g++  -g -Os  -framework  
Carbon -framework OpenGL -framework AGL -framework QuickTime -lz -o  
lyx-qt4  main.o Bidi.o BufferView.o Bullet.o BranchList.o Chktex.o  
Color.o ConverterCache.o CutAndPaste.o DepTable.o FloatList.o  
Floating.o FontIterator.o FuncStatus.o InsetList.o LColor.o LaTeX.o  
LaTeXFeatures.o LyXAction.o MenuBackend.o ParagraphParameters.o  
PrinterParams.o Spacing.o Thesaurus.o ToolbarBackend.o author.o  
boost.o box.o buffer.o buffer_funcs.o bufferlist.o bufferparams.o  
bufferview_funcs.o changes.o chset.o converter.o counters.o  
coordcache.o cursor.o cursor_slice.o debug.o dimension.o  
dociterator.o encoding.o errorlist.o exporter.o gettext.o factory.o  
format.o funcrequest.o graph.o importer.o intl.o insetiterator.o  
kbmap.o kbsequence.o language.o session.o lengthcommon.o lyx_cb.o  
lyx_main.o lyx_sty.o lyxfont.o lyxfind.o lyxfunc.o lyxgluelength.o  
lyxlayout.o lyxlength.o lyxlex.o lyxlex_pimpl.o lyxrc.o lyxrow.o  
lyxserver.o lyxsocket.o lyxtextclass.o lyxtextclasslist.o lyxvc.o  
messages.o metricsinfo.o mover.o output.o outputparams.o  
output_docbook.o output_latex.o output_plaintext.o paragraph.o  
ParagraphMetrics.o paragraph_funcs.o paragraph_pimpl.o  
pariterator.o   ispell.o SpellBase.o rowpainter.o sgml.o tabular.o  
tex-accent.o tex-strings.o texrow.o text.o text2.o text3.o  
TextMetrics.o TocBackend.o toc.o trans.o trans_mgr.o undo.o vc- 
backend.o version.o vspace.o mathed/libmathed.la insets/libinsets.la  
frontends/libfrontends.la frontends/qt4/libqt4.la frontends/ 
controllers/libcontrollers.la graphics/libgraphics.la support/ 
libsupport.la ../boost/libs/regex/src/libboost_regex.la ../boost/libs/ 
signals/src/libboost_signals.la ../boost/libs/filesystem/src/ 
libboost_filesystem.la ../boost/libs/iostreams/src/ 
libboost_iostreams.la -liconv ../intl/libintl.a -liconv  -lc -lm  -lz

mkdir .libs
libtool: link: cannot find the library `'
make[3]: *** [lyx-qt4] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Any suggestions?

Gerard Ateshian



llibtool error compiling LyX 1.5.0beta1 on Mac OS X ppc

2007-03-17 Thread Gerard Ateshian

Hi,

I tried compiling LyX 1.5.0beta1 on Mac OS X ppc and it went on for a  
while until I got this error:


/bin/sh ../libtool --tag=CXX --mode=link g++  -g -Os  -framework  
Carbon -framework OpenGL -framework AGL -framework QuickTime -lz -o  
lyx-qt4  main.o Bidi.o BufferView.o Bullet.o BranchList.o Chktex.o  
Color.o ConverterCache.o CutAndPaste.o DepTable.o FloatList.o  
Floating.o FontIterator.o FuncStatus.o InsetList.o LColor.o LaTeX.o  
LaTeXFeatures.o LyXAction.o MenuBackend.o ParagraphParameters.o  
PrinterParams.o Spacing.o Thesaurus.o ToolbarBackend.o author.o  
boost.o box.o buffer.o buffer_funcs.o bufferlist.o bufferparams.o  
bufferview_funcs.o changes.o chset.o converter.o counters.o  
coordcache.o cursor.o cursor_slice.o debug.o dimension.o  
dociterator.o encoding.o errorlist.o exporter.o gettext.o factory.o  
format.o funcrequest.o graph.o importer.o intl.o insetiterator.o  
kbmap.o kbsequence.o language.o session.o lengthcommon.o lyx_cb.o  
lyx_main.o lyx_sty.o lyxfont.o lyxfind.o lyxfunc.o lyxgluelength.o  
lyxlayout.o lyxlength.o lyxlex.o lyxlex_pimpl.o lyxrc.o lyxrow.o  
lyxserver.o lyxsocket.o lyxtextclass.o lyxtextclasslist.o lyxvc.o  
messages.o metricsinfo.o mover.o output.o outputparams.o  
output_docbook.o output_latex.o output_plaintext.o paragraph.o  
ParagraphMetrics.o paragraph_funcs.o paragraph_pimpl.o  
pariterator.o   ispell.o SpellBase.o rowpainter.o sgml.o tabular.o  
tex-accent.o tex-strings.o texrow.o text.o text2.o text3.o  
TextMetrics.o TocBackend.o toc.o trans.o trans_mgr.o undo.o vc- 
backend.o version.o vspace.o mathed/libmathed.la insets/libinsets.la  
frontends/libfrontends.la frontends/qt4/libqt4.la frontends/ 
controllers/libcontrollers.la graphics/libgraphics.la support/ 
libsupport.la ../boost/libs/regex/src/libboost_regex.la ../boost/libs/ 
signals/src/libboost_signals.la ../boost/libs/filesystem/src/ 
libboost_filesystem.la ../boost/libs/iostreams/src/ 
libboost_iostreams.la -liconv ../intl/libintl.a -liconv  -lc -lm  -lz

mkdir .libs
libtool: link: cannot find the library `'
make[3]: *** [lyx-qt4] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Any suggestions?

Gerard Ateshian



llibtool error compiling LyX 1.5.0beta1 on Mac OS X ppc

2007-03-17 Thread Gerard Ateshian

Hi,

I tried compiling LyX 1.5.0beta1 on Mac OS X ppc and it went on for a  
while until I got this error:


/bin/sh ../libtool --tag=CXX --mode=link g++  -g -Os  -framework  
Carbon -framework OpenGL -framework AGL -framework QuickTime -lz -o  
lyx-qt4  main.o Bidi.o BufferView.o Bullet.o BranchList.o Chktex.o  
Color.o ConverterCache.o CutAndPaste.o DepTable.o FloatList.o  
Floating.o FontIterator.o FuncStatus.o InsetList.o LColor.o LaTeX.o  
LaTeXFeatures.o LyXAction.o MenuBackend.o ParagraphParameters.o  
PrinterParams.o Spacing.o Thesaurus.o ToolbarBackend.o author.o  
boost.o box.o buffer.o buffer_funcs.o bufferlist.o bufferparams.o  
bufferview_funcs.o changes.o chset.o converter.o counters.o  
coordcache.o cursor.o cursor_slice.o debug.o dimension.o  
dociterator.o encoding.o errorlist.o exporter.o gettext.o factory.o  
format.o funcrequest.o graph.o importer.o intl.o insetiterator.o  
kbmap.o kbsequence.o language.o session.o lengthcommon.o lyx_cb.o  
lyx_main.o lyx_sty.o lyxfont.o lyxfind.o lyxfunc.o lyxgluelength.o  
lyxlayout.o lyxlength.o lyxlex.o lyxlex_pimpl.o lyxrc.o lyxrow.o  
lyxserver.o lyxsocket.o lyxtextclass.o lyxtextclasslist.o lyxvc.o  
messages.o metricsinfo.o mover.o output.o outputparams.o  
output_docbook.o output_latex.o output_plaintext.o paragraph.o  
ParagraphMetrics.o paragraph_funcs.o paragraph_pimpl.o  
pariterator.o   ispell.o SpellBase.o rowpainter.o sgml.o tabular.o  
tex-accent.o tex-strings.o texrow.o text.o text2.o text3.o  
TextMetrics.o TocBackend.o toc.o trans.o trans_mgr.o undo.o vc- 
backend.o version.o vspace.o mathed/libmathed.la insets/libinsets.la  
frontends/libfrontends.la frontends/qt4/libqt4.la frontends/ 
controllers/libcontrollers.la graphics/libgraphics.la support/ 
libsupport.la ../boost/libs/regex/src/libboost_regex.la ../boost/libs/ 
signals/src/libboost_signals.la ../boost/libs/filesystem/src/ 
libboost_filesystem.la ../boost/libs/iostreams/src/ 
libboost_iostreams.la -liconv ../intl/libintl.a -liconv  -lc -lm  -lz

mkdir .libs
libtool: link: cannot find the library `'
make[3]: *** [lyx-qt4] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Any suggestions?

Gerard Ateshian



Re: Perl script for renumbering equations

2007-02-09 Thread Gerard Ateshian

Georg,

Renumbering/relabeling equations is useful when you have a large  
document (like a book) with very many equations (for example, more  
than fifty).  You quickly run out of names to use for labeling the  
equations.  So you might find that it is easier to simply number them  
according to the section in which they appear.  Every once in a while  
you need to insert a section in the middle of other sections, or an  
equation in the middle of  other equations, and a manual labeling  
scheme becomes messed up.  This script helps to clean things up when  
needed.


Using the section name makes the size of the label unpredictable,  
since some sections may have long names.  That will mess up the  
display of equations on the screen.  Truncating the section name may  
make it non-unique.  However the section numbering scheme is always  
unique, which is why I picked it.


Gerard



Re[2]: Perl script for renumbering equations

2007-02-09 Thread Gerard Ateshian

Alan,

That's great, thanks.

Gerard



Re: Perl script for renumbering equations

2007-02-09 Thread Gerard Ateshian

Georg,

Renumbering/relabeling equations is useful when you have a large  
document (like a book) with very many equations (for example, more  
than fifty).  You quickly run out of names to use for labeling the  
equations.  So you might find that it is easier to simply number them  
according to the section in which they appear.  Every once in a while  
you need to insert a section in the middle of other sections, or an  
equation in the middle of  other equations, and a manual labeling  
scheme becomes messed up.  This script helps to clean things up when  
needed.


Using the section name makes the size of the label unpredictable,  
since some sections may have long names.  That will mess up the  
display of equations on the screen.  Truncating the section name may  
make it non-unique.  However the section numbering scheme is always  
unique, which is why I picked it.


Gerard



Re[2]: Perl script for renumbering equations

2007-02-09 Thread Gerard Ateshian

Alan,

That's great, thanks.

Gerard



Re: Perl script for renumbering equations

2007-02-09 Thread Gerard Ateshian

Georg,

Renumbering/relabeling equations is useful when you have a large  
document (like a book) with very many equations (for example, more  
than fifty).  You quickly run out of names to use for labeling the  
equations.  So you might find that it is easier to simply number them  
according to the section in which they appear.  Every once in a while  
you need to insert a section in the middle of other sections, or an  
equation in the middle of  other equations, and a manual labeling  
scheme becomes messed up.  This script helps to clean things up when  
needed.


Using the section name makes the size of the label unpredictable,  
since some sections may have long names.  That will mess up the  
display of equations on the screen.  Truncating the section name may  
make it non-unique.  However the section numbering scheme is always  
unique, which is why I picked it.


Gerard



Re[2]: Perl script for renumbering equations

2007-02-09 Thread Gerard Ateshian

Alan,

That's great, thanks.

Gerard



Perl script for renumbering equations

2007-02-08 Thread Gerard Ateshian

Hi,

I wrote a perl script, renumber.pl, for renumbering equations in LyX  
(attached).  It will take existing equation labels and renumber them  
according to the section heading.  For example, in Chapter 1, section  
4, subsection 2, equations will be labeled 1.4.2.1, 1.4.2.2, etc.   
The script will not create equations labels where there were none.


Usage (at a command prompt, assuming you have perl on your system):

perl renumber.pl oldfile.lyx newfile.lyx  [ oldprefix  [ newprefix ] ]

It searches oldfile.lyx for equation labels of the form \label{eq:  
where eq: is the default prefix. After renumbering equations (and  
all references to them) it saves the revised document in  
newfile.lyx.  (newfile.lyx will be overwritten without prompting.)


If you use another prefix for equations, such as EQ-, specify it in  
oldprefix, e.g.,


perl renumber.pl oldfile.lyx newfile.lyx EQ-

You can also specify a new prefix for equation labels, e.g.,

perl renumber.pl oldfile.lyx newfile.lyx EQ- Eqs:

If you want to experiment with it I suggest making a safe copy of  
your document first. Also note that this is one of my first attempts  
at perl scripting, so I may not have written this script in the most  
efficient manner.


I don't know if others will find it useful, but if so, is there a  
website where one can post contributions?  I couldn't find it on the  
LyX wiki.


Thanks,

Gerard Ateshian

#!/usr/local/bin/perl -w
#
# Renumber equations in a LyX document.
# Usage:
# perl renumber.pl oldfile newfile [oldprefix [newprefix]]
#
# Search for equation labels of the form \label{eq: where eq: is the
# default prefix. If you use another prefix for equations, such as EQ-,
# specify it in oldprefix, e.g.,
#
# perl renumber.pl oldfile newfile EQ-
#
# You can also specify a new prefix for equation labels, e.g.,
#
# perl renumber.pl oldfile newfile EQ- Eqs:
#
# by Gerard Ateshian ([EMAIL PROTECTED]), Feb. 8, 2007.

use strict;
my ($oldfile,$newfile);
my ($oldprefix,$newprefix,$tmpprefix);
my ($line,$all,%labels,@labels);
my ($chap,$sec,$ssec,$sssec);
my ($root,$eq,$oldlabel,$newlabel);

if ($#ARGV  1) {
print usage: renumber oldfile newfile [oldprefix [newprefix] ]\n;
exit;
}

# Extract command line arguments
$oldfile = $ARGV[0];
$newfile = $ARGV[1];
$oldprefix = ($ARGV[2] or 'eq:');	# Use 'eq:' as default prefix for equation labels
$newprefix = ($ARGV[3] or $oldprefix);	# Use old prefix as default for new prefix

# Open input and output files
open(OF, $oldfile) or die $!;
open(NF, $newfile) or die $!;

# Initialize
$tmpprefix = $oldprefix.'%';
$chap = 0;
$all = '';

# read in each line of the file
while ($line = OF) {
$all .= $line;	# Store the entire file in the string $all
# Look for section headings or equation labels
if ($line =~ /\\layout Chapter/) {
	$chap += 1;
	$root = $chap;
	$sec = 0;
	$eq = 0;
} elsif ($line =~ /\\layout Section/) {
	$sec +=1;
	if ($chap != 0) {
	$root = join('.',$chap,$sec);
	} else {
	$root = $sec;
	}
	$ssec = 0;
	$eq = 0;
} elsif ($line =~ /\\layout Subsection/) {
	$ssec +=1;
	if ($chap != 0) {
	$root = join('.',$chap,$sec,$ssec);
	} else {
	$root = join('.',$sec,$ssec);
	}
	$sssec = 0;
	$eq = 0;
} elsif ($line =~ /\\layout Subsubsection/) {
	$sssec +=1;
	if ($chap != 0) {
	$root = join('.',$chap,$sec,$ssec,$sssec);
	} else {
	$root = join('.',$sec,$ssec,$sssec);
	}
	$eq = 0;
} elsif ($line =~ /(\\label)(\{$oldprefix.*\})\\/) {
# Look for an equation label.
# This regexp assumes that the equation label is followed by a backslash,
# e.g., as in \label{eq:5-2}\end{equation}.  It uses the backslash in \end
# to terminate the match.
	$oldlabel = $2;
	$eq += 1;
# Use a temporary prefix for the new label, in case the new prefix
# is the same as the old prefix, which might cause two different
# equations to temporarily share the same label.
	$newlabel = {$tmpprefix$root.$eq};
#	print Old label: $oldlabel, New label: $newlabel\n;
# Store the equation label and its replacement in %labels
	$labels{$oldlabel} = $newlabel;
}
}

# Check to see if any equation labels were found
@labels = keys %labels;
if ($#labels == -1) {die No equation labels found!\n};

# Do the global search and replace and save the results into a new file
print Searching and replacing...\n;
for $oldlabel (@labels) {
$newlabel = $labels{$oldlabel};
$all =~ s/$oldlabel/$newlabel/g;
}
# Change the temporary equation prefix to the new prefix
$all =~ s/$tmpprefix/$newprefix/g;
print NF $all;

close(OF);
close(NF);




Perl script for renumbering equations

2007-02-08 Thread Gerard Ateshian

Hi,

I wrote a perl script, renumber.pl, for renumbering equations in LyX  
(attached).  It will take existing equation labels and renumber them  
according to the section heading.  For example, in Chapter 1, section  
4, subsection 2, equations will be labeled 1.4.2.1, 1.4.2.2, etc.   
The script will not create equations labels where there were none.


Usage (at a command prompt, assuming you have perl on your system):

perl renumber.pl oldfile.lyx newfile.lyx  [ oldprefix  [ newprefix ] ]

It searches oldfile.lyx for equation labels of the form \label{eq:  
where eq: is the default prefix. After renumbering equations (and  
all references to them) it saves the revised document in  
newfile.lyx.  (newfile.lyx will be overwritten without prompting.)


If you use another prefix for equations, such as EQ-, specify it in  
oldprefix, e.g.,


perl renumber.pl oldfile.lyx newfile.lyx EQ-

You can also specify a new prefix for equation labels, e.g.,

perl renumber.pl oldfile.lyx newfile.lyx EQ- Eqs:

If you want to experiment with it I suggest making a safe copy of  
your document first. Also note that this is one of my first attempts  
at perl scripting, so I may not have written this script in the most  
efficient manner.


I don't know if others will find it useful, but if so, is there a  
website where one can post contributions?  I couldn't find it on the  
LyX wiki.


Thanks,

Gerard Ateshian

#!/usr/local/bin/perl -w
#
# Renumber equations in a LyX document.
# Usage:
# perl renumber.pl oldfile newfile [oldprefix [newprefix]]
#
# Search for equation labels of the form \label{eq: where eq: is the
# default prefix. If you use another prefix for equations, such as EQ-,
# specify it in oldprefix, e.g.,
#
# perl renumber.pl oldfile newfile EQ-
#
# You can also specify a new prefix for equation labels, e.g.,
#
# perl renumber.pl oldfile newfile EQ- Eqs:
#
# by Gerard Ateshian ([EMAIL PROTECTED]), Feb. 8, 2007.

use strict;
my ($oldfile,$newfile);
my ($oldprefix,$newprefix,$tmpprefix);
my ($line,$all,%labels,@labels);
my ($chap,$sec,$ssec,$sssec);
my ($root,$eq,$oldlabel,$newlabel);

if ($#ARGV  1) {
print usage: renumber oldfile newfile [oldprefix [newprefix] ]\n;
exit;
}

# Extract command line arguments
$oldfile = $ARGV[0];
$newfile = $ARGV[1];
$oldprefix = ($ARGV[2] or 'eq:');	# Use 'eq:' as default prefix for equation labels
$newprefix = ($ARGV[3] or $oldprefix);	# Use old prefix as default for new prefix

# Open input and output files
open(OF, $oldfile) or die $!;
open(NF, $newfile) or die $!;

# Initialize
$tmpprefix = $oldprefix.'%';
$chap = 0;
$all = '';

# read in each line of the file
while ($line = OF) {
$all .= $line;	# Store the entire file in the string $all
# Look for section headings or equation labels
if ($line =~ /\\layout Chapter/) {
	$chap += 1;
	$root = $chap;
	$sec = 0;
	$eq = 0;
} elsif ($line =~ /\\layout Section/) {
	$sec +=1;
	if ($chap != 0) {
	$root = join('.',$chap,$sec);
	} else {
	$root = $sec;
	}
	$ssec = 0;
	$eq = 0;
} elsif ($line =~ /\\layout Subsection/) {
	$ssec +=1;
	if ($chap != 0) {
	$root = join('.',$chap,$sec,$ssec);
	} else {
	$root = join('.',$sec,$ssec);
	}
	$sssec = 0;
	$eq = 0;
} elsif ($line =~ /\\layout Subsubsection/) {
	$sssec +=1;
	if ($chap != 0) {
	$root = join('.',$chap,$sec,$ssec,$sssec);
	} else {
	$root = join('.',$sec,$ssec,$sssec);
	}
	$eq = 0;
} elsif ($line =~ /(\\label)(\{$oldprefix.*\})\\/) {
# Look for an equation label.
# This regexp assumes that the equation label is followed by a backslash,
# e.g., as in \label{eq:5-2}\end{equation}.  It uses the backslash in \end
# to terminate the match.
	$oldlabel = $2;
	$eq += 1;
# Use a temporary prefix for the new label, in case the new prefix
# is the same as the old prefix, which might cause two different
# equations to temporarily share the same label.
	$newlabel = {$tmpprefix$root.$eq};
#	print Old label: $oldlabel, New label: $newlabel\n;
# Store the equation label and its replacement in %labels
	$labels{$oldlabel} = $newlabel;
}
}

# Check to see if any equation labels were found
@labels = keys %labels;
if ($#labels == -1) {die No equation labels found!\n};

# Do the global search and replace and save the results into a new file
print Searching and replacing...\n;
for $oldlabel (@labels) {
$newlabel = $labels{$oldlabel};
$all =~ s/$oldlabel/$newlabel/g;
}
# Change the temporary equation prefix to the new prefix
$all =~ s/$tmpprefix/$newprefix/g;
print NF $all;

close(OF);
close(NF);




Perl script for renumbering equations

2007-02-08 Thread Gerard Ateshian

Hi,

I wrote a perl script, renumber.pl, for renumbering equations in LyX  
(attached).  It will take existing equation labels and renumber them  
according to the section heading.  For example, in Chapter 1, section  
4, subsection 2, equations will be labeled 1.4.2.1, 1.4.2.2, etc.   
The script will not create equations labels where there were none.


Usage (at a command prompt, assuming you have perl on your system):

perl renumber.pl oldfile.lyx newfile.lyx  [ oldprefix  [ newprefix ] ]

It searches oldfile.lyx for equation labels of the form "\label{eq:"  
where "eq:" is the default prefix. After renumbering equations (and  
all references to them) it saves the revised document in  
newfile.lyx.  (newfile.lyx will be overwritten without prompting.)


If you use another prefix for equations, such as "EQ-", specify it in  
oldprefix, e.g.,


perl renumber.pl oldfile.lyx newfile.lyx EQ-

You can also specify a new prefix for equation labels, e.g.,

perl renumber.pl oldfile.lyx newfile.lyx EQ- Eqs:

If you want to experiment with it I suggest making a safe copy of  
your document first. Also note that this is one of my first attempts  
at perl scripting, so I may not have written this script in the most  
efficient manner.


I don't know if others will find it useful, but if so, is there a  
website where one can post contributions?  I couldn't find it on the  
LyX wiki.


Thanks,

Gerard Ateshian

#!/usr/local/bin/perl -w
#
# Renumber equations in a LyX document.
# Usage:
# perl renumber.pl oldfile newfile [oldprefix [newprefix]]
#
# Search for equation labels of the form "\label{eq:" where "eq:" is the
# default prefix. If you use another prefix for equations, such as "EQ-",
# specify it in oldprefix, e.g.,
#
# perl renumber.pl oldfile newfile EQ-
#
# You can also specify a new prefix for equation labels, e.g.,
#
# perl renumber.pl oldfile newfile EQ- Eqs:
#
# by Gerard Ateshian ([EMAIL PROTECTED]), Feb. 8, 2007.

use strict;
my ($oldfile,$newfile);
my ($oldprefix,$newprefix,$tmpprefix);
my ($line,$all,%labels,@labels);
my ($chap,$sec,$ssec,$sssec);
my ($root,$eq,$oldlabel,$newlabel);

if ($#ARGV < 1) {
print "usage: renumber oldfile newfile [oldprefix [newprefix] ]\n";
exit;
}

# Extract command line arguments
$oldfile = $ARGV[0];
$newfile = $ARGV[1];
$oldprefix = ($ARGV[2] or 'eq:');	# Use 'eq:' as default prefix for equation labels
$newprefix = ($ARGV[3] or $oldprefix);	# Use old prefix as default for new prefix

# Open input and output files
open(OF, $oldfile) or die "$!";
open(NF, ">$newfile") or die "$!";

# Initialize
$tmpprefix = $oldprefix.'%';
$chap = 0;
$all = '';

# read in each line of the file
while ($line = ) {
$all .= $line;	# Store the entire file in the string $all
# Look for section headings or equation labels
if ($line =~ /\\layout Chapter/) {
	$chap += 1;
	$root = $chap;
	$sec = 0;
	$eq = 0;
} elsif ($line =~ /\\layout Section/) {
	$sec +=1;
	if ($chap != 0) {
	$root = join('.',$chap,$sec);
	} else {
	$root = $sec;
	}
	$ssec = 0;
	$eq = 0;
} elsif ($line =~ /\\layout Subsection/) {
	$ssec +=1;
	if ($chap != 0) {
	$root = join('.',$chap,$sec,$ssec);
	} else {
	$root = join('.',$sec,$ssec);
	}
	$sssec = 0;
	$eq = 0;
} elsif ($line =~ /\\layout Subsubsection/) {
	$sssec +=1;
	if ($chap != 0) {
	$root = join('.',$chap,$sec,$ssec,$sssec);
	} else {
	$root = join('.',$sec,$ssec,$sssec);
	}
	$eq = 0;
} elsif ($line =~ /(\\label)(\{$oldprefix.*\})\\/) {
# Look for an equation label.
# This regexp assumes that the equation label is followed by a backslash,
# e.g., as in "\label{eq:5-2}\end{equation}".  It uses the backslash in \end
# to terminate the match.
	$oldlabel = $2;
	$eq += 1;
# Use a temporary prefix for the new label, in case the new prefix
# is the same as the old prefix, which might cause two different
# equations to temporarily share the same label.
	$newlabel = "{$tmpprefix$root.$eq}";
#	print "Old label: $oldlabel, New label: $newlabel\n";
# Store the equation label and its replacement in %labels
	$labels{$oldlabel} = $newlabel;
}
}

# Check to see if any equation labels were found
@labels = keys %labels;
if ($#labels == -1) {die "No equation labels found!\n"};

# Do the global search and replace and save the results into a new file
print "Searching and replacing...\n";
for $oldlabel (@labels) {
$newlabel = $labels{$oldlabel};
$all =~ s/$oldlabel/$newlabel/g;
}
# Change the temporary equation prefix to the new prefix
$all =~ s/$tmpprefix/$newprefix/g;
print NF $all;

close(OF);
close(NF);