On Thursday 13 September 2001 10:28, you wrote:
> I'm a new user...so I have many questions....so here you have one... How
> can I translate from microsoft word to lyx?...I saw this info in the
> website (www.lyx.org), but now I cann't find it
>
>
> Juan A. Tapia
I'm good with VI, so here's how I'd do it:
First I'd run Word search and replace to place begin and end tags around
Headings 1 thru 6. Then I'd run word search and replace to place begin and
end tags around each paragraph of body text. Then I'd search and replace any
other styles you might have, including character styles. Make sure every
paragraph is surrounded by some sort of begin and end tag. Once you've
captured all your styles, your document is *conceptually* ready for a
styles-based editor like LyX.
Now export to text. Linespacing doesn't matter because every paragraph has
begin and end tags. Modify the file in VI something like this:
:%s/<hdr1>/\r\\layout Part\r\r/g
:%s/</hdr1>//g
I didn't test the preceding, but it's something like that. Note that if it's
not a book or something else with a top level called "Part", you'll need hdr1
to correspond to LyX environment "Chapter" or maybe "Section". If your
original doc doesn't have parts, use chapters as the replacement for <hdr1>,
or if it doesn't have chapters, use "Section". Naturally, <hdr2> will be
replaced by a lower level LyX environment. In the Book document class, the
hierarchy is Part, Chapter, Section, Subsection, Subsubsection, Paragraph and
Subparagraph. Once all begin and end tags have been properly substituted,
paste the file into an empty LyX document of the proper Document Class. Paste
it just above the line saying "\the_end".
Save the LyX file and you'll have a document that's conceptually identical to
the MS Word one.
Steve
--
Steve Litt
Webmaster, Troubleshooters.Com
http://www.troubleshooters.com
[EMAIL PROTECTED]
(Legal Disclaimer) Follow these suggestions at your own risk.