Convert LyX to MS Word XML

2014-07-04 Thread Wilfried
Hello,
I just came across a converter which i wasn't aware of before.
- - - citation begin - - -
tex2word converts LaTeX source documents into Office Open XML format
introduced in Microsoft Word 2007 without any intermediary steps.
Emphasis is put on equations, which are traditionally typeset in LaTeX
but occasionally have to be transferred to Word to meet requirements set
by publishers. 
[...]
tex2word is in an early stage of development. Development has focused on
converting tex files generated by the LyX document processing system
into Word Open XML files.
- - - citation end - - -

Source:
http://hunyadi.info.hu/levente/en/21-tex2word

Regards
-- 
Wilfried Hennings



Convert LyX to MS Word XML

2014-07-04 Thread Wilfried
Hello,
I just came across a converter which i wasn't aware of before.
- - - citation begin - - -
tex2word converts LaTeX source documents into Office Open XML format
introduced in Microsoft Word 2007 without any intermediary steps.
Emphasis is put on equations, which are traditionally typeset in LaTeX
but occasionally have to be transferred to Word to meet requirements set
by publishers. 
[...]
tex2word is in an early stage of development. Development has focused on
converting tex files generated by the LyX document processing system
into Word Open XML files.
- - - citation end - - -

Source:
http://hunyadi.info.hu/levente/en/21-tex2word

Regards
-- 
Wilfried Hennings



Convert LyX to MS Word XML

2014-07-04 Thread Wilfried
Hello,
I just came across a converter which i wasn't aware of before.
- - - citation begin - - -
tex2word converts LaTeX source documents into Office Open XML format
introduced in Microsoft Word 2007 without any intermediary steps.
Emphasis is put on equations, which are traditionally typeset in LaTeX
but occasionally have to be transferred to Word to meet requirements set
by publishers. 
[...]
tex2word is in an early stage of development. Development has focused on
converting tex files generated by the LyX document processing system
into Word Open XML files.
- - - citation end - - -

Source:
http://hunyadi.info.hu/levente/en/21-tex2word

Regards
-- 
Wilfried Hennings



Re: The tyranny of the APA Manual (more or less on topic)

2013-08-26 Thread Wilfried
John Kane wrote:

 I was poking around the Zotero site trying to see if there was a way to get a 
 specific APA citation format [Author (date)] which is easy enough in LyX or 
 LaTeX to work in a word processor such as AOO Writer or MS Word[1]. Well 
 actually  I was finding that Zotero inserts the citation in (Author, Date) 
 format without allowing modifications as one can when inserting from a bibtex 
 file and hoped to find a way to avoid having to go back and edit later if it 
 could be done in a word processor.
[...] 
 1. The answer was no, Zotero does not do this but there is a reasonable work 
 around: Just type the Author part and insert the reference with author 
 suppressed. 

You can easily edit Zotero's style file to make it insert the required
parentheses. 
To edit Zotero's style file: 
- use a text editor which can handle UTF-8 files
- do not overwrite the original style file but save the changed file
with a different name and also change the style name in the header part.

You can contact me for further questions by PM.
-- 
Wilfried Hennings
whiskey hotel underscore november golf at golf mike xray dot delta echo



Re: The tyranny of the APA Manual (more or less on topic)

2013-08-26 Thread Wilfried
John Kane wrote:

 I was poking around the Zotero site trying to see if there was a way to get a 
 specific APA citation format [Author (date)] which is easy enough in LyX or 
 LaTeX to work in a word processor such as AOO Writer or MS Word[1]. Well 
 actually  I was finding that Zotero inserts the citation in (Author, Date) 
 format without allowing modifications as one can when inserting from a bibtex 
 file and hoped to find a way to avoid having to go back and edit later if it 
 could be done in a word processor.
[...] 
 1. The answer was no, Zotero does not do this but there is a reasonable work 
 around: Just type the Author part and insert the reference with author 
 suppressed. 

You can easily edit Zotero's style file to make it insert the required
parentheses. 
To edit Zotero's style file: 
- use a text editor which can handle UTF-8 files
- do not overwrite the original style file but save the changed file
with a different name and also change the style name in the header part.

You can contact me for further questions by PM.
-- 
Wilfried Hennings
whiskey hotel underscore november golf at golf mike xray dot delta echo



Re: The tyranny of the APA Manual (more or less on topic)

2013-08-26 Thread Wilfried
John Kane wrote:

> I was poking around the Zotero site trying to see if there was a way to get a 
> specific APA citation format [Author (date)] which is easy enough in LyX or 
> LaTeX to work in a word processor such as AOO Writer or MS Word[1]. Well 
> actually  I was finding that Zotero inserts the citation in (Author, Date) 
> format without allowing modifications as one can when inserting from a bibtex 
> file and hoped to find a way to avoid having to go back and edit later if it 
> could be done in a word processor.
>[...] 
> 1. The answer was no, Zotero does not do this but there is a reasonable work 
> around: Just type the Author part and insert the reference with author 
> suppressed. 

You can easily edit Zotero's style file to make it insert the required
parentheses. 
To edit Zotero's style file: 
- use a text editor which can handle UTF-8 files
- do not overwrite the original style file but save the changed file
with a different name and also change the style name in the header part.

You can contact me for further questions by PM.
-- 
Wilfried Hennings
whiskey hotel underscore november golf at golf mike xray dot delta echo



Re: configuring latex2rtf with LyX 2

2013-02-13 Thread Wilfried
Justin Wood wrote:
 
  Could the problem be that I'm using XeTeX rather than default LaTeX?
 
 I think I answered my own question there. It seems to come down to that issue:
 no easy route from XeTeX to LaTeX for latex2rtf to work. Kinda obvious I 
 guess!

I have no answer to your original question (how to set up latex2rtf in
LyX), but want to point out that latex2rtf itself doesn't care whether
the document is designed for LaTeX of XeTeX -- I recently converted a
XeTeX document with latex2rtf. Successful conversion rather depends on
whether the document restricts to the packages supported by latex2rtf.

The only caveat is that the current distribution of latex2rtf can
convert equations of a document needing XeTeX to rtf (EQ fields) but not
to bitmaps or eps, because the script latex2png only tries latex or
pdflatex. I already modified the latex2png script so that it now also
tries xetex, but this is not yet in the latex2rtf distribution, only in
the svn branch on sourceforge.

Regards
-- 
Wilfried Hennings



Re: configuring latex2rtf with LyX 2

2013-02-13 Thread Wilfried
Justin Wood wrote:
 
  Could the problem be that I'm using XeTeX rather than default LaTeX?
 
 I think I answered my own question there. It seems to come down to that issue:
 no easy route from XeTeX to LaTeX for latex2rtf to work. Kinda obvious I 
 guess!

I have no answer to your original question (how to set up latex2rtf in
LyX), but want to point out that latex2rtf itself doesn't care whether
the document is designed for LaTeX of XeTeX -- I recently converted a
XeTeX document with latex2rtf. Successful conversion rather depends on
whether the document restricts to the packages supported by latex2rtf.

The only caveat is that the current distribution of latex2rtf can
convert equations of a document needing XeTeX to rtf (EQ fields) but not
to bitmaps or eps, because the script latex2png only tries latex or
pdflatex. I already modified the latex2png script so that it now also
tries xetex, but this is not yet in the latex2rtf distribution, only in
the svn branch on sourceforge.

Regards
-- 
Wilfried Hennings



Re: configuring latex2rtf with LyX 2

2013-02-13 Thread Wilfried
Justin Wood wrote:
 
> > Could the problem be that I'm using XeTeX rather than default LaTeX?
> 
> I think I answered my own question there. It seems to come down to that issue:
> no easy route from XeTeX to LaTeX for latex2rtf to work. Kinda obvious I 
> guess!

I have no answer to your original question (how to set up latex2rtf in
LyX), but want to point out that latex2rtf itself doesn't care whether
the document is designed for LaTeX of XeTeX -- I recently converted a
XeTeX document with latex2rtf. Successful conversion rather depends on
whether the document restricts to the packages supported by latex2rtf.

The only caveat is that the current distribution of latex2rtf can
convert equations of a document needing XeTeX to rtf (EQ fields) but not
to bitmaps or eps, because the script latex2png only tries latex or
pdflatex. I already modified the latex2png script so that it now also
tries xetex, but this is not yet in the latex2rtf distribution, only in
the svn branch on sourceforge.

Regards
-- 
Wilfried Hennings



Re: Word won't open simplest LyXHTML file

2013-01-25 Thread Wilfried
Jerry wrote:

 
 On Jan 25, 2013, at 1:27 AM, Murat Yildizoglu wrote:
 
  I have in the pas used Tex2word from Chikrii software with success. 
  Equationa are correctly translated in this case, figures not, 
  but I prefer to include them in the optimal format for Word myself. 
  This is commercial software (a plugin for Word), but it is not expensive 
  and has even a lower education pricing policy. 
  It uses MathType (but the free version of it is enough). 
  Murat
  
 Thanks for that information, Murat. Indeed, Tex2word was one of the 
 Windows products that I saw near the top of a Google search.
 

 One question about Word that I have not answered for myself 
 is the relation between (on the Mac) Word 2011 and older versions of Word. 
 The 2011 version has a built-in equation-setting function 
 while older versions of Word used MathType, a separate program. 
 I think this development has paralleled Word on Windows. 
 So my question is, is the newer version just a better-integrated version 
 of MathType or did Microsoft make their own? 
 I gather that they are not compatible with one another.

No, they aren't (same in the Word-for-Windows since version 2007). They
are completely different and it is not possible (afaik) to convert one
into the other, and I also don't know any converter which is able to
convert the new format into anything else - although the notation for
inputting equations in the new editor is much like LaTeX. 
The old one is still delivered with Word 2007 and 2010 for Windows (I
don't know about the Mac) but only available on the ribbon if the file
format is set to Word 97-2003-document.
Some publishers ask not to use the new equation editor but the old
(MathType compatible) one when submitting an article as Word file.

-- 
Wilfried Hennings



Re: Word won't open simplest LyXHTML file

2013-01-25 Thread Wilfried
Jerry wrote:

 
 On Jan 25, 2013, at 1:27 AM, Murat Yildizoglu wrote:
 
  I have in the pas used Tex2word from Chikrii software with success. 
  Equationa are correctly translated in this case, figures not, 
  but I prefer to include them in the optimal format for Word myself. 
  This is commercial software (a plugin for Word), but it is not expensive 
  and has even a lower education pricing policy. 
  It uses MathType (but the free version of it is enough). 
  Murat
  
 Thanks for that information, Murat. Indeed, Tex2word was one of the 
 Windows products that I saw near the top of a Google search.
 

 One question about Word that I have not answered for myself 
 is the relation between (on the Mac) Word 2011 and older versions of Word. 
 The 2011 version has a built-in equation-setting function 
 while older versions of Word used MathType, a separate program. 
 I think this development has paralleled Word on Windows. 
 So my question is, is the newer version just a better-integrated version 
 of MathType or did Microsoft make their own? 
 I gather that they are not compatible with one another.

No, they aren't (same in the Word-for-Windows since version 2007). They
are completely different and it is not possible (afaik) to convert one
into the other, and I also don't know any converter which is able to
convert the new format into anything else - although the notation for
inputting equations in the new editor is much like LaTeX. 
The old one is still delivered with Word 2007 and 2010 for Windows (I
don't know about the Mac) but only available on the ribbon if the file
format is set to Word 97-2003-document.
Some publishers ask not to use the new equation editor but the old
(MathType compatible) one when submitting an article as Word file.

-- 
Wilfried Hennings



Re: Word won't open simplest LyXHTML file

2013-01-25 Thread Wilfried
Jerry wrote:

> 
> On Jan 25, 2013, at 1:27 AM, Murat Yildizoglu wrote:
> 
> > I have in the pas used Tex2word from Chikrii software with success. 
> > Equationa are correctly translated in this case, figures not, 
> > but I prefer to include them in the optimal format for Word myself. 
> > This is commercial software (a plugin for Word), but it is not expensive 
> > and has even a lower education pricing policy. 
> > It uses MathType (but the free version of it is enough). 
> > Murat
> > 
> Thanks for that information, Murat. Indeed, Tex2word was one of the 
> Windows products that I saw near the top of a Google search.
> 

> One question about Word that I have not answered for myself 
> is the relation between (on the Mac) Word 2011 and older versions of Word. 
> The 2011 version has a built-in equation-setting function 
> while older versions of Word used MathType, a separate program. 
> I think this development has paralleled Word on Windows. 
> So my question is, is the newer version just a better-integrated version 
> of MathType or did Microsoft make their own? 
> I gather that they are not compatible with one another.

No, they aren't (same in the Word-for-Windows since version 2007). They
are completely different and it is not possible (afaik) to convert one
into the other, and I also don't know any converter which is able to
convert the new format into anything else - although the notation for
inputting equations in the new editor is much like LaTeX. 
The old one is still delivered with Word 2007 and 2010 for Windows (I
don't know about the Mac) but only available on the ribbon if the file
format is set to "Word 97-2003-document".
Some publishers ask not to use the new equation editor but the old
(MathType compatible) one when submitting an article as Word file.

-- 
Wilfried Hennings



Re: HTML and RTF: Very basic import and export strategy

2012-05-15 Thread Wilfried
Rashif Ray Rahman sc...@archlinux.org wrote:

 Either rtf2latexe does a very bad job, or I'm missing some tips on its usage.

Or it's not the latest version? Current version is 2.0.1, see
http://sourceforge.net/projects/rtf2latex2e/

 Heading 1 gets translated to Section* instead of Section, and it'd be
 good if Title were mapped to Chapter and not left alone. What's more,
 anything more than a Heading 3 gets no section at all. I believe up to
 Heading 5 can be mapped with Paragraph and Subparagraph. 

How shall rtf2latex2e know that YOU want it THIS way?
The heading conversion above is default setting, but it can be changed.
In the subfolder ./pref there is a file r2l-map in which it is specified
how headings are to be converted.

 What's worse
 is that there are plenty of forced spaces here, there and everywhere,
 along with some other gibberish that I did not want LaTeX to give me.

What are the rtf2latex2e calling parameters?
Maybe you should call rtf2latex2e with the option -p1, not higher, see
documentation.

 When I typed the document(s) in Word or Writer, [...]

That is a big difference. rtf2latex2e is aimed at Word's rtf output.
Rtf from OOo and LibreOffice is broken.

Hope that helps,
--
Wilfried Hennings



Re: HTML and RTF: Very basic import and export strategy

2012-05-15 Thread Wilfried
Rashif Ray Rahman sc...@archlinux.org wrote:

 Either rtf2latexe does a very bad job, or I'm missing some tips on its usage.

Or it's not the latest version? Current version is 2.0.1, see
http://sourceforge.net/projects/rtf2latex2e/

 Heading 1 gets translated to Section* instead of Section, and it'd be
 good if Title were mapped to Chapter and not left alone. What's more,
 anything more than a Heading 3 gets no section at all. I believe up to
 Heading 5 can be mapped with Paragraph and Subparagraph. 

How shall rtf2latex2e know that YOU want it THIS way?
The heading conversion above is default setting, but it can be changed.
In the subfolder ./pref there is a file r2l-map in which it is specified
how headings are to be converted.

 What's worse
 is that there are plenty of forced spaces here, there and everywhere,
 along with some other gibberish that I did not want LaTeX to give me.

What are the rtf2latex2e calling parameters?
Maybe you should call rtf2latex2e with the option -p1, not higher, see
documentation.

 When I typed the document(s) in Word or Writer, [...]

That is a big difference. rtf2latex2e is aimed at Word's rtf output.
Rtf from OOo and LibreOffice is broken.

Hope that helps,
--
Wilfried Hennings



Re: HTML and RTF: Very basic import and export strategy

2012-05-15 Thread Wilfried
Rashif Ray Rahman <sc...@archlinux.org> wrote:

> Either rtf2latexe does a very bad job, or I'm missing some tips on its usage.

Or it's not the latest version? Current version is 2.0.1, see
http://sourceforge.net/projects/rtf2latex2e/

> Heading 1 gets translated to Section* instead of Section, and it'd be
> good if Title were mapped to Chapter and not left alone. What's more,
> anything more than a Heading 3 gets no section at all. I believe up to
> Heading 5 can be mapped with Paragraph and Subparagraph. 

How shall rtf2latex2e know that YOU want it THIS way?
The heading conversion above is default setting, but it can be changed.
In the subfolder ./pref there is a file r2l-map in which it is specified
how headings are to be converted.

> What's worse
> is that there are plenty of forced spaces here, there and everywhere,
> along with some other gibberish that I did not want LaTeX to give me.

What are the rtf2latex2e calling parameters?
Maybe you should call rtf2latex2e with the option -p1, not higher, see
documentation.

> When I typed the document(s) in Word or Writer, [...]

That is a big difference. rtf2latex2e is aimed at Word's rtf output.
Rtf from OOo and LibreOffice is broken.

Hope that helps,
--
Wilfried Hennings



Re: LyX export to RTF

2012-04-22 Thread Wilfried
Janwillem van Dijk jwevand...@xs4all.nl wrote:

 Thanks Wilfried, I thought already of the newer versions. However, I 
 cannot compile the source on Linux; qmake just does nothing. I als tried 
 2.1.1 on Windows but there my problems persist. As an example the LaTeX 
 line (from export as pdflatex):
 
 \item Use operational quantities defined in ICRU51: $H_{\mathrm{p}}(0.07)$,
 $H_{\mathrm{p}}(3)$ and $H_{\mathrm{p}}(10)$ 
 \citep{international_commission_on_radiation_units_and_measurements_quantities_1993}
  
 \item Determine dosimeter characteristic using radiation qualities and 
 phantoms as defined by ISO (ISO 4037-3 and 12794) 
 \citep{international_organization_for_standardization_x_1993,international_organization_for_standardization_reference_2000}
 
 complains about the unknown command \citep and gives in Word:
 Use operational quantities defined in ICRU51: Hp(0.07), Hp(3) and Hp(10) 
 international\s\do5(c)ommission\s\do5(o)n\s\do5(r)adiation\s\do5(u)nits\s\do5(a)nd\s\do5(m)easurements\s\do5(q)uantities\s\do5(1)993
  
 
 (subscripts in the inline formula are not really beautiful either)
 
 The References list is absolutely crap, just copies the entire BibTeX 
 file somehow [...]

I do not remember how latex2rtf is called from LyX. 
latex2rtf requires that the LaTeX document to be converted was
completely and successfully compiled by LaTeX, that means that the .tex
file must be accompanied by up-to-date .aux and .bbl files.
So before running latex2rtf, the sequence
latex inputfile
bibtex inputfile
latex inputfile
latex inputfile
has to be executed to resolve all bibliographic references and cross
references.
Nevertheless, something like \s\do5(c)... should never be displayed in
Word. If it does, it means that a brace { or } or a backslash is missing
or misplaced in the rtf output.
For bugfixing it would be helpful if you send me a sample file which
shows the problem, by personal mail.
Regards, Wilfried
--
Wilfried Hennings
whiskey hotel underscore november golf at golf mike xray dot delta echo



Re: LyX export to RTF

2012-04-22 Thread Wilfried
Janwillem van Dijk jwevand...@xs4all.nl wrote:

 Thanks Wilfried, I thought already of the newer versions. However, I 
 cannot compile the source on Linux; qmake just does nothing. I als tried 
 2.1.1 on Windows but there my problems persist. As an example the LaTeX 
 line (from export as pdflatex):
 
 \item Use operational quantities defined in ICRU51: $H_{\mathrm{p}}(0.07)$,
 $H_{\mathrm{p}}(3)$ and $H_{\mathrm{p}}(10)$ 
 \citep{international_commission_on_radiation_units_and_measurements_quantities_1993}
  
 \item Determine dosimeter characteristic using radiation qualities and 
 phantoms as defined by ISO (ISO 4037-3 and 12794) 
 \citep{international_organization_for_standardization_x_1993,international_organization_for_standardization_reference_2000}
 
 complains about the unknown command \citep and gives in Word:
 Use operational quantities defined in ICRU51: Hp(0.07), Hp(3) and Hp(10) 
 international\s\do5(c)ommission\s\do5(o)n\s\do5(r)adiation\s\do5(u)nits\s\do5(a)nd\s\do5(m)easurements\s\do5(q)uantities\s\do5(1)993
  
 
 (subscripts in the inline formula are not really beautiful either)
 
 The References list is absolutely crap, just copies the entire BibTeX 
 file somehow [...]

I do not remember how latex2rtf is called from LyX. 
latex2rtf requires that the LaTeX document to be converted was
completely and successfully compiled by LaTeX, that means that the .tex
file must be accompanied by up-to-date .aux and .bbl files.
So before running latex2rtf, the sequence
latex inputfile
bibtex inputfile
latex inputfile
latex inputfile
has to be executed to resolve all bibliographic references and cross
references.
Nevertheless, something like \s\do5(c)... should never be displayed in
Word. If it does, it means that a brace { or } or a backslash is missing
or misplaced in the rtf output.
For bugfixing it would be helpful if you send me a sample file which
shows the problem, by personal mail.
Regards, Wilfried
--
Wilfried Hennings
whiskey hotel underscore november golf at golf mike xray dot delta echo



Re: LyX export to RTF

2012-04-22 Thread Wilfried
Janwillem van Dijk <jwevand...@xs4all.nl> wrote:

> Thanks Wilfried, I thought already of the newer versions. However, I 
> cannot compile the source on Linux; qmake just does nothing. I als tried 
> 2.1.1 on Windows but there my problems persist. As an example the LaTeX 
> line (from export as pdflatex):
> 
> \item Use operational quantities defined in ICRU51: $H_{\mathrm{p}}(0.07)$,
> $H_{\mathrm{p}}(3)$ and $H_{\mathrm{p}}(10)$ 
> \citep{international_commission_on_radiation_units_and_measurements_quantities_1993}
>  
> \item Determine dosimeter characteristic using radiation qualities and 
> phantoms as defined by ISO (ISO 4037-3 and 12794) 
> \citep{international_organization_for_standardization_x_1993,international_organization_for_standardization_reference_2000}
> 
> complains about the unknown command \citep and gives in Word:
> Use operational quantities defined in ICRU51: Hp(0.07), Hp(3) and Hp(10) 
> international\s\do5(c)ommission\s\do5(o)n\s\do5(r)adiation\s\do5(u)nits\s\do5(a)nd\s\do5(m)easurements\s\do5(q)uantities\s\do5(1)993
>  
> 
> (subscripts in the inline formula are not really beautiful either)
> 
> The References list is absolutely crap, just copies the entire BibTeX 
> file somehow [...]

I do not remember how latex2rtf is called from LyX. 
latex2rtf requires that the LaTeX document to be converted was
completely and successfully compiled by LaTeX, that means that the .tex
file must be accompanied by up-to-date .aux and .bbl files.
So before running latex2rtf, the sequence
latex inputfile
bibtex inputfile
latex inputfile
latex inputfile
has to be executed to resolve all bibliographic references and cross
references.
Nevertheless, something like \s\do5(c)... should never be displayed in
Word. If it does, it means that a brace { or } or a backslash is missing
or misplaced in the rtf output.
For bugfixing it would be helpful if you send me a sample file which
shows the problem, by personal mail.
Regards, Wilfried
--
Wilfried Hennings
whiskey hotel underscore november golf at golf mike xray dot delta echo



Re: LyX export to RTF

2012-04-21 Thread Wilfried
Janwillem van Dijk wrote:

 Unfortunately removing -p has no effect and both LibreOffice  3.5.2.2 
 and Word 2007 give the same result.
Then something is broken.
By the way, latex2rtf 1.9.19 is quite old (released Nov 2007).
The current Unix version 2.1.0 was released March 2010, and there is
2.1.1 beta (Windows only, but Unix version can also be made available)
of Feb 2011.

Regards, Wilfried



Re: LyX export to RTF

2012-04-21 Thread Wilfried
Janwillem van Dijk wrote:

 Unfortunately removing -p has no effect and both LibreOffice  3.5.2.2 
 and Word 2007 give the same result.
Then something is broken.
By the way, latex2rtf 1.9.19 is quite old (released Nov 2007).
The current Unix version 2.1.0 was released March 2010, and there is
2.1.1 beta (Windows only, but Unix version can also be made available)
of Feb 2011.

Regards, Wilfried



Re: LyX export to RTF

2012-04-21 Thread Wilfried
Janwillem van Dijk wrote:

> Unfortunately removing -p has no effect and both LibreOffice  3.5.2.2 
> and Word 2007 give the same result.
Then something is broken.
By the way, latex2rtf 1.9.19 is quite old (released Nov 2007).
The current Unix version 2.1.0 was released March 2010, and there is
2.1.1 beta (Windows only, but Unix version can also be made available)
of Feb 2011.

Regards, Wilfried



Re: LyX export to RTF

2012-04-20 Thread Wilfried
Janwillem van Dijk jwevand...@xs4all.nl wrote:

 I have a paper written in Lyx that when exported to rtf produces more or 
 less garbage. Everywhere where there is inline math the text get 
 corruptes. Also the references in the text are corruped. The references 
 come from a BibTeX that is an export from Zotero.
 
 an example:
 
 Use terms and definitions issued by the Joint Committee on Guides in 
 Metrology, JCGM 
 joint\s\do5(c)ommittee\s\do5(f)or\s\do5(g)uides\s\do5(i)n\s\do5(m)etrology\s 
 [...]
 
 or:
 
 Use operational quantities defined in ICRU51: /H/\s\do5(/p/)\(0.07\), 
 /H/\s\do5(/p/)\(3\) and /H/\s\do5(/p/)\(10\)
 
 where it should be Hp(0.07) etcetra with H italic and p roman subscript 
 coming from $H_{\mathrm{p}}(0.07)$

Did you open the rtf file in OpenOffice or LibreOffice for seeing the
garbage?
Forget about OO/LO, rtf import to OO and LO is severely broken.
The rtf will open correctly only in MS Word.

Wilfried (one of the maintainers of latex2rtf)



Re: LyX export to RTF

2012-04-20 Thread Wilfried
Janwillem van Dijk jwevand...@xs4all.nl wrote:

 I have a paper written in Lyx that when exported to rtf produces more or 
 less garbage. Everywhere where there is inline math the text get 
 corruptes. Also the references in the text are corruped. The references 
 come from a BibTeX that is an export from Zotero.
 
 an example:
 
 Use terms and definitions issued by the Joint Committee on Guides in 
 Metrology, JCGM 
 joint\s\do5(c)ommittee\s\do5(f)or\s\do5(g)uides\s\do5(i)n\s\do5(m)etrology\s 
 [...]
 
 or:
 
 Use operational quantities defined in ICRU51: /H/\s\do5(/p/)\(0.07\), 
 /H/\s\do5(/p/)\(3\) and /H/\s\do5(/p/)\(10\)
 
 where it should be Hp(0.07) etcetra with H italic and p roman subscript 
 coming from $H_{\mathrm{p}}(0.07)$

Did you open the rtf file in OpenOffice or LibreOffice for seeing the
garbage?
Forget about OO/LO, rtf import to OO and LO is severely broken.
The rtf will open correctly only in MS Word.

Wilfried (one of the maintainers of latex2rtf)



Re: LyX export to RTF

2012-04-20 Thread Wilfried
Janwillem van Dijk <jwevand...@xs4all.nl> wrote:

> I have a paper written in Lyx that when exported to rtf produces more or 
> less garbage. Everywhere where there is inline math the text get 
> corruptes. Also the references in the text are corruped. The references 
> come from a BibTeX that is an export from Zotero.
> 
> an example:
> 
> Use terms and definitions issued by the Joint Committee on Guides in 
> Metrology, JCGM 
> joint\s\do5(c)ommittee\s\do5(f)or\s\do5(g)uides\s\do5(i)n\s\do5(m)etrology\s 
> [...]
> 
> or:
> 
> Use operational quantities defined in ICRU51: /H/\s\do5(/p/)\(0.07\), 
> /H/\s\do5(/p/)\(3\) and /H/\s\do5(/p/)\(10\)
> 
> where it should be Hp(0.07) etcetra with H italic and p roman subscript 
> coming from $H_{\mathrm{p}}(0.07)$

Did you open the rtf file in OpenOffice or LibreOffice for seeing the
garbage?
Forget about OO/LO, rtf import to OO and LO is severely broken.
The rtf will open correctly only in MS Word.

Wilfried (one of the maintainers of latex2rtf)



Re: copying from MS Word to LyX

2012-01-10 Thread Wilfried
Murat Yildizoglu myi...@gmail.com wrote:

 You could check rtftolatex, and openoffice (oolatex) based solutions too. I
 use word2tex from Chikrii Software (it is a commercial soft, with an
 interesting education price), it allows me to save in latex from Word. You
 can customize what you want to include in the translation (I keep only the
 essential elements, leaving the rest to Lyx).

Hi,

I want to point out that rtf2latex, OpenOffice and word2tex are only
able to convert equations created by Microsoft Equation Editor or
MathType. There are at least two other ways to write equations in Word:
Using EQ field functions (seldom used by Word users, but used as default
by the latex2rtf converter), and using the new Word 2007 - 2010 equation
editor (having a syntax similar to LaTeX). 
The latter two equation forms can neither be converted by rtf2latex, nor
by OpenOffice, nor by word2tex. Even at least one publisher of
scientific journals (I don't remember who) requests authors NOT to use
the new Word 2007 - 2010 equation editor but the old equation editor or
MathType.

This having said, the three ways all have their advantages and
disadvantages, apart from the fact that they all create LaTeX code which
is quite different from what a typical LaTeX user would write, and I
have no experience of how well this code imports into LyX.

Wilfried
 
 2012/1/9 Leslaw Bieniasz nbbie...@cyf-kr.edu.pl
 
  I am new to LaTeX and LyX. I have a document written in MS Word, containing
  lots of math equations plus text, and I want to copy it into LyX. Is there
  any
  way to do it? I see that this issue was discussed in the past in this
  forum,
  and the suggestion was to write the doc file in the html format, and then
  import the html file into LyX. However, I do not see any option in LyX, to
  import or read html. So, how can I make the conversion?
 
  I want to use the Springer svmono class for the final document. I have
  installed the class. Will that be possible?





Re: copying from MS Word to LyX

2012-01-10 Thread Wilfried
Murat Yildizoglu myi...@gmail.com wrote:

 You could check rtftolatex, and openoffice (oolatex) based solutions too. I
 use word2tex from Chikrii Software (it is a commercial soft, with an
 interesting education price), it allows me to save in latex from Word. You
 can customize what you want to include in the translation (I keep only the
 essential elements, leaving the rest to Lyx).

Hi,

I want to point out that rtf2latex, OpenOffice and word2tex are only
able to convert equations created by Microsoft Equation Editor or
MathType. There are at least two other ways to write equations in Word:
Using EQ field functions (seldom used by Word users, but used as default
by the latex2rtf converter), and using the new Word 2007 - 2010 equation
editor (having a syntax similar to LaTeX). 
The latter two equation forms can neither be converted by rtf2latex, nor
by OpenOffice, nor by word2tex. Even at least one publisher of
scientific journals (I don't remember who) requests authors NOT to use
the new Word 2007 - 2010 equation editor but the old equation editor or
MathType.

This having said, the three ways all have their advantages and
disadvantages, apart from the fact that they all create LaTeX code which
is quite different from what a typical LaTeX user would write, and I
have no experience of how well this code imports into LyX.

Wilfried
 
 2012/1/9 Leslaw Bieniasz nbbie...@cyf-kr.edu.pl
 
  I am new to LaTeX and LyX. I have a document written in MS Word, containing
  lots of math equations plus text, and I want to copy it into LyX. Is there
  any
  way to do it? I see that this issue was discussed in the past in this
  forum,
  and the suggestion was to write the doc file in the html format, and then
  import the html file into LyX. However, I do not see any option in LyX, to
  import or read html. So, how can I make the conversion?
 
  I want to use the Springer svmono class for the final document. I have
  installed the class. Will that be possible?





Re: copying from MS Word to LyX

2012-01-10 Thread Wilfried
Murat Yildizoglu <myi...@gmail.com> wrote:

> You could check rtftolatex, and openoffice (oolatex) based solutions too. I
> use word2tex from Chikrii Software (it is a commercial soft, with an
> interesting education price), it allows me to save in latex from Word. You
> can customize what you want to include in the translation (I keep only the
> essential elements, leaving the rest to Lyx).

Hi,

I want to point out that rtf2latex, OpenOffice and word2tex are only
able to convert equations created by Microsoft Equation Editor or
MathType. There are at least two other ways to write equations in Word:
Using EQ field functions (seldom used by Word users, but used as default
by the latex2rtf converter), and using the new Word 2007 - 2010 equation
editor (having a syntax similar to LaTeX). 
The latter two equation forms can neither be converted by rtf2latex, nor
by OpenOffice, nor by word2tex. Even at least one publisher of
scientific journals (I don't remember who) requests authors NOT to use
the new Word 2007 - 2010 equation editor but the old equation editor or
MathType.

This having said, the three ways all have their advantages and
disadvantages, apart from the fact that they all create LaTeX code which
is quite different from what a typical LaTeX user would write, and I
have no experience of how well this code imports into LyX.

Wilfried
 
> 2012/1/9 Leslaw Bieniasz <nbbie...@cyf-kr.edu.pl>
> >
> > I am new to LaTeX and LyX. I have a document written in MS Word, containing
> > lots of math equations plus text, and I want to copy it into LyX. Is there
> > any
> > way to do it? I see that this issue was discussed in the past in this
> > forum,
> > and the suggestion was to write the doc file in the html format, and then
> > import the html file into LyX. However, I do not see any option in LyX, to
> > import or read html. So, how can I make the conversion?
> >
> > I want to use the Springer svmono class for the final document. I have
> > installed the class. Will that be possible?





Re: Ann: rtf2latex2e 2.0.1 released

2011-02-03 Thread Wilfried
Wilfried wrote:

 Hello all,
 a major update for the rtf2latex2e converter is available at
 http://sourceforge.net/projects/rtf2latex2e

Sorry, I also should mention that the executable is now named rtf2latex
(without the 2e)


--
Wilfried Hennings



Re: Ann: rtf2latex2e 2.0.1 released

2011-02-03 Thread Wilfried
Wilfried wrote:

 Hello all,
 a major update for the rtf2latex2e converter is available at
 http://sourceforge.net/projects/rtf2latex2e

Sorry, I also should mention that the executable is now named rtf2latex
(without the 2e)


--
Wilfried Hennings



Re: Ann: rtf2latex2e 2.0.1 released

2011-02-03 Thread Wilfried
Wilfried wrote:

> Hello all,
> a major update for the rtf2latex2e converter is available at
> http://sourceforge.net/projects/rtf2latex2e

Sorry, I also should mention that the executable is now named rtf2latex
(without the "2e")


--
Wilfried Hennings



Re: Import von Excel-Tabellen in Lyx

2010-07-30 Thread Wilfried
Paul Cvancara cvanc...@faw.uni-freiburg.de wrote:

 ich sitze zur Zeit an meiner Bachelorarbeit und versuche Messdaten, welche
 ich in Excel bearbeitet habe in Lyx zu importieren. Also besser gesagt,
 ganze Tabellen. Wenn ich die Tabelle kopiere und in einer Lyx-Tabelle
 einfügen möchte, dann werden alle Daten in eine Zelle kopiert. Wie schaffe
 ich es, dass Zelle für Zelle kopiert wird?

- as already was written in a reply, export to csv then import,
or

- use excel2latex 
http://dante.ctan.org/tex-archive/help/Catalogue/entries/excel2latex.html
A possible problem and its solution is discussed in 
http://www.latex-community.org/forum/viewtopic.php?f=5p=28364

HTH

--
Wilfried Hennings



Re: Import von Excel-Tabellen in Lyx

2010-07-30 Thread Wilfried
Paul Cvancara cvanc...@faw.uni-freiburg.de wrote:

 ich sitze zur Zeit an meiner Bachelorarbeit und versuche Messdaten, welche
 ich in Excel bearbeitet habe in Lyx zu importieren. Also besser gesagt,
 ganze Tabellen. Wenn ich die Tabelle kopiere und in einer Lyx-Tabelle
 einfügen möchte, dann werden alle Daten in eine Zelle kopiert. Wie schaffe
 ich es, dass Zelle für Zelle kopiert wird?

- as already was written in a reply, export to csv then import,
or

- use excel2latex 
http://dante.ctan.org/tex-archive/help/Catalogue/entries/excel2latex.html
A possible problem and its solution is discussed in 
http://www.latex-community.org/forum/viewtopic.php?f=5p=28364

HTH

--
Wilfried Hennings



Re: Import von Excel-Tabellen in Lyx

2010-07-30 Thread Wilfried
"Paul Cvancara" <cvanc...@faw.uni-freiburg.de> wrote:

> ich sitze zur Zeit an meiner Bachelorarbeit und versuche Messdaten, welche
> ich in Excel bearbeitet habe in Lyx zu importieren. Also besser gesagt,
> ganze Tabellen. Wenn ich die Tabelle kopiere und in einer Lyx-Tabelle
> einfügen möchte, dann werden alle Daten in eine Zelle kopiert. Wie schaffe
> ich es, dass Zelle für Zelle kopiert wird?

- as already was written in a reply, export to csv then import,
or

- use excel2latex 
http://dante.ctan.org/tex-archive/help/Catalogue/entries/excel2latex.html
A possible problem and its solution is discussed in 
http://www.latex-community.org/forum/viewtopic.php?f=5=28364

HTH

--
Wilfried Hennings



Re: LyX 1.6. ~ LaTex2RTF

2009-09-23 Thread Wilfried
rgheck rgh...@bobjweil.com wrote:

 On 09/22/2009 10:14 PM, 0 wrote:
  I've used the two links below to start using LaTeX 2 RTF:
  http://wiki.lyx.org/Tips/ExportingRichTextFormatWithLaTeX2rtf#toc2
  http://latex2rtf.sourceforge.net/
 
  Rich Text Format appeared in export list. But it does not work, and says
  LyX: Cannot convert file
  An error occurred whilst running latex2rt -p -S -o newfile2.rtf
  newfile2.tex
 
  What can I do?
 
  --
  OS: Windows XP
  LyX: 1.6.4
 
 
 
 Can someone on Windows explain to O here how to run latex2rt from a 
 terminal? We need more error messages.

OK, here we go. 
I start pointing to problems which had already hit other users.

1. You (0) wrote that you used the links given.
But the first link contains several alternative descriptions how to
install latex2rtf. So: How and in which folder did you actually install
latex2rtf? 

2. How long (number of characters) is the full path to the folder where
your newfile2.tex is stored? Because latex2rt.exe uses a dos prompt,
the maximum length (including newfile2.tex) is about 256 characters,
and there also is a limitation on the number of folder nesting depth
(which I can't remember just now).

3. Which version of latex2rtf? Open a command prompt and type the
command (use the folder in which you installed it, and if the path
contains blanks as below, include it in double quotes as shown):
C:\Program Files\latex2rtf\latex2rt -version
latex2rtf should display the version info. If not, something is wrong
with the installation. 

4. If (3) displayed the version info correctly, add 
-P C:/Progra~1/latex2rtf
to the latex2rtf options in LyX. 
Does it work now?

Wilfried



Re: LyX 1.6. ~ LaTex2RTF

2009-09-23 Thread Wilfried
rgheck rgh...@bobjweil.com wrote:

 On 09/22/2009 10:14 PM, 0 wrote:
  I've used the two links below to start using LaTeX 2 RTF:
  http://wiki.lyx.org/Tips/ExportingRichTextFormatWithLaTeX2rtf#toc2
  http://latex2rtf.sourceforge.net/
 
  Rich Text Format appeared in export list. But it does not work, and says
  LyX: Cannot convert file
  An error occurred whilst running latex2rt -p -S -o newfile2.rtf
  newfile2.tex
 
  What can I do?
 
  --
  OS: Windows XP
  LyX: 1.6.4
 
 
 
 Can someone on Windows explain to O here how to run latex2rt from a 
 terminal? We need more error messages.

OK, here we go. 
I start pointing to problems which had already hit other users.

1. You (0) wrote that you used the links given.
But the first link contains several alternative descriptions how to
install latex2rtf. So: How and in which folder did you actually install
latex2rtf? 

2. How long (number of characters) is the full path to the folder where
your newfile2.tex is stored? Because latex2rt.exe uses a dos prompt,
the maximum length (including newfile2.tex) is about 256 characters,
and there also is a limitation on the number of folder nesting depth
(which I can't remember just now).

3. Which version of latex2rtf? Open a command prompt and type the
command (use the folder in which you installed it, and if the path
contains blanks as below, include it in double quotes as shown):
C:\Program Files\latex2rtf\latex2rt -version
latex2rtf should display the version info. If not, something is wrong
with the installation. 

4. If (3) displayed the version info correctly, add 
-P C:/Progra~1/latex2rtf
to the latex2rtf options in LyX. 
Does it work now?

Wilfried



Re: LyX 1.6. ~ LaTex2RTF

2009-09-23 Thread Wilfried
rgheck <rgh...@bobjweil.com> wrote:

> On 09/22/2009 10:14 PM, 0 wrote:
> > I've used the two links below to start using LaTeX 2 RTF:
> > http://wiki.lyx.org/Tips/ExportingRichTextFormatWithLaTeX2rtf#toc2
> > http://latex2rtf.sourceforge.net/
> >
> > "Rich Text Format" appeared in export list. But it does not work, and says
> > LyX: Cannot convert file
> > An error occurred whilst running latex2rt -p -S -o "newfile2.rtf"
> > "newfile2.tex"
> >
> > What can I do?
> >
> > --
> > OS: Windows XP
> > LyX: 1.6.4
> >
> >
> >
> Can someone on Windows explain to O here how to run latex2rt from a 
> terminal? We need more error messages.

OK, here we go. 
I start pointing to problems which had already hit other users.

1. You ("0") wrote that you "used" the links given.
But the first link contains several alternative descriptions how to
install latex2rtf. So: How and in which folder did you actually install
latex2rtf? 

2. How long (number of characters) is the full path to the folder where
your "newfile2.tex" is stored? Because latex2rt.exe uses a dos prompt,
the maximum length (including "newfile2.tex") is about 256 characters,
and there also is a limitation on the number of folder nesting depth
(which I can't remember just now).

3. Which version of latex2rtf? Open a command prompt and type the
command (use the folder in which you installed it, and if the path
contains blanks as below, include it in double quotes as shown):
"C:\Program Files\latex2rtf\latex2rt" -version
latex2rtf should display the version info. If not, something is wrong
with the installation. 

4. If (3) displayed the version info correctly, add 
-P C:/Progra~1/latex2rtf
to the latex2rtf options in LyX. 
Does it work now?

Wilfried



Re: Strategies for Writing Co-operation with Non-LyX Users?

2009-02-26 Thread Wilfried
Guenter Milde mi...@users.berlios.de wrote:

 On 2009-02-07, Christian Ridderström wrote:
  On Sat, 7 Feb 2009, Wolfgang Engelmann wrote:
  On Friday 06 February 2009 09:32:12 A B wrote:
 
  perhaps a live CD with a whatever-Lyx would be helpful to demonstrate 
  its merrit to those who care
 
  Actually, a complete installation of LyX, LaTeX and various software on 
  a CD could be a good idea, assuming it can be run without installing it.
  I'm not sure it's feasible though.
 
 It is certainly possible with a Linux live system (old Knoppix CDs had
 LyX/LaTeX, later ones removed it due to limited space, maybe it's back on a
 Knoppix DVD...)
 
 But how about trying to get LyX into TeXLive?

There is already a bootable, self-sustained Linux DVD available with LyX
integrated:
http://www.knoppix.org/
The homepage starts in German, for English click on the British flag.
One can download either a cdrom iso image or a dvd iso image.
According to the file packages-dvd.txt, the dvd image contains 
LyX 1.5.3-1 installed, but I haven't tested it yet.

Regards,

--
Wilfried Hennings



Re: Strategies for Writing Co-operation with Non-LyX Users?

2009-02-26 Thread Wilfried
Guenter Milde mi...@users.berlios.de wrote:

 On 2009-02-07, Christian Ridderström wrote:
  On Sat, 7 Feb 2009, Wolfgang Engelmann wrote:
  On Friday 06 February 2009 09:32:12 A B wrote:
 
  perhaps a live CD with a whatever-Lyx would be helpful to demonstrate 
  its merrit to those who care
 
  Actually, a complete installation of LyX, LaTeX and various software on 
  a CD could be a good idea, assuming it can be run without installing it.
  I'm not sure it's feasible though.
 
 It is certainly possible with a Linux live system (old Knoppix CDs had
 LyX/LaTeX, later ones removed it due to limited space, maybe it's back on a
 Knoppix DVD...)
 
 But how about trying to get LyX into TeXLive?

There is already a bootable, self-sustained Linux DVD available with LyX
integrated:
http://www.knoppix.org/
The homepage starts in German, for English click on the British flag.
One can download either a cdrom iso image or a dvd iso image.
According to the file packages-dvd.txt, the dvd image contains 
LyX 1.5.3-1 installed, but I haven't tested it yet.

Regards,

--
Wilfried Hennings



Re: Strategies for Writing Co-operation with Non-LyX Users?

2009-02-26 Thread Wilfried
Guenter Milde <mi...@users.berlios.de> wrote:

> On 2009-02-07, Christian Ridderström wrote:
> > On Sat, 7 Feb 2009, Wolfgang Engelmann wrote:
> >> On Friday 06 February 2009 09:32:12 A B wrote:
> 
> >> perhaps a live CD with a whatever-Lyx would be helpful to demonstrate 
> >> its merrit to those who care
> 
> > Actually, a complete installation of LyX, LaTeX and various software on 
> > a CD could be a good idea, assuming it can be run without installing it.
> > I'm not sure it's feasible though.
> 
> It is certainly possible with a Linux live system (old Knoppix CDs had
> LyX/LaTeX, later ones removed it due to limited space, maybe it's back on a
> Knoppix DVD...)
> 
> But how about trying to get LyX into TeXLive?

There is already a bootable, self-sustained Linux DVD available with LyX
integrated:
http://www.knoppix.org/
The homepage starts in German, for English click on the British flag.
One can download either a cdrom iso image or a dvd iso image.
According to the file "packages-dvd.txt", the dvd image contains 
LyX 1.5.3-1 installed, but I haven't tested it yet.

Regards,

--
Wilfried Hennings



Re: Export to rtf with bibliogrpahy and formated citations

2008-10-07 Thread Wilfried
Matts Lindström
[EMAIL PROTECTED] wrote:

 I'm using Lyx 1.6 rc2 (on Ubuntu Hardy Heron). This is my question: is
 it somehow possible to export a lyx document to rtf (or .odt or .doc)
 *with* bibliography and citations included *and* correctly formated by
 bibtex? Thus far I've had no success using the rtf-export: the
 document exports fine, but no citations/bibliography...
 
 (I'm using jurabib with the jox style)

Hi!
AFAIK, LyX uses latex2rtf as export-to-rtf utility.
So the export to rtf has the limitations of latex2rtf:
It recognizes and converts only the packages which are 
hard-coded in it's program code.

AFAIK latex2rtf does NOT support the jurabib package.
The only bib packages supported by latex2rtf are
apacite
apalike
apanat
authordate
harvard
natbib

For more information, see the documentation of latex2rtf,
e.g. at http://latex2rtf.sourceforge.net/latex2rtf_1_9_19.html

You may also have a look at the test files (included in the latex2rtf
source package). All test files should be converted successfully by
latex2rtf.


--
Wilfried Hennings



Re: Export to rtf with bibliogrpahy and formated citations

2008-10-07 Thread Wilfried
Matts Lindström
[EMAIL PROTECTED] wrote:

 I'm using Lyx 1.6 rc2 (on Ubuntu Hardy Heron). This is my question: is
 it somehow possible to export a lyx document to rtf (or .odt or .doc)
 *with* bibliography and citations included *and* correctly formated by
 bibtex? Thus far I've had no success using the rtf-export: the
 document exports fine, but no citations/bibliography...
 
 (I'm using jurabib with the jox style)

Hi!
AFAIK, LyX uses latex2rtf as export-to-rtf utility.
So the export to rtf has the limitations of latex2rtf:
It recognizes and converts only the packages which are 
hard-coded in it's program code.

AFAIK latex2rtf does NOT support the jurabib package.
The only bib packages supported by latex2rtf are
apacite
apalike
apanat
authordate
harvard
natbib

For more information, see the documentation of latex2rtf,
e.g. at http://latex2rtf.sourceforge.net/latex2rtf_1_9_19.html

You may also have a look at the test files (included in the latex2rtf
source package). All test files should be converted successfully by
latex2rtf.


--
Wilfried Hennings



Re: Export to rtf with bibliogrpahy and formated citations

2008-10-07 Thread Wilfried
"Matts Lindström"
<[EMAIL PROTECTED]> wrote:

> I'm using Lyx 1.6 rc2 (on Ubuntu Hardy Heron). This is my question: is
> it somehow possible to export a lyx document to rtf (or .odt or .doc)
> *with* bibliography and citations included *and* correctly formated by
> bibtex? Thus far I've had no success using the rtf-export: the
> document exports fine, but no citations/bibliography...
> 
> (I'm using jurabib with the jox style)

Hi!
AFAIK, LyX uses latex2rtf as export-to-rtf utility.
So the export to rtf has the limitations of latex2rtf:
It recognizes and converts only the packages which are 
hard-coded in it's program code.

AFAIK latex2rtf does NOT support the jurabib package.
The only bib packages supported by latex2rtf are
apacite
apalike
apanat
authordate
harvard
natbib

For more information, see the documentation of latex2rtf,
e.g. at http://latex2rtf.sourceforge.net/latex2rtf_1_9_19.html

You may also have a look at the test files (included in the latex2rtf
source package). All test files should be converted successfully by
latex2rtf.


--
Wilfried Hennings



Re: Copy and paste from MS Word

2008-04-22 Thread Wilfried
D.Zorig [EMAIL PROTECTED] wrote:

 How can I copy and paste from MS Word file to LYX while preserving paragraph
 breaks.  I'm going to copy and paste 308 page MS Word file to LYX 1.5.4 and
 put the formatting back in.  When I copy and paste from MS Word to LYX
 paragraph breaks gets lost and I have to find paragraph ends and hit enter
 in LYX that is too much work it seems.

Just copy the text in Word, and in LyX use paste special - plaintext
(Ctrl+Shift+V).
As you most probably don't want to paste soft (conditional) hyphens in
LyX, you have to switch off automatic hyphenation and replace all
manually inserted soft hyphens by nothing, in Word, before copying.


--
Wilfried Hennings



Re: Copy and paste from MS Word

2008-04-22 Thread Wilfried
D.Zorig [EMAIL PROTECTED] wrote:

 How can I copy and paste from MS Word file to LYX while preserving paragraph
 breaks.  I'm going to copy and paste 308 page MS Word file to LYX 1.5.4 and
 put the formatting back in.  When I copy and paste from MS Word to LYX
 paragraph breaks gets lost and I have to find paragraph ends and hit enter
 in LYX that is too much work it seems.

Just copy the text in Word, and in LyX use paste special - plaintext
(Ctrl+Shift+V).
As you most probably don't want to paste soft (conditional) hyphens in
LyX, you have to switch off automatic hyphenation and replace all
manually inserted soft hyphens by nothing, in Word, before copying.


--
Wilfried Hennings



Re: Copy and paste from MS Word

2008-04-22 Thread Wilfried
D.Zorig <[EMAIL PROTECTED]> wrote:

> How can I copy and paste from MS Word file to LYX while preserving paragraph
> breaks.  I'm going to copy and paste 308 page MS Word file to LYX 1.5.4 and
> put the formatting back in.  When I copy and paste from MS Word to LYX
> paragraph breaks gets lost and I have to find paragraph ends and hit enter
> in LYX that is too much work it seems.

Just copy the text in Word, and in LyX use "paste special - plaintext
(Ctrl+Shift+V)".
As you most probably don't want to paste soft (conditional) hyphens in
LyX, you have to switch off automatic hyphenation and replace all
manually inserted soft hyphens by nothing, in Word, before copying.


--
Wilfried Hennings



Re: rtf2latex for mac OSX?

2008-03-12 Thread Wilfried
[EMAIL PROTECTED] wrote:

 Hi, I have a bunch of pre-historic word docs that I want to convert  
 to LyX. I've gathered that the best way to do this is by converting  
 rtf to latex. (If anyone has a better suggestion I'm interested.)

What about opening the word doc in OpenOffice and then export it to
LaTeX? OpenOffice now even imports (most) equation editor objects
successfully which rtf2latex2e doesn't. For exporting to LaTeX, the
writer2latex converter (which is included in the OO distribution) needs
a working Java VM. The converter's homepage sais that it needs JRE1.4 or
1.5. AFAIK it will also run with later versions but not with older ones.

OO is available for Mac OSX Intel in English (US), French, German and
Portuguese (Brazil).





Re: rtf2latex for mac OSX?

2008-03-12 Thread Wilfried
[EMAIL PROTECTED] wrote:

 Hi, I have a bunch of pre-historic word docs that I want to convert  
 to LyX. I've gathered that the best way to do this is by converting  
 rtf to latex. (If anyone has a better suggestion I'm interested.)

What about opening the word doc in OpenOffice and then export it to
LaTeX? OpenOffice now even imports (most) equation editor objects
successfully which rtf2latex2e doesn't. For exporting to LaTeX, the
writer2latex converter (which is included in the OO distribution) needs
a working Java VM. The converter's homepage sais that it needs JRE1.4 or
1.5. AFAIK it will also run with later versions but not with older ones.

OO is available for Mac OSX Intel in English (US), French, German and
Portuguese (Brazil).





Re: rtf2latex for mac OSX?

2008-03-12 Thread Wilfried
[EMAIL PROTECTED] wrote:

> Hi, I have a bunch of "pre-historic" word docs that I want to convert  
> to LyX. I've gathered that the best way to do this is by converting  
> rtf to latex. (If anyone has a better suggestion I'm interested.)

What about opening the word doc in OpenOffice and then export it to
LaTeX? OpenOffice now even imports (most) equation editor objects
successfully which rtf2latex2e doesn't. For exporting to LaTeX, the
writer2latex converter (which is included in the OO distribution) needs
a working Java VM. The converter's homepage sais that it needs JRE1.4 or
1.5. AFAIK it will also run with later versions but not with older ones.

OO is available for Mac OSX Intel in English (US), French, German and
Portuguese (Brazil).





Re: Exporting to Rich Text Format with latex2rtf, issues and a fix

2007-11-29 Thread Wilfried
David Hewitt [EMAIL PROTECTED] wrote:

 Thanks for alerting this list Wilfried. I just dumped my old version,
 reinstalled, and everything worked just as you indicated. I noticed that you
 edited the Wiki a bit... I went ahead and fleshed it out for pre- and post-
 1.9.19 versions. Let me know if you see anything that's incorrect:
 
 http://wiki.lyx.org/Tips/ExportingRichTextFormatWithLaTeX2rtf

Excellent!
I see nothing which needs to be added or modified,
and I couldn't have described it better.





Re: Exporting to Rich Text Format with latex2rtf, issues and a fix

2007-11-29 Thread Wilfried
David Hewitt [EMAIL PROTECTED] wrote:

 Thanks for alerting this list Wilfried. I just dumped my old version,
 reinstalled, and everything worked just as you indicated. I noticed that you
 edited the Wiki a bit... I went ahead and fleshed it out for pre- and post-
 1.9.19 versions. Let me know if you see anything that's incorrect:
 
 http://wiki.lyx.org/Tips/ExportingRichTextFormatWithLaTeX2rtf

Excellent!
I see nothing which needs to be added or modified,
and I couldn't have described it better.





Re: Exporting to Rich Text Format with latex2rtf, issues and a fix

2007-11-29 Thread Wilfried
David Hewitt <[EMAIL PROTECTED]> wrote:

> Thanks for alerting this list Wilfried. I just dumped my old version,
> reinstalled, and everything worked just as you indicated. I noticed that you
> edited the Wiki a bit... I went ahead and fleshed it out for pre- and post-
> 1.9.19 versions. Let me know if you see anything that's incorrect:
> 
> http://wiki.lyx.org/Tips/ExportingRichTextFormatWithLaTeX2rtf

Excellent!
I see nothing which needs to be added or modified,
and I couldn't have described it better.





Re: Exporting to Rich Text Format with latex2rtf, issues and a fix

2007-11-28 Thread Wilfried
Hello all,
we just finished a new release of the latex2rtf converter.
It is available from http://sourceforge.net/projects/latex2rtf

The package latex2rtf-win-gui contains the latex2rtf program
plus a Graphical User Interface (GUI) and an automatic installer.
It works for Win NT, 2000, XP, 2003, and Vista.

If you have Win 9x or ME, this package will not work.
For these systems, get the latex2rtf-win package 
(without GUI and installer). 
It works for Win 9x, ME, NT, 2000, XP, 2003, and Vista.

The program will now also search for its cfg files in the latex2rtf
folder under the standard Windows Program Files folder (i.e. the
folder which is specified by %ProgramFiles%\latex2rtf), so it will also
be happy if installed in the default location chosen by the installer.
Nevertheless its install folder must be the first in the search path
when the program is run, so one must add this path in Lyx in the 'PATH
Prefix' line in Tools - Preferences - Paths.

Also, the broken -P option (for specifying the path to the .cfg files if
not installed in the default folder) is now fixed. (The option was
broken because a : was interpreted as an option delimiter, so that
specifying C:\Progra~1\latex2rtf was not possible.)

Regards,




Re: Exporting to Rich Text Format with latex2rtf, issues and a fix

2007-11-28 Thread Wilfried
Hello all,
we just finished a new release of the latex2rtf converter.
It is available from http://sourceforge.net/projects/latex2rtf

The package latex2rtf-win-gui contains the latex2rtf program
plus a Graphical User Interface (GUI) and an automatic installer.
It works for Win NT, 2000, XP, 2003, and Vista.

If you have Win 9x or ME, this package will not work.
For these systems, get the latex2rtf-win package 
(without GUI and installer). 
It works for Win 9x, ME, NT, 2000, XP, 2003, and Vista.

The program will now also search for its cfg files in the latex2rtf
folder under the standard Windows Program Files folder (i.e. the
folder which is specified by %ProgramFiles%\latex2rtf), so it will also
be happy if installed in the default location chosen by the installer.
Nevertheless its install folder must be the first in the search path
when the program is run, so one must add this path in Lyx in the 'PATH
Prefix' line in Tools - Preferences - Paths.

Also, the broken -P option (for specifying the path to the .cfg files if
not installed in the default folder) is now fixed. (The option was
broken because a : was interpreted as an option delimiter, so that
specifying C:\Progra~1\latex2rtf was not possible.)

Regards,




Re: Exporting to Rich Text Format with latex2rtf, issues and a fix

2007-11-28 Thread Wilfried
Hello all,
we just finished a new release of the latex2rtf converter.
It is available from http://sourceforge.net/projects/latex2rtf

The package "latex2rtf-win-gui" contains the latex2rtf program
plus a Graphical User Interface (GUI) and an automatic installer.
It works for Win NT, 2000, XP, 2003, and Vista.

If you have Win 9x or ME, this package will not work.
For these systems, get the "latex2rtf-win" package 
(without GUI and installer). 
It works for Win 9x, ME, NT, 2000, XP, 2003, and Vista.

The program will now also search for its cfg files in the latex2rtf
folder under the standard Windows "Program Files" folder (i.e. the
folder which is specified by %ProgramFiles%\latex2rtf), so it will also
be happy if installed in the default location chosen by the installer.
Nevertheless its install folder must be the first in the search path
when the program is run, so one must add this path in Lyx in the 'PATH
Prefix' line in Tools -> Preferences -> Paths.

Also, the broken -P option (for specifying the path to the .cfg files if
not installed in the default folder) is now fixed. (The option was
"broken" because a ":" was interpreted as an option delimiter, so that
specifying "C:\Progra~1\latex2rtf" was not possible.)

Regards,




Re: Exporting to Rich Text Format with latex2rtf, issues and a fix

2007-10-26 Thread Wilfried Hennings
Dave Hewitt [EMAIL PROTECTED] writes:

 Questions/comments inserted in Wilfried's comments below...
 
 So does this means that LyX doesn't need to know about the .bat files? It 
 looks like all that LyX is doing is calling the latex2rt (.exe file) to get 
 the conversion. Right?

You could merge l2rprep.bat into l2r.bat so that first the path is set and then 
latex2rt.exe is called, and tell Lyx to call this batch file instead of calling 
teh latex2rt.exe. 
But I think as Lyx has a method for setting the pathes itself, I would prefer 
letting Lyx so it.

 
   I also added C:\Program Files\LyX 1.5.2; (no quotes) to the Windows
   search path. In my inexperienced mind this was to help which find the
   above files, but I also edited the L2RPREP before reconfiguring LyX, so
   these events are confounded when it comes to success/failure. Basically,
   I'm not sure that this addition to the search path was necessary.
 
 No, most probably the folder C:\Program Files\LyX 1.5.2 does not contain 
 any of the files needed by latex2rtf.
 
 Apparently this is correct. I was thinking that since LyXWinInstaller had 
 installed the ImageMagick and Ghostscript stuff to C:\PF\LyX\etc that 
 latex2rtf would need help finding those. I opened the GUI shell and noticed 
 that it found those files without aid (in the latex2rtf Environment tab; it 
 must have found them from the registry). So presumably latex2rt knows where 
 they are as well, somehow.

No, the latex2rt.exe does NOT know this, it must rely on the setting of PATH 
and RTFPATH. latex2rt.exe is not able to look in the registry, as the GUI is.

Wilfried



Re: Exporting to Rich Text Format with latex2rtf, issues and a fix

2007-10-26 Thread Wilfried Hennings
Dave Hewitt [EMAIL PROTECTED] writes:

 Questions/comments inserted in Wilfried's comments below...
 
 So does this means that LyX doesn't need to know about the .bat files? It 
 looks like all that LyX is doing is calling the latex2rt (.exe file) to get 
 the conversion. Right?

You could merge l2rprep.bat into l2r.bat so that first the path is set and then 
latex2rt.exe is called, and tell Lyx to call this batch file instead of calling 
teh latex2rt.exe. 
But I think as Lyx has a method for setting the pathes itself, I would prefer 
letting Lyx so it.

 
   I also added C:\Program Files\LyX 1.5.2; (no quotes) to the Windows
   search path. In my inexperienced mind this was to help which find the
   above files, but I also edited the L2RPREP before reconfiguring LyX, so
   these events are confounded when it comes to success/failure. Basically,
   I'm not sure that this addition to the search path was necessary.
 
 No, most probably the folder C:\Program Files\LyX 1.5.2 does not contain 
 any of the files needed by latex2rtf.
 
 Apparently this is correct. I was thinking that since LyXWinInstaller had 
 installed the ImageMagick and Ghostscript stuff to C:\PF\LyX\etc that 
 latex2rtf would need help finding those. I opened the GUI shell and noticed 
 that it found those files without aid (in the latex2rtf Environment tab; it 
 must have found them from the registry). So presumably latex2rt knows where 
 they are as well, somehow.

No, the latex2rt.exe does NOT know this, it must rely on the setting of PATH 
and RTFPATH. latex2rt.exe is not able to look in the registry, as the GUI is.

Wilfried



Re: Exporting to Rich Text Format with latex2rtf, issues and a fix

2007-10-26 Thread Wilfried Hennings
Dave Hewitt <[EMAIL PROTECTED]> writes:

> Questions/comments inserted in Wilfried's comments below...
> 
> So does this means that LyX doesn't need to know about the .bat files? It 
> looks like all that LyX is doing is calling the latex2rt (.exe file) to get 
> the conversion. Right?

You could merge l2rprep.bat into l2r.bat so that first the path is set and then 
latex2rt.exe is called, and tell Lyx to call this batch file instead of calling 
teh latex2rt.exe. 
But I think as Lyx has a method for setting the pathes itself, I would prefer 
letting Lyx so it.

> >
> > > I also added "C:\Program Files\LyX 1.5.2;" (no quotes) to the Windows
> > > search path. In my inexperienced mind this was to help "which" find the
> > > above files, but I also edited the L2RPREP before reconfiguring LyX, so
> > > these events are confounded when it comes to success/failure. Basically,
> > > I'm not sure that this addition to the search path was necessary.
> >
> >No, most probably the folder "C:\Program Files\LyX 1.5.2" does not contain 
> >any of the files needed by latex2rtf.
> 
> Apparently this is correct. I was thinking that since LyXWinInstaller had 
> installed the ImageMagick and Ghostscript stuff to C:\PF\LyX\etc that 
> latex2rtf would need help finding those. I opened the GUI shell and noticed 
> that it found those files without aid (in the latex2rtf Environment tab; it 
> must have found them from the registry). So presumably latex2rt knows where 
> they are as well, somehow.

No, the latex2rt.exe does NOT know this, it must rely on the setting of PATH 
and RTFPATH. latex2rt.exe is not able to look in the registry, as the GUI is.

Wilfried



Re: Exporting to Rich Text Format with latex2rtf, issues and a fix

2007-10-25 Thread Wilfried Hennings
Dave Hewitt [EMAIL PROTECTED] writes:

 Ideally, one would simply:
 
 (1) install latex2rtf from sourceforge (win-gui download here - 
 http://sourceforge.net/project/showfiles.php?group_id=22654)
 (2) add the latex2rtf folder (C:\l2r -- see below) to the Windows search 
 path (see section 2.4 here - 
 http://sourceforge.net/project/showfiles.php?group_id=22654)
 (3) open LyX, reconfigure, close, and restart
 
 and the converter for Latex (plain) - Rich Text Format would be sorted out 
 by LyX and a Rich Text Format option would be made available under File - 
 Export.
 
 Unfortunately, it ain't that easy.

Well, as the one who makes the DOS/Win port of latex2rtf, I can explain why it 
is as is and why some thing work and others not. See below.

 First off, the above strategy works fine if all you want to do is use the 
 latex2rtf GUI (l2rshell.exe; the icon on the desktop calls this) to convert 
 existing .tex files to .rtf files. In fact, you only need (1) and (2) above 
 for that, and then you just export plain latex from LyX and run the 
 conversion manually. Getting LyX to recognize the converter (latex2rt.exe) 
 is the hard part, but it's nice to have LyX do all the work behind the scenes.
 
 The first issue is that you should simply avoid installing the program 
 anywhere but C:\l2r. All of the defaults for the program assume that it is 
 installed at this path. I installed to Program Files because I had not read 
 section 2.4 here - 
 http://sourceforge.net/project/showfiles.php?group_id=22654 - first. It 
 explains how to adjust the three configuration files (more on these in a 
 minute) to make latex2rtf work from any installation path, but it never 
 worked for me, and I tried a lot of different things. No matter what I 
 tried, running LyX from the command prompt showed that the error was that 
 latex2rtf could not find its config directory (the cfg directory under the 
 latex2rtf root directory). It always assumed that the root directory was 
 C:\l2r despite the fact that all entries in the configuration files were 
 adjusted to reflect C:\Program Files\latex2rtf, where I installed it. 

What do you mean by configuration files?
Adapting the pathes in the batch files (l2rprep.bat, l2r.bat) only helps if 
these batch files are executed. If you just call latex2rt.exe, they aren't.
The configuration of the GUI shell is used only by the GUI shell. latex2rt.exe 
itself knows nothing of the GUI shell nor of the batch files. 


 So, 
 make your life easy and install to C:\l2r. I never checked this with the 
 latex2rtf folks, but the simple solution seems to be obvious.
 
 Next, you do need to add the latex2rtf folder to the Windows search path:
 
 a. Right-click My Computer and go to Properties.
 b. Advanced Tab - Environment Variables - System Variables - Path, add 
 C:\l2r; (no quotes) somewhere in the line.
 
 The next step varies depending on how you have LaTeX set up on your 
 machine. I used the LyXWinInstaller and this presents a new wrinkle for 
 latex2rtf.
 
 Those three configuration files (.bat files) are in the latex2rtf root and 
 are L2R.BAT, L2RSEM.BAT, and L2RPREP.BAT. You'll need to edit them (use a 
 good text editor; i.e., not Notepad).
 
 L2R and L2RSEM are almost identical, but notice that one of them (don't 
 recall which, I changed it), on line 15, has the German windows settings 
 line unremarked. The other one has the English windows settings unremarked. 
 I changed them both to have the English settings unremarked (i.e., 
 functional) and the German settings remarked (i.e., unfunctional). I didn't 
 actually test whether this mattered, but it seemed prudent. The paths 
 should all be fine if you installed to C:\l2r and you need do nothing more 
 with these files.
 
 At this point, I tried reconfiguring LyX and it still failed to find the 
 converter.
 
 L2RPREP comes in - this is a bit tougher. I ran this file from a command 
 prompt to see that it set the paths correctly. As best I could tell, 
 which always failed to find the Ghostscript, LaTeX, and ImageMagick 
 files. 

That is OK. Which only looks in the current search path. If the Ghostscript, 
LaTeX or ImageMagick folders isn't yet in the PATH, which returns 1. Calling 
which is intended to avoid adding the folders to the path more than once.

 So, I edited it to look as below (changes starting on line 8). 
 Again, this applies for people that use LyXWinInstaller only.
 
 rem set folder containing Ghostscript executables here:
 %l2rpath%\which gswin32c nul
 if errorlevel 1 SET PATH=C:\Program Files\LyX 
 1.5.2\etc\Ghostscript\bin;C:\Program Files\LyX 
 1.5.2\etc\Ghostscript\lib;%PATH%
 
 rem set folder containing ImageMagick executables here:
 %l2rpath%\which identify nul
 if errorlevel 1 SET PATH=C:\Program Files\LyX 1.5.2\etc\ImageMagick;%PATH%
 
 rem set folder containing LaTeX and dvips executables here:
 %l2rpath%\which latex nul
 if errorlevel 1 SET PATH=C:\Program Files\MiKTeX 2.6\miktex\bin;%PATH%
 
 The final 

Re: Exporting to Rich Text Format with latex2rtf, issues and a fix

2007-10-25 Thread Wilfried Hennings
Dave Hewitt [EMAIL PROTECTED] writes:

 Ideally, one would simply:
 
 (1) install latex2rtf from sourceforge (win-gui download here - 
 http://sourceforge.net/project/showfiles.php?group_id=22654)
 (2) add the latex2rtf folder (C:\l2r -- see below) to the Windows search 
 path (see section 2.4 here - 
 http://sourceforge.net/project/showfiles.php?group_id=22654)
 (3) open LyX, reconfigure, close, and restart
 
 and the converter for Latex (plain) - Rich Text Format would be sorted out 
 by LyX and a Rich Text Format option would be made available under File - 
 Export.
 
 Unfortunately, it ain't that easy.

Well, as the one who makes the DOS/Win port of latex2rtf, I can explain why it 
is as is and why some thing work and others not. See below.

 First off, the above strategy works fine if all you want to do is use the 
 latex2rtf GUI (l2rshell.exe; the icon on the desktop calls this) to convert 
 existing .tex files to .rtf files. In fact, you only need (1) and (2) above 
 for that, and then you just export plain latex from LyX and run the 
 conversion manually. Getting LyX to recognize the converter (latex2rt.exe) 
 is the hard part, but it's nice to have LyX do all the work behind the scenes.
 
 The first issue is that you should simply avoid installing the program 
 anywhere but C:\l2r. All of the defaults for the program assume that it is 
 installed at this path. I installed to Program Files because I had not read 
 section 2.4 here - 
 http://sourceforge.net/project/showfiles.php?group_id=22654 - first. It 
 explains how to adjust the three configuration files (more on these in a 
 minute) to make latex2rtf work from any installation path, but it never 
 worked for me, and I tried a lot of different things. No matter what I 
 tried, running LyX from the command prompt showed that the error was that 
 latex2rtf could not find its config directory (the cfg directory under the 
 latex2rtf root directory). It always assumed that the root directory was 
 C:\l2r despite the fact that all entries in the configuration files were 
 adjusted to reflect C:\Program Files\latex2rtf, where I installed it. 

What do you mean by configuration files?
Adapting the pathes in the batch files (l2rprep.bat, l2r.bat) only helps if 
these batch files are executed. If you just call latex2rt.exe, they aren't.
The configuration of the GUI shell is used only by the GUI shell. latex2rt.exe 
itself knows nothing of the GUI shell nor of the batch files. 


 So, 
 make your life easy and install to C:\l2r. I never checked this with the 
 latex2rtf folks, but the simple solution seems to be obvious.
 
 Next, you do need to add the latex2rtf folder to the Windows search path:
 
 a. Right-click My Computer and go to Properties.
 b. Advanced Tab - Environment Variables - System Variables - Path, add 
 C:\l2r; (no quotes) somewhere in the line.
 
 The next step varies depending on how you have LaTeX set up on your 
 machine. I used the LyXWinInstaller and this presents a new wrinkle for 
 latex2rtf.
 
 Those three configuration files (.bat files) are in the latex2rtf root and 
 are L2R.BAT, L2RSEM.BAT, and L2RPREP.BAT. You'll need to edit them (use a 
 good text editor; i.e., not Notepad).
 
 L2R and L2RSEM are almost identical, but notice that one of them (don't 
 recall which, I changed it), on line 15, has the German windows settings 
 line unremarked. The other one has the English windows settings unremarked. 
 I changed them both to have the English settings unremarked (i.e., 
 functional) and the German settings remarked (i.e., unfunctional). I didn't 
 actually test whether this mattered, but it seemed prudent. The paths 
 should all be fine if you installed to C:\l2r and you need do nothing more 
 with these files.
 
 At this point, I tried reconfiguring LyX and it still failed to find the 
 converter.
 
 L2RPREP comes in - this is a bit tougher. I ran this file from a command 
 prompt to see that it set the paths correctly. As best I could tell, 
 which always failed to find the Ghostscript, LaTeX, and ImageMagick 
 files. 

That is OK. Which only looks in the current search path. If the Ghostscript, 
LaTeX or ImageMagick folders isn't yet in the PATH, which returns 1. Calling 
which is intended to avoid adding the folders to the path more than once.

 So, I edited it to look as below (changes starting on line 8). 
 Again, this applies for people that use LyXWinInstaller only.
 
 rem set folder containing Ghostscript executables here:
 %l2rpath%\which gswin32c nul
 if errorlevel 1 SET PATH=C:\Program Files\LyX 
 1.5.2\etc\Ghostscript\bin;C:\Program Files\LyX 
 1.5.2\etc\Ghostscript\lib;%PATH%
 
 rem set folder containing ImageMagick executables here:
 %l2rpath%\which identify nul
 if errorlevel 1 SET PATH=C:\Program Files\LyX 1.5.2\etc\ImageMagick;%PATH%
 
 rem set folder containing LaTeX and dvips executables here:
 %l2rpath%\which latex nul
 if errorlevel 1 SET PATH=C:\Program Files\MiKTeX 2.6\miktex\bin;%PATH%
 
 The final 

Re: Exporting to Rich Text Format with latex2rtf, issues and a fix

2007-10-25 Thread Wilfried Hennings
Dave Hewitt <[EMAIL PROTECTED]> writes:

> Ideally, one would simply:
> 
> (1) install latex2rtf from sourceforge (win-gui download here - 
> http://sourceforge.net/project/showfiles.php?group_id=22654)
> (2) add the latex2rtf folder (C:\l2r -- see below) to the Windows search 
> path (see section 2.4 here - 
> http://sourceforge.net/project/showfiles.php?group_id=22654)
> (3) open LyX, reconfigure, close, and restart
> 
> and the converter for Latex (plain) -> Rich Text Format would be sorted out 
> by LyX and a Rich Text Format option would be made available under File -> 
> Export.
> 
> Unfortunately, it ain't that easy.

Well, as the one who makes the DOS/Win port of latex2rtf, I can explain why it 
is as is and why some thing work and others not. See below.

> First off, the above strategy works fine if all you want to do is use the 
> latex2rtf GUI (l2rshell.exe; the icon on the desktop calls this) to convert 
> existing .tex files to .rtf files. In fact, you only need (1) and (2) above 
> for that, and then you just export plain latex from LyX and run the 
> conversion manually. Getting LyX to recognize the converter (latex2rt.exe) 
> is the hard part, but it's nice to have LyX do all the work behind the scenes.
> 
> The first issue is that you should simply avoid installing the program 
> anywhere but C:\l2r. All of the defaults for the program assume that it is 
> installed at this path. I installed to Program Files because I had not read 
> section 2.4 here - 
> http://sourceforge.net/project/showfiles.php?group_id=22654 - first. It 
> explains how to adjust the three configuration files (more on these in a 
> minute) to make latex2rtf work from any installation path, but it never 
> worked for me, and I tried a lot of different things. No matter what I 
> tried, running LyX from the command prompt showed that the error was that 
> latex2rtf could not find its config directory (the cfg directory under the 
> latex2rtf root directory). It always assumed that the root directory was 
> C:\l2r despite the fact that all entries in the configuration files were 
> adjusted to reflect "C:\Program Files\latex2rtf", where I installed it. 

What do you mean by "configuration files"?
Adapting the pathes in the batch files (l2rprep.bat, l2r.bat) only helps if 
these batch files are executed. If you just call latex2rt.exe, they aren't.
The configuration of the GUI shell is used only by the GUI shell. latex2rt.exe 
itself knows nothing of the GUI shell nor of the batch files. 


> So, 
> make your life easy and install to C:\l2r. I never checked this with the 
> latex2rtf folks, but the simple solution seems to be obvious.
> 
> Next, you do need to add the latex2rtf folder to the Windows search path:
> 
> a. Right-click My Computer and go to Properties.
> b. Advanced Tab -> Environment Variables -> System Variables -> Path, add 
> "C:\l2r;" (no quotes) somewhere in the line.
> 
> The next step varies depending on how you have LaTeX set up on your 
> machine. I used the LyXWinInstaller and this presents a new wrinkle for 
> latex2rtf.
> 
> Those three configuration files (.bat files) are in the latex2rtf root and 
> are L2R.BAT, L2RSEM.BAT, and L2RPREP.BAT. You'll need to edit them (use a 
> good text editor; i.e., not Notepad).
> 
> L2R and L2RSEM are almost identical, but notice that one of them (don't 
> recall which, I changed it), on line 15, has the German windows settings 
> line unremarked. The other one has the English windows settings unremarked. 
> I changed them both to have the English settings unremarked (i.e., 
> functional) and the German settings remarked (i.e., unfunctional). I didn't 
> actually test whether this mattered, but it seemed prudent. The paths 
> should all be fine if you installed to C:\l2r and you need do nothing more 
> with these files.
> 
> At this point, I tried reconfiguring LyX and it still failed to find the 
> converter.
> 
> L2RPREP comes in - this is a bit tougher. I ran this file from a command 
> prompt to see that it set the paths correctly. As best I could tell, 
> "which" always failed to find the Ghostscript, LaTeX, and ImageMagick 
> files. 

That is OK. Which only looks in the current search path. If the Ghostscript, 
LaTeX or ImageMagick folders isn't yet in the PATH, which returns "1". Calling 
"which" is intended to avoid adding the folders to the path more than once.

> So, I edited it to look as below (changes starting on line 8). 
> Again, this applies for people that use LyXWinInstaller only.
> 
> rem set folder containing Ghostscript executables here:
> %l2rpath%\which gswin32c >nul
> if errorlevel 1 SET PATH="C:\Program Files\LyX 
> 1.5.2\etc\Ghostscript\bin";"C:\Program Files\LyX 
> 1.5.2\etc\Ghostscript\lib";%PATH%
> 
> rem set folder containing ImageMagick executables here:
> %l2rpath%\which identify >nul
> if errorlevel 1 SET PATH="C:\Program Files\LyX 1.5.2\etc\ImageMagick";%PATH%
> 
> rem set folder containing LaTeX and dvips executables here:
>