Am Sun, 26.Dec.1999 um 19:14:32 +0100 schrieb Jean-Luc Le Blanc:
> Actually, I would like to know the difference between a Lyx "*.lyx"
> document and a Latex document ...if there is any.
LyX uses its own document format. It's also ASCII-based, but different from
LaTeX-sourcecode. You can both export your LyX document as LaTeX (-->File
-->Export) and import LaTeX documents into Lyx (-->File -->Import).
> I read that you can write a Latex document in any editor, so I opened a
> *.lyx document in kedit and could see some commands that are behind what
> you see under Lyx. But I could find \begin{document} or end{document}?
> Why is that?
See above.
> If I write a Latex document straight in an editor, how can I visualize
> it in its final form? Whith postscript viewer? (Haven't tried it yet).
Run "latex <yourdocument>.tex" on the command line. You can view the
formatted document with "xdvi <yourdocument>.dvi" and translate it to
Postscript with dvips. It's good to know how these things work when you are
a LyY user, but one of the nice features of LyX is that it takes care of all
that for you. (When you use table of contents, bibliographies and indexes,
you'll have to run the latex and other related commands such as bibtex and
makeindex multiple times in the right sequence. LyX frees you from caring
about that.)
>I tried to open it with lyx but that wouldn't do.
Use the "import" function instead.
> IS there any extension with a latex document *.tex for instance?
Yes, that's the convention.
> The reason for all these questions is that I read as you told me that El
> Ni~no could be written El Ni\~no...but when I edit a lyx document under
> kedit and that I insert these commands, they appear as on the
> screen...there is no interpretation made by lyx???
Not really. LyX doesn't _interpret_ the document on the fly (that would
require a built-in dvi-viewer), but only gives you a
"What-You-See-Is-What-You-**Mean**" approximation of the document. In fact,
this approach has quite a lot of advantages; I am sure you'll appreciate
them as soon as you work with footnotes, crossreferences, bibtex citations
and similar advanced document features where true WYSIWYG would severely
obfuscate things. (Just having finished such a paper, I have to praise the
LyX team again for the greatness of what it has written!)
If you type "El Ni\~no" - that is, if you use TeX formatting directly in LyX
-, take care to mark it as TeX code.
Florian
--
Florian Cramer, PGP public key ID 6440BA05
(if possible, please PGP-encrypt your mail to me)
Permutations/Permutationen - poetry automata from 330 A.D. to
present: <http://userpage.fu-berlin.de/~cantsin/index.cgi>