On 07/30/2010 11:16 AM, David Hopkins wrote:
On Fri, Jul 30, 2010 at 10:58 AM, Richard Heck<rgh...@comcast.net>  wrote:
On 07/30/2010 10:25 AM, David Hopkins wrote:
If I export an OOo document using writer2latex.oxt, it outputs a tex
file which has all the necessary tex/latex commands to compile
directly. However, I'd like to then import that document into LyX.  My
issue is that I seem to need to create a layout that uses everthing
between the \documentclass and \begindocument in the tex file?  I've
tried reading notes on the wiki and searching this list but I have not
understood what I need to do.  For instance, if I have a very simple
document (just a line of text), writer2latex.oxt produces the
following, but I can't just import this into LyX. If someone can point
me at the correct tutorial on how to 'split out' this document so that
it can be used with LyX, I'd be very grateful. Note: My actual
document has \usepackage, \newcommand, etc but I'm assuming the
process for something simple like the following would apply for a more
complicated document as well.


I'm not sure I understand the problem. I just imported the document into LyX
(File>Import>LaTeX). It's attached, and it compiles just fine. All the
preamble stuff just ends up at Document>Settings>LaTeX Preamble. Most of
that is junk that can just be deleted anyway. Why writer2latex insists upon
setting footskip, e.g., is pretty unclear.
Hmmm ... you're right.  I guess that is what happens when I try to
send the simplest example I can put together.  I'm not sure how to
send a better example e.g. writer2latex's user-manual.odt exported
using writer2latex's filter. It does not work if I simply import it
into LyX.

What sort of failure do you get?

I have generally found that things like writer2latex produce really ugly LaTeX, and that is likely to confuse tex2lyx. Not to mention that your document will be littered with ERT. My experience was mostly with wp2latex (for WordPerfect), and I ended up writing a sed script that went through and cleaned up the file in various ways. If I had it to do again, I'd probably do it in Perl or Python, but you get the idea.

Richard


Reply via email to