Word Import

2010-08-01 Thread Richard Heck

On 07/31/2010 10:10 PM, Rob Oakes wrote:

...then running a filter on the HTML...

I think this is really the key. You just really can't assume that the 
converter---any converter---is going to produce nice LaTeX, suitable for 
import into LyX. But the kinds of mistakes the converter makes will be 
fairly predictable, and that means you can write a script to fix them.


What I'd propose is that someone begin a proper word2lyx project based 
upon Rob's ideas. The actual work in the project would involve writing 
one or more filters, to take the output of html2latex or writer2latex 
and clean it up in a way that is appropriate for LyX. And, possibly 
additionally, to run some kind of filter on the LyX document generated 
by tex2lyx, which might want cleaning up in various ways. Note that this 
could even handles Steve's problem: As long as the converters do 
something predictable, we can fix it programmatically. Just as an 
example, I've pasted below the perl script I used to clean up the output 
of wp2latex, when I was converting WordPerfect files. It's pretty 
trivial, really. The nice thing, of course, is that this kind of filter 
can easily develop over time, as people find more annoyances.


The coding for this project should be done in python, preferably, so 
that it could actually be shipped with LyX.


Richard

=


#! /usr/bin/perl

open(TEXFILE,  . @ARGV[0]) || die (Couldn't open file  . @ARGV[0]);

$line = TEXFILE;
print $line;
$line = TEXFILE;
print $line;
print \\newcommand{\\IndexNum}{\\refstepcounter{Index}\\theIndex }\n;

while (TEXFILE) {
$line = $_;
$line =~ s/\\begin{flushleft}//g;
$line =~ s/\\end{flushleft}//g;
$line =~ s/\\begin{tabbing}//g;
$line =~ s/\\end{tabbing}//g;
$line =~ s/\\kill//g;
$line =~ s/\\begin{indenting}{.*cm}//g;
$line =~ s/\\end{indenting}//g;
$line =~ s/\\begin{center}//g;
$line =~ s/\\end{center}//g;
$line =~ s/\\bigskip//g;
$line =~ s/\\testlastline//g;
$line =~ s/\\zerotestlastline//g;
$line =~ s/\\baselineskip\s*=\s*\d*\.\d*ex//g;
$line =~ s/\\stepcounter{Section}\\theSection {\\bf 
\.\s*(.*)}/\\section{$1}/g;

$line =~ s/{\\it ([^}]+)}/\\emph{$1}/g;
$line =~ s#\\/##g;
$line =~ s/\\stepcounter{Index}\\theIndex/\\IndexNum/g;
$line =~ s/\$\s*\$/ /g;
$line =~ s/{\\penalty\d*}//g;
$line =~ s/\\hspace\*?{[^}]*?}//g;
$line =~ s/\\-//g;
$line =~ s|\\||g;
$line =~ s|\\=||g;
$line =~ s/kern-\d*.\d*cm//g;
$line =~ s//\n\n/g;
#   $line =~ s/\$[^{}]*\$//g;
$line =~ s/\\hyphenpenalty \d+ //g;
$line =~ s/\\nwln//g;
$line =~ s/{?\\nobreak}?//g;
$line =~ s/{}//g;
$line =~ s/ I~/ I /g;
$line =~ s/\\endnote/\\footnote/g;
$line =~ s/\^\{\{\\rm \{\\bf \\GrBox\(1001\)\}\}\}/\\ulcorner/g;
$line =~ s/\^\{\{\\rm \{\\bf \\GrBox\(0011\)\}\}\}/\\urcorner/g;
print ($line);
}

close (TEXFILE);



Re: Word Import

2010-08-01 Thread Anders Host-Madsen
Richard Heck rgheck at comcast.net writes:

 
 What I'd propose is that someone begin a proper word2lyx project based 
 upon Rob's ideas. 

That would be great. I would be happy to donate to such a project 
if it was set up as a 'donation project' as other projects on LyX's 
homepage.

A lyx2word converter would also be nice. The situation is this:
you have material in LyX, but the agency/publisher/collaborator
requires a word document.




Word Import

2010-08-01 Thread Richard Heck

On 07/31/2010 10:10 PM, Rob Oakes wrote:

...then running a filter on the HTML...

I think this is really the key. You just really can't assume that the 
converter---any converter---is going to produce nice LaTeX, suitable for 
import into LyX. But the kinds of mistakes the converter makes will be 
fairly predictable, and that means you can write a script to fix them.


What I'd propose is that someone begin a proper word2lyx project based 
upon Rob's ideas. The actual work in the project would involve writing 
one or more filters, to take the output of html2latex or writer2latex 
and clean it up in a way that is appropriate for LyX. And, possibly 
additionally, to run some kind of filter on the LyX document generated 
by tex2lyx, which might want cleaning up in various ways. Note that this 
could even handles Steve's problem: As long as the converters do 
something predictable, we can fix it programmatically. Just as an 
example, I've pasted below the perl script I used to clean up the output 
of wp2latex, when I was converting WordPerfect files. It's pretty 
trivial, really. The nice thing, of course, is that this kind of filter 
can easily develop over time, as people find more annoyances.


The coding for this project should be done in python, preferably, so 
that it could actually be shipped with LyX.


Richard

=


#! /usr/bin/perl

open(TEXFILE,  . @ARGV[0]) || die (Couldn't open file  . @ARGV[0]);

$line = TEXFILE;
print $line;
$line = TEXFILE;
print $line;
print \\newcommand{\\IndexNum}{\\refstepcounter{Index}\\theIndex }\n;

while (TEXFILE) {
$line = $_;
$line =~ s/\\begin{flushleft}//g;
$line =~ s/\\end{flushleft}//g;
$line =~ s/\\begin{tabbing}//g;
$line =~ s/\\end{tabbing}//g;
$line =~ s/\\kill//g;
$line =~ s/\\begin{indenting}{.*cm}//g;
$line =~ s/\\end{indenting}//g;
$line =~ s/\\begin{center}//g;
$line =~ s/\\end{center}//g;
$line =~ s/\\bigskip//g;
$line =~ s/\\testlastline//g;
$line =~ s/\\zerotestlastline//g;
$line =~ s/\\baselineskip\s*=\s*\d*\.\d*ex//g;
$line =~ s/\\stepcounter{Section}\\theSection {\\bf 
\.\s*(.*)}/\\section{$1}/g;

$line =~ s/{\\it ([^}]+)}/\\emph{$1}/g;
$line =~ s#\\/##g;
$line =~ s/\\stepcounter{Index}\\theIndex/\\IndexNum/g;
$line =~ s/\$\s*\$/ /g;
$line =~ s/{\\penalty\d*}//g;
$line =~ s/\\hspace\*?{[^}]*?}//g;
$line =~ s/\\-//g;
$line =~ s|\\||g;
$line =~ s|\\=||g;
$line =~ s/kern-\d*.\d*cm//g;
$line =~ s//\n\n/g;
#   $line =~ s/\$[^{}]*\$//g;
$line =~ s/\\hyphenpenalty \d+ //g;
$line =~ s/\\nwln//g;
$line =~ s/{?\\nobreak}?//g;
$line =~ s/{}//g;
$line =~ s/ I~/ I /g;
$line =~ s/\\endnote/\\footnote/g;
$line =~ s/\^\{\{\\rm \{\\bf \\GrBox\(1001\)\}\}\}/\\ulcorner/g;
$line =~ s/\^\{\{\\rm \{\\bf \\GrBox\(0011\)\}\}\}/\\urcorner/g;
print ($line);
}

close (TEXFILE);



Re: Word Import

2010-08-01 Thread Anders Host-Madsen
Richard Heck rgheck at comcast.net writes:

 
 What I'd propose is that someone begin a proper word2lyx project based 
 upon Rob's ideas. 

That would be great. I would be happy to donate to such a project 
if it was set up as a 'donation project' as other projects on LyX's 
homepage.

A lyx2word converter would also be nice. The situation is this:
you have material in LyX, but the agency/publisher/collaborator
requires a word document.




Word Import

2010-08-01 Thread Richard Heck

On 07/31/2010 10:10 PM, Rob Oakes wrote:

...then running a filter on the HTML...

I think this is really the key. You just really can't assume that the 
converter---any converter---is going to produce nice LaTeX, suitable for 
import into LyX. But the kinds of mistakes the converter makes will be 
fairly predictable, and that means you can write a script to fix them.


What I'd propose is that someone begin a proper word2lyx project based 
upon Rob's ideas. The actual work in the project would involve writing 
one or more filters, to take the output of html2latex or writer2latex 
and clean it up in a way that is appropriate for LyX. And, possibly 
additionally, to run some kind of filter on the LyX document generated 
by tex2lyx, which might want cleaning up in various ways. Note that this 
could even handles Steve's problem: As long as the converters do 
something predictable, we can fix it programmatically. Just as an 
example, I've pasted below the perl script I used to clean up the output 
of wp2latex, when I was converting WordPerfect files. It's pretty 
trivial, really. The nice thing, of course, is that this kind of filter 
can easily develop over time, as people find more annoyances.


The coding for this project should be done in python, preferably, so 
that it could actually be shipped with LyX.


Richard

=


#! /usr/bin/perl

open(TEXFILE, "<" . @ARGV[0]) || die ("Couldn't open file " . @ARGV[0]);

$line = ;
print $line;
$line = ;
print $line;
print "\\newcommand{\\IndexNum}{\\refstepcounter{Index}\\theIndex }\n";

while () {
$line = $_;
$line =~ s/\\begin{flushleft}//g;
$line =~ s/\\end{flushleft}//g;
$line =~ s/\\begin{tabbing}//g;
$line =~ s/\\end{tabbing}//g;
$line =~ s/\\kill//g;
$line =~ s/\\begin{indenting}{.*cm}//g;
$line =~ s/\\end{indenting}//g;
$line =~ s/\\begin{center}//g;
$line =~ s/\\end{center}//g;
$line =~ s/\\bigskip//g;
$line =~ s/\\testlastline//g;
$line =~ s/\\zerotestlastline//g;
$line =~ s/\\baselineskip\s*=\s*\d*\.\d*ex//g;
$line =~ s/\\stepcounter{Section}\\theSection {\\bf 
\.\s*(.*)}/\\section{$1}/g;

$line =~ s/{\\it ([^}]+)}/\\emph{$1}/g;
$line =~ s#\\/##g;
$line =~ s/\\stepcounter{Index}\\theIndex/\\IndexNum/g;
$line =~ s/\$\s*\$/ /g;
$line =~ s/{\\penalty\d*}//g;
$line =~ s/\\hspace\*?{[^}]*?}//g;
$line =~ s/\\-//g;
$line =~ s|\\>||g;
$line =~ s|\\=||g;
$line =~ s/kern-\d*.\d*cm//g;
$line =~ s//\n\n/g;
#   $line =~ s/\$[^{}]*\$//g;
$line =~ s/\\hyphenpenalty \d+ //g;
$line =~ s/\\nwln//g;
$line =~ s/{?\\nobreak}?//g;
$line =~ s/{}//g;
$line =~ s/ I~/ I /g;
$line =~ s/\\endnote/\\footnote/g;
$line =~ s/\^\{\{\\rm \{\\bf \\GrBox\(1001\)\}\}\}/\\ulcorner/g;
$line =~ s/\^\{\{\\rm \{\\bf \\GrBox\(0011\)\}\}\}/\\urcorner/g;
print ($line);
}

close (TEXFILE);



Re: Word Import

2010-08-01 Thread Anders Host-Madsen
Richard Heck  comcast.net> writes:

> 
> What I'd propose is that someone begin a proper word2lyx project based 
> upon Rob's ideas. 

That would be great. I would be happy to donate to such a project 
if it was set up as a 'donation project' as other projects on LyX's 
homepage.

A lyx2word converter would also be nice. The situation is this:
you have material in LyX, but the agency/publisher/collaborator
requires a word document.




Re: Re: Word import

2010-05-14 Thread stephen's mailinglist account

 If you're already 250 pages into it then yes, you want to look for
 conversions.  At worst you could install OpenOffice, convert the Word
 document, then convert to Lyx (I think you may have to convert to LaTeX,
 then from there to LyX).  Between the fundamental differences between Word
 and LaTeX, and the fact that you've been WYSIWYGing you are guaranteed to
 end up with a messed-up document, which you will have to fix.

 But those last 50 pages will still be easier to end up with in LyX if you
 convert now.


I have found conversions painful, they come into LyX OK but do not
necessarily compile well.  There are often problem characters - smart
quotes etc



-- 
Stephen


Re: Re: Word import

2010-05-14 Thread stefano franchi
On Fri, May 14, 2010 at 3:40 AM, stephen's mailinglist account 
stephen4mailingli...@googlemail.com wrote:

 
  If you're already 250 pages into it then yes, you want to look for
  conversions.  At worst you could install OpenOffice, convert the Word
  document, then convert to Lyx (I think you may have to convert to LaTeX,
  then from there to LyX).  Between the fundamental differences between
 Word
  and LaTeX, and the fact that you've been WYSIWYGing you are guaranteed to
  end up with a messed-up document, which you will have to fix.
 
  But those last 50 pages will still be easier to end up with in LyX if you
  convert now.
 

 I have found conversions painful, they come into LyX OK but do not
 necessarily compile well.  There are often problem characters - smart
 quotes etc



My usual route (I have to do it quite often, unfortunately) is the
following:

1. Save from word to rtf

2. Convert rtf to Latex with rtf2latex

3. Open the latex file in a text editor and clean it up. I usually have to
fix single and double quotes, countless  \tab commands at the beginning of
paragraphs,  and other miscellaneous attempts by  rtf2latex to replicate
word formatting in latex.

4. Convert biblio to bibtex, if necessary, with endnote -- save to bibtex
format -- jabref

5. Import file into lyx, set formatting options (class, etc).

6. Reinsert all bib references manually from converted bibtex database.

It is a rather long and tedious  process, unfortunately. If you will really
need the to convert your file to Lyx/Latex eventually, I would start as soon
as possible. The more you wait, the longer and more tedious the process will
become. Given that you already have  150 or so pages in Word, it may not be
worth it. Is the document going to a publisher? In that case, for instance,
you may be better off with Word. On the other hand, if you are sure it will
have to be Latex at the end, by all means start right away. And plan for a
few  days of boring work.


Cheers,

Stefano



 --
 Stephen




-- 
__
Stefano Franchi
Department of Philosophy   Ph:   (1) 979 862-2211
Texas AM University Fax: (1) 979 845-0458
College Station, Texas, USA


Re: Re: Word import

2010-05-14 Thread stephen's mailinglist account

 If you're already 250 pages into it then yes, you want to look for
 conversions.  At worst you could install OpenOffice, convert the Word
 document, then convert to Lyx (I think you may have to convert to LaTeX,
 then from there to LyX).  Between the fundamental differences between Word
 and LaTeX, and the fact that you've been WYSIWYGing you are guaranteed to
 end up with a messed-up document, which you will have to fix.

 But those last 50 pages will still be easier to end up with in LyX if you
 convert now.


I have found conversions painful, they come into LyX OK but do not
necessarily compile well.  There are often problem characters - smart
quotes etc



-- 
Stephen


Re: Re: Word import

2010-05-14 Thread stefano franchi
On Fri, May 14, 2010 at 3:40 AM, stephen's mailinglist account 
stephen4mailingli...@googlemail.com wrote:

 
  If you're already 250 pages into it then yes, you want to look for
  conversions.  At worst you could install OpenOffice, convert the Word
  document, then convert to Lyx (I think you may have to convert to LaTeX,
  then from there to LyX).  Between the fundamental differences between
 Word
  and LaTeX, and the fact that you've been WYSIWYGing you are guaranteed to
  end up with a messed-up document, which you will have to fix.
 
  But those last 50 pages will still be easier to end up with in LyX if you
  convert now.
 

 I have found conversions painful, they come into LyX OK but do not
 necessarily compile well.  There are often problem characters - smart
 quotes etc



My usual route (I have to do it quite often, unfortunately) is the
following:

1. Save from word to rtf

2. Convert rtf to Latex with rtf2latex

3. Open the latex file in a text editor and clean it up. I usually have to
fix single and double quotes, countless  \tab commands at the beginning of
paragraphs,  and other miscellaneous attempts by  rtf2latex to replicate
word formatting in latex.

4. Convert biblio to bibtex, if necessary, with endnote -- save to bibtex
format -- jabref

5. Import file into lyx, set formatting options (class, etc).

6. Reinsert all bib references manually from converted bibtex database.

It is a rather long and tedious  process, unfortunately. If you will really
need the to convert your file to Lyx/Latex eventually, I would start as soon
as possible. The more you wait, the longer and more tedious the process will
become. Given that you already have  150 or so pages in Word, it may not be
worth it. Is the document going to a publisher? In that case, for instance,
you may be better off with Word. On the other hand, if you are sure it will
have to be Latex at the end, by all means start right away. And plan for a
few  days of boring work.


Cheers,

Stefano



 --
 Stephen




-- 
__
Stefano Franchi
Department of Philosophy   Ph:   (1) 979 862-2211
Texas AM University Fax: (1) 979 845-0458
College Station, Texas, USA


Re: Re: Word import

2010-05-14 Thread stephen's mailinglist account
>
> If you're already 250 pages into it then yes, you want to look for
> conversions.  At worst you could install OpenOffice, convert the Word
> document, then convert to Lyx (I think you may have to convert to LaTeX,
> then from there to LyX).  Between the fundamental differences between Word
> and LaTeX, and the fact that you've been WYSIWYGing you are guaranteed to
> end up with a messed-up document, which you will have to fix.
>
> But those last 50 pages will still be easier to end up with in LyX if you
> convert now.
>

I have found conversions painful, they come into LyX OK but do not
necessarily compile well.  There are often problem characters - smart
quotes etc



-- 
Stephen


Re: Re: Word import

2010-05-14 Thread stefano franchi
On Fri, May 14, 2010 at 3:40 AM, stephen's mailinglist account <
stephen4mailingli...@googlemail.com> wrote:

> >
> > If you're already 250 pages into it then yes, you want to look for
> > conversions.  At worst you could install OpenOffice, convert the Word
> > document, then convert to Lyx (I think you may have to convert to LaTeX,
> > then from there to LyX).  Between the fundamental differences between
> Word
> > and LaTeX, and the fact that you've been WYSIWYGing you are guaranteed to
> > end up with a messed-up document, which you will have to fix.
> >
> > But those last 50 pages will still be easier to end up with in LyX if you
> > convert now.
> >
>
> I have found conversions painful, they come into LyX OK but do not
> necessarily compile well.  There are often problem characters - smart
> quotes etc
>
>
>
My usual route (I have to do it quite often, unfortunately) is the
following:

1. Save from word to rtf

2. Convert rtf to Latex with rtf2latex

3. Open the latex file in a text editor and clean it up. I usually have to
fix single and double quotes, countless  \tab commands at the beginning of
paragraphs,  and other miscellaneous attempts by  rtf2latex to replicate
word formatting in latex.

4. Convert biblio to bibtex, if necessary, with endnote --> save to bibtex
format --> jabref

5. Import file into lyx, set formatting options (class, etc).

6. Reinsert all bib references manually from converted bibtex database.

It is a rather long and tedious  process, unfortunately. If you will really
need the to convert your file to Lyx/Latex eventually, I would start as soon
as possible. The more you wait, the longer and more tedious the process will
become. Given that you already have  150 or so pages in Word, it may not be
worth it. Is the document going to a publisher? In that case, for instance,
you may be better off with Word. On the other hand, if you are sure it will
have to be Latex at the end, by all means start right away. And plan for a
few  days of boring work.


Cheers,

Stefano


>
> --
> Stephen
>



-- 
__
Stefano Franchi
Department of Philosophy   Ph:   (1) 979 862-2211
Texas A University Fax: (1) 979 845-0458
College Station, Texas, USA


Word import

2010-05-13 Thread *Meredith *
Having realised that the importing of my 500+ references into Lyx would be
quite a mission, I decided to write the very large document I am working on
in Word 2007, and then when I get to the rough draft stage to import and
format in Lyx. I was just curious if anyone had any suggestions on how to
make this transition as smooth as possible. Ideally I'd like to keep most of
the basic formating from Word (italics and indents, heading classes I can of
course input into Lyx).
Many thanks for any help you can provide!
Meredith


Re: Word import

2010-05-13 Thread stephen's mailinglist account
On 13 May 2010 11:48, *Meredith * meremai...@gmail.com wrote:
 Having realised that the importing of my 500+ references into Lyx would be
 quite a mission, I decided to write the very large document I am working on
 in Word 2007, and then when I get to the rough draft stage to import and
 format in Lyx. I was just curious if anyone had any suggestions on how to
 make this transition as smooth as possible. Ideally I'd like to keep most of
 the basic formating from Word (italics and indents, heading classes I can of
 course input into Lyx).
 Many thanks for any help you can provide!
 Meredith


What format are your references in now? Are they stored in some form
of database/reference manager, or are they in a word document?

-- 
Stephen


Fwd: Word import

2010-05-13 Thread stephen's mailinglist account
Stephen, They're in endnote. I've tried several reccommended programs
for transcoding into Bibtex etc but its all been such a mission I just
decided to write in Word and move to Lyx later.
thanks

On Thu, May 13, 2010 at 11:43 PM, stephen's mailinglist account
stephen4mailingli...@googlemail.com wrote:

 On 13 May 2010 11:48, *Meredith * meremai...@gmail.com wrote:
  Having realised that the importing of my 500+ references into Lyx would be
  quite a mission, I decided to write the very large document I am working on
  in Word 2007, and then when I get to the rough draft stage to import and
  format in Lyx. I was just curious if anyone had any suggestions on how to
  make this transition as smooth as possible. Ideally I'd like to keep most of
  the basic formating from Word (italics and indents, heading classes I can of
  course input into Lyx).
  Many thanks for any help you can provide!
  Meredith
 

 What format are your references in now? Are they stored in some form
 of database/reference manager, or are they in a word document?

 --
 Stephen


forwarded to list

-- 
Stephen


Re: Fwd: Word import

2010-05-13 Thread Florian Rubach


On 13.05.2010 13:48, stephen's mailinglist account wrote:

Stephen, They're in endnote. I've tried several reccommended programs
for transcoding into Bibtex etc but its all been such a mission I just
decided to write in Word and move to Lyx later.
thanks
   


It should be everything but a big deal to import an endnote database 
into jabref. jabref saves in .bib format, very well usable by lyx/bibtex.


Re: Fwd: Word import

2010-05-13 Thread Rob Oakes
It's been a while since I've used it, but I thought that EndNote was
able to directly export to BibTeX.  If not, you can export to EndNote
XML and then import using JabRef, BibDesk (Mac OS X), Zotero or
Mendeley.  Or you can upload to CiteULike and then download a converted
BibTeX file to use locally.

The very nice thing about BibTeX is that it seems like everything is
able to read and write to it.  Now, if you were trying to import .doc
files to LyX, that is a little bit more difficult ...



Fwd: Re: Word import

2010-05-13 Thread Tim Wescott

(this list always fools me into replying directly, instead of to the list)

Yes, the learning curve is steep, but worth it for the control you get.

If you're already 250 pages into it then yes, you want to look for 
conversions.  At worst you could install OpenOffice, convert the Word 
document, then convert to Lyx (I think you may have to convert to LaTeX, 
then from there to LyX).  Between the fundamental differences between 
Word and LaTeX, and the fact that you've been WYSIWYGing you are 
guaranteed to end up with a messed-up document, which you will have to fix.


But those last 50 pages will still be easier to end up with in LyX if 
you convert now.


*Meredith * wrote:
Thanks for this Tim, being new to Lyx it just seemed like a steep 
learning curve (though outputs are so much better than word) that I 
thought pasting the entire ref list at the end of the document (from 
word) would be easier than importing them all (especially since I have 
only about 50 more pages to write and 250 already written in word). Is 
there an easy way that you know of to import word documents?


On Fri, May 14, 2010 at 6:53 AM, Tim Wescott t...@wescottdesign.com 
mailto:t...@wescottdesign.com wrote:


*Meredith * wrote:

Having realised that the importing of my 500+ references into
Lyx would be quite a mission, I decided to write the very
large document I am working on in Word 2007, and then when I
get to the rough draft stage to import and format in Lyx. I
was just curious if anyone had any suggestions on how to make
this transition as smooth as possible. Ideally I'd like to
keep most of the basic formating from Word (italics and
indents, heading classes I can of course input into Lyx).
Many thanks for any help you can provide!
Meredith

If importing those 500 references is going to be a chore now, how
is it going to be less of a chore when you have to do it and deal
with your very large document to boot?

You _will_ have less work to do to end up with a decent LyX
document if you write in LyX from the start, even if you do have
those references to contend with.

-- 
Tim Wescott

Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com






--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com


---BeginMessage---
Thanks for this Tim, being new to Lyx it just seemed like a steep learning
curve (though outputs are so much better than word) that I thought pasting
the entire ref list at the end of the document (from word) would be easier
than importing them all (especially since I have only about 50 more pages to
write and 250 already written in word). Is there an easy way that you know
of to import word documents?

On Fri, May 14, 2010 at 6:53 AM, Tim Wescott t...@wescottdesign.com wrote:

 *Meredith * wrote:

 Having realised that the importing of my 500+ references into Lyx would be
 quite a mission, I decided to write the very large document I am working on
 in Word 2007, and then when I get to the rough draft stage to import and
 format in Lyx. I was just curious if anyone had any suggestions on how to
 make this transition as smooth as possible. Ideally I'd like to keep most of
 the basic formating from Word (italics and indents, heading classes I can of
 course input into Lyx).
 Many thanks for any help you can provide!
 Meredith

 If importing those 500 references is going to be a chore now, how is it
 going to be less of a chore when you have to do it and deal with your very
 large document to boot?

 You _will_ have less work to do to end up with a decent LyX document if you
 write in LyX from the start, even if you do have those references to contend
 with.

 --
 Tim Wescott
 Wescott Design Services
 Voice: 503-631-7815
 Cell:  503-349-8432
 http://www.wescottdesign.com



---End Message---


Word import

2010-05-13 Thread *Meredith *
Having realised that the importing of my 500+ references into Lyx would be
quite a mission, I decided to write the very large document I am working on
in Word 2007, and then when I get to the rough draft stage to import and
format in Lyx. I was just curious if anyone had any suggestions on how to
make this transition as smooth as possible. Ideally I'd like to keep most of
the basic formating from Word (italics and indents, heading classes I can of
course input into Lyx).
Many thanks for any help you can provide!
Meredith


Re: Word import

2010-05-13 Thread stephen's mailinglist account
On 13 May 2010 11:48, *Meredith * meremai...@gmail.com wrote:
 Having realised that the importing of my 500+ references into Lyx would be
 quite a mission, I decided to write the very large document I am working on
 in Word 2007, and then when I get to the rough draft stage to import and
 format in Lyx. I was just curious if anyone had any suggestions on how to
 make this transition as smooth as possible. Ideally I'd like to keep most of
 the basic formating from Word (italics and indents, heading classes I can of
 course input into Lyx).
 Many thanks for any help you can provide!
 Meredith


What format are your references in now? Are they stored in some form
of database/reference manager, or are they in a word document?

-- 
Stephen


Fwd: Word import

2010-05-13 Thread stephen's mailinglist account
Stephen, They're in endnote. I've tried several reccommended programs
for transcoding into Bibtex etc but its all been such a mission I just
decided to write in Word and move to Lyx later.
thanks

On Thu, May 13, 2010 at 11:43 PM, stephen's mailinglist account
stephen4mailingli...@googlemail.com wrote:

 On 13 May 2010 11:48, *Meredith * meremai...@gmail.com wrote:
  Having realised that the importing of my 500+ references into Lyx would be
  quite a mission, I decided to write the very large document I am working on
  in Word 2007, and then when I get to the rough draft stage to import and
  format in Lyx. I was just curious if anyone had any suggestions on how to
  make this transition as smooth as possible. Ideally I'd like to keep most of
  the basic formating from Word (italics and indents, heading classes I can of
  course input into Lyx).
  Many thanks for any help you can provide!
  Meredith
 

 What format are your references in now? Are they stored in some form
 of database/reference manager, or are they in a word document?

 --
 Stephen


forwarded to list

-- 
Stephen


Re: Fwd: Word import

2010-05-13 Thread Florian Rubach


On 13.05.2010 13:48, stephen's mailinglist account wrote:

Stephen, They're in endnote. I've tried several reccommended programs
for transcoding into Bibtex etc but its all been such a mission I just
decided to write in Word and move to Lyx later.
thanks
   


It should be everything but a big deal to import an endnote database 
into jabref. jabref saves in .bib format, very well usable by lyx/bibtex.


Re: Fwd: Word import

2010-05-13 Thread Rob Oakes
It's been a while since I've used it, but I thought that EndNote was
able to directly export to BibTeX.  If not, you can export to EndNote
XML and then import using JabRef, BibDesk (Mac OS X), Zotero or
Mendeley.  Or you can upload to CiteULike and then download a converted
BibTeX file to use locally.

The very nice thing about BibTeX is that it seems like everything is
able to read and write to it.  Now, if you were trying to import .doc
files to LyX, that is a little bit more difficult ...



Fwd: Re: Word import

2010-05-13 Thread Tim Wescott

(this list always fools me into replying directly, instead of to the list)

Yes, the learning curve is steep, but worth it for the control you get.

If you're already 250 pages into it then yes, you want to look for 
conversions.  At worst you could install OpenOffice, convert the Word 
document, then convert to Lyx (I think you may have to convert to LaTeX, 
then from there to LyX).  Between the fundamental differences between 
Word and LaTeX, and the fact that you've been WYSIWYGing you are 
guaranteed to end up with a messed-up document, which you will have to fix.


But those last 50 pages will still be easier to end up with in LyX if 
you convert now.


*Meredith * wrote:
Thanks for this Tim, being new to Lyx it just seemed like a steep 
learning curve (though outputs are so much better than word) that I 
thought pasting the entire ref list at the end of the document (from 
word) would be easier than importing them all (especially since I have 
only about 50 more pages to write and 250 already written in word). Is 
there an easy way that you know of to import word documents?


On Fri, May 14, 2010 at 6:53 AM, Tim Wescott t...@wescottdesign.com 
mailto:t...@wescottdesign.com wrote:


*Meredith * wrote:

Having realised that the importing of my 500+ references into
Lyx would be quite a mission, I decided to write the very
large document I am working on in Word 2007, and then when I
get to the rough draft stage to import and format in Lyx. I
was just curious if anyone had any suggestions on how to make
this transition as smooth as possible. Ideally I'd like to
keep most of the basic formating from Word (italics and
indents, heading classes I can of course input into Lyx).
Many thanks for any help you can provide!
Meredith

If importing those 500 references is going to be a chore now, how
is it going to be less of a chore when you have to do it and deal
with your very large document to boot?

You _will_ have less work to do to end up with a decent LyX
document if you write in LyX from the start, even if you do have
those references to contend with.

-- 
Tim Wescott

Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com






--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com


---BeginMessage---
Thanks for this Tim, being new to Lyx it just seemed like a steep learning
curve (though outputs are so much better than word) that I thought pasting
the entire ref list at the end of the document (from word) would be easier
than importing them all (especially since I have only about 50 more pages to
write and 250 already written in word). Is there an easy way that you know
of to import word documents?

On Fri, May 14, 2010 at 6:53 AM, Tim Wescott t...@wescottdesign.com wrote:

 *Meredith * wrote:

 Having realised that the importing of my 500+ references into Lyx would be
 quite a mission, I decided to write the very large document I am working on
 in Word 2007, and then when I get to the rough draft stage to import and
 format in Lyx. I was just curious if anyone had any suggestions on how to
 make this transition as smooth as possible. Ideally I'd like to keep most of
 the basic formating from Word (italics and indents, heading classes I can of
 course input into Lyx).
 Many thanks for any help you can provide!
 Meredith

 If importing those 500 references is going to be a chore now, how is it
 going to be less of a chore when you have to do it and deal with your very
 large document to boot?

 You _will_ have less work to do to end up with a decent LyX document if you
 write in LyX from the start, even if you do have those references to contend
 with.

 --
 Tim Wescott
 Wescott Design Services
 Voice: 503-631-7815
 Cell:  503-349-8432
 http://www.wescottdesign.com



---End Message---


Word import

2010-05-13 Thread *Meredith *
Having realised that the importing of my 500+ references into Lyx would be
quite a mission, I decided to write the very large document I am working on
in Word 2007, and then when I get to the rough draft stage to import and
format in Lyx. I was just curious if anyone had any suggestions on how to
make this transition as smooth as possible. Ideally I'd like to keep most of
the basic formating from Word (italics and indents, heading classes I can of
course input into Lyx).
Many thanks for any help you can provide!
Meredith


Re: Word import

2010-05-13 Thread stephen's mailinglist account
On 13 May 2010 11:48, *Meredith *  wrote:
> Having realised that the importing of my 500+ references into Lyx would be
> quite a mission, I decided to write the very large document I am working on
> in Word 2007, and then when I get to the rough draft stage to import and
> format in Lyx. I was just curious if anyone had any suggestions on how to
> make this transition as smooth as possible. Ideally I'd like to keep most of
> the basic formating from Word (italics and indents, heading classes I can of
> course input into Lyx).
> Many thanks for any help you can provide!
> Meredith
>

What format are your references in now? Are they stored in some form
of database/reference manager, or are they in a word document?

-- 
Stephen


Fwd: Word import

2010-05-13 Thread stephen's mailinglist account
Stephen, They're in endnote. I've tried several reccommended programs
for transcoding into Bibtex etc but its all been such a mission I just
decided to write in Word and move to Lyx later.
thanks

On Thu, May 13, 2010 at 11:43 PM, stephen's mailinglist account
 wrote:
>
> On 13 May 2010 11:48, *Meredith *  wrote:
> > Having realised that the importing of my 500+ references into Lyx would be
> > quite a mission, I decided to write the very large document I am working on
> > in Word 2007, and then when I get to the rough draft stage to import and
> > format in Lyx. I was just curious if anyone had any suggestions on how to
> > make this transition as smooth as possible. Ideally I'd like to keep most of
> > the basic formating from Word (italics and indents, heading classes I can of
> > course input into Lyx).
> > Many thanks for any help you can provide!
> > Meredith
> >
>
> What format are your references in now? Are they stored in some form
> of database/reference manager, or are they in a word document?
>
> --
> Stephen


forwarded to list

-- 
Stephen


Re: Fwd: Word import

2010-05-13 Thread Florian Rubach


On 13.05.2010 13:48, stephen's mailinglist account wrote:

Stephen, They're in endnote. I've tried several reccommended programs
for transcoding into Bibtex etc but its all been such a mission I just
decided to write in Word and move to Lyx later.
thanks
   


It should be everything but a big deal to import an endnote database 
into jabref. jabref saves in .bib format, very well usable by lyx/bibtex.


Re: Fwd: Word import

2010-05-13 Thread Rob Oakes
It's been a while since I've used it, but I thought that EndNote was
able to directly export to BibTeX.  If not, you can export to EndNote
XML and then import using JabRef, BibDesk (Mac OS X), Zotero or
Mendeley.  Or you can upload to CiteULike and then download a converted
BibTeX file to use locally.

The very nice thing about BibTeX is that it seems like everything is
able to read and write to it.  Now, if you were trying to import .doc
files to LyX, that is a little bit more difficult ...



Fwd: Re: Word import

2010-05-13 Thread Tim Wescott

(this list always fools me into replying directly, instead of to the list)

Yes, the learning curve is steep, but worth it for the control you get.

If you're already 250 pages into it then yes, you want to look for 
conversions.  At worst you could install OpenOffice, convert the Word 
document, then convert to Lyx (I think you may have to convert to LaTeX, 
then from there to LyX).  Between the fundamental differences between 
Word and LaTeX, and the fact that you've been WYSIWYGing you are 
guaranteed to end up with a messed-up document, which you will have to fix.


But those last 50 pages will still be easier to end up with in LyX if 
you convert now.


*Meredith * wrote:
Thanks for this Tim, being new to Lyx it just seemed like a steep 
learning curve (though outputs are so much better than word) that I 
thought pasting the entire ref list at the end of the document (from 
word) would be easier than importing them all (especially since I have 
only about 50 more pages to write and 250 already written in word). Is 
there an easy way that you know of to import word documents?


On Fri, May 14, 2010 at 6:53 AM, Tim Wescott > wrote:


*Meredith * wrote:

Having realised that the importing of my 500+ references into
Lyx would be quite a mission, I decided to write the very
large document I am working on in Word 2007, and then when I
get to the rough draft stage to import and format in Lyx. I
was just curious if anyone had any suggestions on how to make
this transition as smooth as possible. Ideally I'd like to
keep most of the basic formating from Word (italics and
indents, heading classes I can of course input into Lyx).
Many thanks for any help you can provide!
Meredith

If importing those 500 references is going to be a chore now, how
is it going to be less of a chore when you have to do it and deal
with your very large document to boot?

You _will_ have less work to do to end up with a decent LyX
document if you write in LyX from the start, even if you do have
those references to contend with.

-- 
Tim Wescott

Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com






--
Tim Wescott
Wescott Design Services
Voice: 503-631-7815
Cell:  503-349-8432
http://www.wescottdesign.com


--- Begin Message ---
Thanks for this Tim, being new to Lyx it just seemed like a steep learning
curve (though outputs are so much better than word) that I thought pasting
the entire ref list at the end of the document (from word) would be easier
than importing them all (especially since I have only about 50 more pages to
write and 250 already written in word). Is there an easy way that you know
of to import word documents?

On Fri, May 14, 2010 at 6:53 AM, Tim Wescott  wrote:

> *Meredith * wrote:
>
>> Having realised that the importing of my 500+ references into Lyx would be
>> quite a mission, I decided to write the very large document I am working on
>> in Word 2007, and then when I get to the rough draft stage to import and
>> format in Lyx. I was just curious if anyone had any suggestions on how to
>> make this transition as smooth as possible. Ideally I'd like to keep most of
>> the basic formating from Word (italics and indents, heading classes I can of
>> course input into Lyx).
>> Many thanks for any help you can provide!
>> Meredith
>>
> If importing those 500 references is going to be a chore now, how is it
> going to be less of a chore when you have to do it and deal with your very
> large document to boot?
>
> You _will_ have less work to do to end up with a decent LyX document if you
> write in LyX from the start, even if you do have those references to contend
> with.
>
> --
> Tim Wescott
> Wescott Design Services
> Voice: 503-631-7815
> Cell:  503-349-8432
> http://www.wescottdesign.com
>
>
>
--- End Message ---


Word Import - the solution

2005-03-09 Thread Geoffrey Lloyd
After much fiddling I have found the problem.  Lyx doesnt like the 
GnuWin32\bin files to have a path that includes spaces.  I should have 
realised this before.

With the tools in c:\GnuWin32\bin it works very well.
Thank you to all those who had helpful suggestions.
Geoff


Re: Word Import - the solution

2005-03-09 Thread Martin A. Hansen
consider this a feature request.


let lyx be able to allow filenames with meta-chars.



martin





On Wed, Mar 09, 2005 at 01:08:35PM +, Geoffrey Lloyd wrote:
 After much fiddling I have found the problem.  Lyx doesnt like the 
 GnuWin32\bin files to have a path that includes spaces.  I should have 
 realised this before.
 
 With the tools in c:\GnuWin32\bin it works very well.
 
 Thank you to all those who had helpful suggestions.
 
 
 Geoff


Re: Word Import - the solution

2005-03-09 Thread Helge Hafting
Martin A. Hansen wrote:
consider this a feature request.
let lyx be able to allow filenames with meta-chars.

martin


On Wed, Mar 09, 2005 at 01:08:35PM +, Geoffrey Lloyd wrote:
 

After much fiddling I have found the problem.  Lyx doesnt like the 
GnuWin32\bin files to have a path that includes spaces.  I should have 
realised this before.

With the tools in c:\GnuWin32\bin it works very well.
Thank you to all those who had helpful suggestions.
Geoff
   

Note that lyx can be fixed by the lyx team, but lyx relies on latex 
which also
struggle with spaces in filenames.  People here does not have the power
to change latex.

Helge Hafting


Re: Word Import - the solution

2005-03-09 Thread Martin A. Hansen
but shurely these troublesome paths can have any meta-chars escaped from lyx?


martin



On Wed, Mar 09, 2005 at 02:33:11PM +0100, Helge Hafting wrote:
 Martin A. Hansen wrote:
 
 consider this a feature request.
 
 
 let lyx be able to allow filenames with meta-chars.
 
 
 
 martin
 
 
 
 
 
 On Wed, Mar 09, 2005 at 01:08:35PM +, Geoffrey Lloyd wrote:
  
 
 After much fiddling I have found the problem.  Lyx doesnt like the 
 GnuWin32\bin files to have a path that includes spaces.  I should have 
 realised this before.
 
 With the tools in c:\GnuWin32\bin it works very well.
 
 Thank you to all those who had helpful suggestions.
 
 
 Geoff

 
 Note that lyx can be fixed by the lyx team, but lyx relies on latex 
 which also
 struggle with spaces in filenames.  People here does not have the power
 to change latex.
 
 Helge Hafting


Re: Word Import - the solution

2005-03-09 Thread Angus Leeming
Helge Hafting wrote:
 Note that lyx can be fixed by the lyx team, but lyx relies on latex
 which also struggle with spaces in filenames.  People here does not have
 the power to change latex.

True enough, Helge, but MikTeX (Windows) and teTeX 3 (*nix) both provide
support for spaces in filenames. LyX's LaTeX output would have to change
to enable this support, but it is possible.

As for the rest, it's just an illustration that most/all of the coding is
done by people using Linux as their development platform. Spaces in paths
just don't come up that often, so bugs slip through.

-- 
Angus



Re: Word Import - the solution

2005-03-09 Thread Herbert Voss
Helge Hafting wrote:
Note that lyx can be fixed by the lyx team, but lyx relies on latex 
which also
struggle with spaces in filenames.  People here does not have the power
to change latex.
latex a\ file\ with\ a\ space.tex
is no problem
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: Word Import - the solution

2005-03-09 Thread Jean-Marc Lasgouttes
 Angus == Angus Leeming [EMAIL PROTECTED] writes:

Angus Helge Hafting wrote:
 Note that lyx can be fixed by the lyx team, but lyx relies on latex
 which also struggle with spaces in filenames. People here does not
 have the power to change latex.

Angus True enough, Helge, but MikTeX (Windows) and teTeX 3 (*nix)
Angus both provide support for spaces in filenames. LyX's LaTeX
Angus output would have to change to enable this support, but it is
Angus possible.

I plan to work on this shortly. Hopefully having the basic things
working will not be too difficult when TeX supports them.

JMarc


Word Import - the solution

2005-03-09 Thread Geoffrey Lloyd
After much fiddling I have found the problem.  Lyx doesnt like the 
GnuWin32\bin files to have a path that includes spaces.  I should have 
realised this before.

With the tools in c:\GnuWin32\bin it works very well.
Thank you to all those who had helpful suggestions.
Geoff


Re: Word Import - the solution

2005-03-09 Thread Martin A. Hansen
consider this a feature request.


let lyx be able to allow filenames with meta-chars.



martin





On Wed, Mar 09, 2005 at 01:08:35PM +, Geoffrey Lloyd wrote:
 After much fiddling I have found the problem.  Lyx doesnt like the 
 GnuWin32\bin files to have a path that includes spaces.  I should have 
 realised this before.
 
 With the tools in c:\GnuWin32\bin it works very well.
 
 Thank you to all those who had helpful suggestions.
 
 
 Geoff


Re: Word Import - the solution

2005-03-09 Thread Helge Hafting
Martin A. Hansen wrote:
consider this a feature request.
let lyx be able to allow filenames with meta-chars.

martin


On Wed, Mar 09, 2005 at 01:08:35PM +, Geoffrey Lloyd wrote:
 

After much fiddling I have found the problem.  Lyx doesnt like the 
GnuWin32\bin files to have a path that includes spaces.  I should have 
realised this before.

With the tools in c:\GnuWin32\bin it works very well.
Thank you to all those who had helpful suggestions.
Geoff
   

Note that lyx can be fixed by the lyx team, but lyx relies on latex 
which also
struggle with spaces in filenames.  People here does not have the power
to change latex.

Helge Hafting


Re: Word Import - the solution

2005-03-09 Thread Martin A. Hansen
but shurely these troublesome paths can have any meta-chars escaped from lyx?


martin



On Wed, Mar 09, 2005 at 02:33:11PM +0100, Helge Hafting wrote:
 Martin A. Hansen wrote:
 
 consider this a feature request.
 
 
 let lyx be able to allow filenames with meta-chars.
 
 
 
 martin
 
 
 
 
 
 On Wed, Mar 09, 2005 at 01:08:35PM +, Geoffrey Lloyd wrote:
  
 
 After much fiddling I have found the problem.  Lyx doesnt like the 
 GnuWin32\bin files to have a path that includes spaces.  I should have 
 realised this before.
 
 With the tools in c:\GnuWin32\bin it works very well.
 
 Thank you to all those who had helpful suggestions.
 
 
 Geoff

 
 Note that lyx can be fixed by the lyx team, but lyx relies on latex 
 which also
 struggle with spaces in filenames.  People here does not have the power
 to change latex.
 
 Helge Hafting


Re: Word Import - the solution

2005-03-09 Thread Angus Leeming
Helge Hafting wrote:
 Note that lyx can be fixed by the lyx team, but lyx relies on latex
 which also struggle with spaces in filenames.  People here does not have
 the power to change latex.

True enough, Helge, but MikTeX (Windows) and teTeX 3 (*nix) both provide
support for spaces in filenames. LyX's LaTeX output would have to change
to enable this support, but it is possible.

As for the rest, it's just an illustration that most/all of the coding is
done by people using Linux as their development platform. Spaces in paths
just don't come up that often, so bugs slip through.

-- 
Angus



Re: Word Import - the solution

2005-03-09 Thread Herbert Voss
Helge Hafting wrote:
Note that lyx can be fixed by the lyx team, but lyx relies on latex 
which also
struggle with spaces in filenames.  People here does not have the power
to change latex.
latex a\ file\ with\ a\ space.tex
is no problem
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: Word Import - the solution

2005-03-09 Thread Jean-Marc Lasgouttes
 Angus == Angus Leeming [EMAIL PROTECTED] writes:

Angus Helge Hafting wrote:
 Note that lyx can be fixed by the lyx team, but lyx relies on latex
 which also struggle with spaces in filenames. People here does not
 have the power to change latex.

Angus True enough, Helge, but MikTeX (Windows) and teTeX 3 (*nix)
Angus both provide support for spaces in filenames. LyX's LaTeX
Angus output would have to change to enable this support, but it is
Angus possible.

I plan to work on this shortly. Hopefully having the basic things
working will not be too difficult when TeX supports them.

JMarc


Word Import - the solution

2005-03-09 Thread Geoffrey Lloyd
After much fiddling I have found the problem.  Lyx doesnt like the 
GnuWin32\bin files to have a path that includes spaces.  I should have 
realised this before.

With the tools in c:\GnuWin32\bin it works very well.
Thank you to all those who had helpful suggestions.
Geoff


Re: Word Import - the solution

2005-03-09 Thread Martin A. Hansen
consider this a feature request.


let lyx be able to allow filenames with meta-chars.



martin





On Wed, Mar 09, 2005 at 01:08:35PM +, Geoffrey Lloyd wrote:
> After much fiddling I have found the problem.  Lyx doesnt like the 
> GnuWin32\bin files to have a path that includes spaces.  I should have 
> realised this before.
> 
> With the tools in c:\GnuWin32\bin it works very well.
> 
> Thank you to all those who had helpful suggestions.
> 
> 
> Geoff


Re: Word Import - the solution

2005-03-09 Thread Helge Hafting
Martin A. Hansen wrote:
consider this a feature request.
let lyx be able to allow filenames with meta-chars.

martin


On Wed, Mar 09, 2005 at 01:08:35PM +, Geoffrey Lloyd wrote:
 

After much fiddling I have found the problem.  Lyx doesnt like the 
GnuWin32\bin files to have a path that includes spaces.  I should have 
realised this before.

With the tools in c:\GnuWin32\bin it works very well.
Thank you to all those who had helpful suggestions.
Geoff
   

Note that lyx can be fixed by the lyx team, but lyx relies on latex 
which also
struggle with spaces in filenames.  People here does not have the power
to change latex.

Helge Hafting


Re: Word Import - the solution

2005-03-09 Thread Martin A. Hansen
but shurely these troublesome paths can have any meta-chars escaped from lyx?


martin



On Wed, Mar 09, 2005 at 02:33:11PM +0100, Helge Hafting wrote:
> Martin A. Hansen wrote:
> 
> >consider this a feature request.
> >
> >
> >let lyx be able to allow filenames with meta-chars.
> >
> >
> >
> >martin
> >
> >
> >
> >
> >
> >On Wed, Mar 09, 2005 at 01:08:35PM +, Geoffrey Lloyd wrote:
> > 
> >
> >>After much fiddling I have found the problem.  Lyx doesnt like the 
> >>GnuWin32\bin files to have a path that includes spaces.  I should have 
> >>realised this before.
> >>
> >>With the tools in c:\GnuWin32\bin it works very well.
> >>
> >>Thank you to all those who had helpful suggestions.
> >>
> >>
> >>Geoff
> >>   
> >>
> Note that lyx can be fixed by the lyx team, but lyx relies on latex 
> which also
> struggle with spaces in filenames.  People here does not have the power
> to change latex.
> 
> Helge Hafting


Re: Word Import - the solution

2005-03-09 Thread Angus Leeming
Helge Hafting wrote:
> Note that lyx can be fixed by the lyx team, but lyx relies on latex
> which also struggle with spaces in filenames.  People here does not have
> the power to change latex.

True enough, Helge, but MikTeX (Windows) and teTeX 3 (*nix) both provide
support for spaces in filenames. LyX's LaTeX output would have to change
to enable this support, but it is possible.

As for the rest, it's just an illustration that most/all of the coding is
done by people using Linux as their development platform. Spaces in paths
just don't come up that often, so bugs slip through.

-- 
Angus



Re: Word Import - the solution

2005-03-09 Thread Herbert Voss
Helge Hafting wrote:
Note that lyx can be fixed by the lyx team, but lyx relies on latex 
which also
struggle with spaces in filenames.  People here does not have the power
to change latex.
latex a\ file\ with\ a\ space.tex
is no problem
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: Word Import - the solution

2005-03-09 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:

Angus> Helge Hafting wrote:
>> Note that lyx can be fixed by the lyx team, but lyx relies on latex
>> which also struggle with spaces in filenames. People here does not
>> have the power to change latex.

Angus> True enough, Helge, but MikTeX (Windows) and teTeX 3 (*nix)
Angus> both provide support for spaces in filenames. LyX's LaTeX
Angus> output would have to change to enable this support, but it is
Angus> possible.

I plan to work on this shortly. Hopefully having the basic things
working will not be too difficult when TeX supports them.

JMarc


Re: Word import via wvWare in Windows

2005-02-22 Thread Milos Komarcevic
Hi Ekkehart
Ekkehart Schlicht wrote:
Milos:
Thank you for your recent suggestion which may be very useful.
This is just to tell you that it does not work on my
computer (XP, LyX/Win qt 1.3.5) althougfh I have downloaded
and installed all files listed on the Wv for Windows
page (except libgw32c).
I get the message 
I won't mmap that file, using a slower method
I get the same warning, but the conversion works nonetheless. Please 
check if that's maybe not the same case with you.

If you could write instructions that specify the procedure
for obtaining a workable converter, this would be /very/
useful on Wiki.
I DID specify a procedure for a WORKABLE script (if the converter 
doesn't work you have to contact the wv developers), which works on two 
Win2k machines here. I installed wv using the single setup package 
(which installs all the dependencies), not individual files. I also 
installed in a directory with no spaces, i.e. D:\GnuWin32 and put 
D:\GnuWin32\bin in the PATH. Perheps you should try this approach. Try 
it from a command line first on a simple .doc file before you try it 
with lyx, we can better debug it there if here is a problem with the script.

You also need to fix reLyX and lyx2lyx so you have working LaTeX import.
Regards,
Milos


Re: Word import via wvWare in Windows

2005-02-22 Thread Milos Komarcevic
Hi Ekkehart
Ekkehart Schlicht wrote:
Milos:
Thank you for your recent suggestion which may be very useful.
This is just to tell you that it does not work on my
computer (XP, LyX/Win qt 1.3.5) althougfh I have downloaded
and installed all files listed on the Wv for Windows
page (except libgw32c).
I get the message 
I won't mmap that file, using a slower method
I get the same warning, but the conversion works nonetheless. Please 
check if that's maybe not the same case with you.

If you could write instructions that specify the procedure
for obtaining a workable converter, this would be /very/
useful on Wiki.
I DID specify a procedure for a WORKABLE script (if the converter 
doesn't work you have to contact the wv developers), which works on two 
Win2k machines here. I installed wv using the single setup package 
(which installs all the dependencies), not individual files. I also 
installed in a directory with no spaces, i.e. D:\GnuWin32 and put 
D:\GnuWin32\bin in the PATH. Perheps you should try this approach. Try 
it from a command line first on a simple .doc file before you try it 
with lyx, we can better debug it there if here is a problem with the script.

You also need to fix reLyX and lyx2lyx so you have working LaTeX import.
Regards,
Milos


Re: Word import via wvWare in Windows

2005-02-22 Thread Milos Komarcevic
Hi Ekkehart
Ekkehart Schlicht wrote:
Milos:
Thank you for your recent suggestion which may be very useful.
This is just to tell you that it does not work on my
computer (XP, LyX/Win qt 1.3.5) althougfh I have downloaded
and installed all files listed on the Wv for Windows
page (except libgw32c).
I get the message 
"I won't mmap that file, using a slower method"
I get the same warning, but the conversion works nonetheless. Please 
check if that's maybe not the same case with you.

If you could write instructions that specify the procedure
for obtaining a workable converter, this would be /very/
useful on Wiki.
I DID specify a procedure for a WORKABLE script (if the converter 
doesn't work you have to contact the wv developers), which works on two 
Win2k machines here. I installed wv using the single setup package 
(which installs all the dependencies), not individual files. I also 
installed in a directory with no spaces, i.e. D:\GnuWin32 and put 
D:\GnuWin32\bin in the PATH. Perheps you should try this approach. Try 
it from a command line first on a simple .doc file before you try it 
with lyx, we can better debug it there if here is a problem with the script.

You also need to fix reLyX and lyx2lyx so you have working LaTeX import.
Regards,
Milos


Word import via wvWare in Windows

2005-02-20 Thread Milos Komarcevic
I've noticed that the GnuWin32 project ported wvWare for converting Word 
documents, and LyX supports it, so I thought I'd give it a try. Here are 
the results.

As expected, doesn't work out of the box because wvCleanLatex that LyX 
calls is a shell script (a bit useless since GnuWin32 doesn't provide a 
shell???). Tried invoking it with MSYS sh.exe that comes with Ruurd's port 
of LyX, but no dice, that sh.exe doesn't understand commands like 
'basename' etc. So I did my own Win .bat file (very primitive, equivalent 
to only the last line of the original script, i.e. doesn't do any input 
checks, please feel welcome to extend it).

Here goes:
- create GnuWin32\bin\wvCleanLatex.bat with the following line
 @ wvWare -x %~dp0..\share\wv\wvCleanLatex.xml -d %~dp2 -b %~n2 %1  %2
- make sure GnuWin32\bin is in your path
- reconfigure LyX, restart and you're ready to go (there still the isuue of 
a .relyx1 file not being cleaned up)

If you found this useful, could someone please add it to the Wiki.
Regards,
Milos


Re: Word import via wvWare in Windows

2005-02-20 Thread chr
On 20 Feb 2005, Milos Komarcevic wrote:

 I've noticed that the GnuWin32 project ported wvWare for converting Word 
 documents, and LyX supports it, so I thought I'd give it a try. Here are 
 the results.
 
 As expected, doesn't work out of the box because wvCleanLatex that LyX 
 calls is a shell script (a bit useless since GnuWin32 doesn't provide a 
 shell???). Tried invoking it with MSYS sh.exe that comes with Ruurd's port 
 of LyX, but no dice, that sh.exe doesn't understand commands like 
 'basename' etc. So I did my own Win .bat file (very primitive, equivalent 
 to only the last line of the original script, i.e. doesn't do any input 
 checks, please feel welcome to extend it).
 
 Here goes:
 
 - create GnuWin32\bin\wvCleanLatex.bat with the following line
 
   @ wvWare -x %~dp0..\share\wv\wvCleanLatex.xml -d %~dp2 -b %~n2 %1  %2
 
 - make sure GnuWin32\bin is in your path
 
 - reconfigure LyX, restart and you're ready to go (there still the isuue of 
 a .relyx1 file not being cleaned up)
 
 If you found this useful, could someone please add it to the Wiki.

Eh.. you do know that you can add it yourself, don't you? (The secret 
password is simply LyX :-)

regards
/Christian

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Word import via wvWare in Windows

2005-02-20 Thread Milos Komarcevic
I've noticed that the GnuWin32 project ported wvWare for converting Word 
documents, and LyX supports it, so I thought I'd give it a try. Here are 
the results.

As expected, doesn't work out of the box because wvCleanLatex that LyX 
calls is a shell script (a bit useless since GnuWin32 doesn't provide a 
shell???). Tried invoking it with MSYS sh.exe that comes with Ruurd's port 
of LyX, but no dice, that sh.exe doesn't understand commands like 
'basename' etc. So I did my own Win .bat file (very primitive, equivalent 
to only the last line of the original script, i.e. doesn't do any input 
checks, please feel welcome to extend it).

Here goes:
- create GnuWin32\bin\wvCleanLatex.bat with the following line
 @ wvWare -x %~dp0..\share\wv\wvCleanLatex.xml -d %~dp2 -b %~n2 %1  %2
- make sure GnuWin32\bin is in your path
- reconfigure LyX, restart and you're ready to go (there still the isuue of 
a .relyx1 file not being cleaned up)

If you found this useful, could someone please add it to the Wiki.
Regards,
Milos


Re: Word import via wvWare in Windows

2005-02-20 Thread chr
On 20 Feb 2005, Milos Komarcevic wrote:

 I've noticed that the GnuWin32 project ported wvWare for converting Word 
 documents, and LyX supports it, so I thought I'd give it a try. Here are 
 the results.
 
 As expected, doesn't work out of the box because wvCleanLatex that LyX 
 calls is a shell script (a bit useless since GnuWin32 doesn't provide a 
 shell???). Tried invoking it with MSYS sh.exe that comes with Ruurd's port 
 of LyX, but no dice, that sh.exe doesn't understand commands like 
 'basename' etc. So I did my own Win .bat file (very primitive, equivalent 
 to only the last line of the original script, i.e. doesn't do any input 
 checks, please feel welcome to extend it).
 
 Here goes:
 
 - create GnuWin32\bin\wvCleanLatex.bat with the following line
 
   @ wvWare -x %~dp0..\share\wv\wvCleanLatex.xml -d %~dp2 -b %~n2 %1  %2
 
 - make sure GnuWin32\bin is in your path
 
 - reconfigure LyX, restart and you're ready to go (there still the isuue of 
 a .relyx1 file not being cleaned up)
 
 If you found this useful, could someone please add it to the Wiki.

Eh.. you do know that you can add it yourself, don't you? (The secret 
password is simply LyX :-)

regards
/Christian

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr




Word import via wvWare in Windows

2005-02-20 Thread Milos Komarcevic
I've noticed that the GnuWin32 project ported wvWare for converting Word 
documents, and LyX supports it, so I thought I'd give it a try. Here are 
the results.

As expected, doesn't work out of the box because wvCleanLatex that LyX 
calls is a shell script (a bit useless since GnuWin32 doesn't provide a 
shell???). Tried invoking it with MSYS sh.exe that comes with Ruurd's port 
of LyX, but no dice, that sh.exe doesn't understand commands like 
'basename' etc. So I did my own Win .bat file (very primitive, equivalent 
to only the last line of the original script, i.e. doesn't do any input 
checks, please feel welcome to extend it).

Here goes:
- create GnuWin32\bin\wvCleanLatex.bat with the following line
 @ wvWare -x %~dp0..\share\wv\wvCleanLatex.xml -d %~dp2 -b %~n2 %1 > %2
- make sure GnuWin32\bin is in your path
- reconfigure LyX, restart and you're ready to go (there still the isuue of 
a .relyx1 file not being cleaned up)

If you found this useful, could someone please add it to the Wiki.
Regards,
Milos


Re: Word import via wvWare in Windows

2005-02-20 Thread chr
On 20 Feb 2005, Milos Komarcevic wrote:

> I've noticed that the GnuWin32 project ported wvWare for converting Word 
> documents, and LyX supports it, so I thought I'd give it a try. Here are 
> the results.
> 
> As expected, doesn't work out of the box because wvCleanLatex that LyX 
> calls is a shell script (a bit useless since GnuWin32 doesn't provide a 
> shell???). Tried invoking it with MSYS sh.exe that comes with Ruurd's port 
> of LyX, but no dice, that sh.exe doesn't understand commands like 
> 'basename' etc. So I did my own Win .bat file (very primitive, equivalent 
> to only the last line of the original script, i.e. doesn't do any input 
> checks, please feel welcome to extend it).
> 
> Here goes:
> 
> - create GnuWin32\bin\wvCleanLatex.bat with the following line
> 
>   @ wvWare -x %~dp0..\share\wv\wvCleanLatex.xml -d %~dp2 -b %~n2 %1 > %2
> 
> - make sure GnuWin32\bin is in your path
> 
> - reconfigure LyX, restart and you're ready to go (there still the isuue of 
> a .relyx1 file not being cleaned up)
> 
> If you found this useful, could someone please add it to the Wiki.

Eh.. you do know that you can add it yourself, don't you? (The "secret" 
password is simply "LyX" :-)

regards
/Christian

-- 
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr