-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2008-02-06 at 11:10 +0100, Jos van Kan wrote: ...
I don't understand.
I admire your tenacity, Carlos. :-)
Thanks... the worst of it, is that I have fought this battle several times, and lost every time. In the past I just sent the sgml or lyx file to the end party, and let them convert to usable output by whatever magic incantations were needed.
I was asking myself the exact same question while trying to get your docbook example to work. It would balk about a missing class where it was apparent that it was there for all to see in /usr/share/lyx/layouts.
Exactly. Apparently the manpage class is from linuxdoc, and linuxdoc is not included; it is superseded by docbook, and docbook doesn't have it. It appears I got the example from a compilation I did time ago of LyX 1.3.4, but the current version does not contain that example, and I haven't found any reference to create man pages in their wiki, faq, or doc.
Go to Help>LateXConfig and check if the linuxdoc class (4.28) has been found. In my case it says it isn't and that I need the sgml-tools set of programs installed.
Mine says it is installed :-? ] 4.28 linuxdoc ] ] Found: yes ] ] CTAN: N/A ] ] Notes: The class linuxdoc is not a LaTeX document class. It is designed to ] produce LinuxDoc-SGML documents, which, in turn, can be exported as HTML, ] RTF, text or... LaTeX. You need to have the sgml-tools (previously known ] as LinuxDoc) set of programs installed to use this. Very funny. If I do have linuxdoc, I don't understand how "linuxdoc manpage" doesn't work.
Hm. In fact the sgml-tools have been discontinued and replaced by sgmltools-lite. Installing that was sufficient to get the docbook to work.
Ah... I have both lite and non lite installed. I though it was just a more complete version. Maybe removing the non lite version will do something...
Well, work is putting it mildly, the conversion to dvi and pdf is excruciatingly slow and mathematical formulae aren't handled correctly. This apparently is *not* sufficient to make a linuxdoc though, so my hunch is, that the sgml support from lyx is extremely flaky.
I think so. Or you need to be an expert at raw sgml to correct configurations catalogs or whatever; and the idea of LyX is to hide all that gory detail from us users, or so I thought.
But since you are making a straight text document, you could as well use lyx in its natural habitat, Latex. The only things you need are things like "section", "subsection" etc in the drop down menu at the top left. You don't have to know or learn Latex, since you can export straight to pdf. It's a bit like the good old WordPerfect days: you may use the "under water" code but you don't have to.
The plain text part I got working at last, I dunno exactly how. I use the class "article", and it works, more or less. That's done. But I also need to write a manpage, and that doesn't work at all. There was the example I got, but I can't make it work. As "manpage" doesn't work, I change the class to docbook (several flavours), but it fails completely to generate a manpage by any of the methods I found: sgml2txt -man testing_manpage.sgml docbook2man testing_manpage.sgml and I have tried both combinations with docbook sgml and xml. None of those incantations works. The use of the word incantation shows my despair... [...] I removed sgmltools. The "sgml2txt" program dissapeared, and docbook2man doesn't work: cer@nimrodel:~/lyx> docbook2man testing_manpage.sgml Using catalogs: /etc/sgml/catalog, /etc/sgml/catalog, /usr/share/sgml/CATALOG.docbook-dsssl-stylesheets Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#print Working on: /home/cer/lyx/testing_manpage.sgml Done. cer@nimrodel:~/lyx> ls -ltr testing_manpage.* - -rw-r--r-- 1 cer users 5366 2008-02-06 04:43 testing_manpage.sgml~ - -rw-r--r-- 1 cer users 0 2008-02-06 04:45 testing_manpage.txt - -rw-r--r-- 1 cer users 0 2008-02-06 04:45 testing_manpage.xml.txt - -rw-r--r-- 1 cer users 0 2008-02-06 04:50 testing_manpage.html - -rw-r--r-- 1 cer users 0 2008-02-06 12:30 testing_manpage.xml.man - -rw-r--r-- 1 cer users 0 2008-02-06 12:33 testing_manpage.man - -rw-r--r-- 1 cer users 5419 2008-02-06 13:10 testing_manpage.lyx~ - -rw-r--r-- 1 cer users 5416 2008-02-06 13:10 testing_manpage.lyx - -rw-r--r-- 1 cer users 5333 2008-02-06 13:10 testing_manpage.xml - -rw-r--r-- 1 cer users 5395 2008-02-06 13:11 testing_manpage.sgml It doesn't complain, but doesn't work, either: no manpage is produced. Impossible! :-// - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHqaWLtTMYHG2NR9URAtPeAKCJMYpCMYrmtAu21+4BA0kHPUOamACdFD5p GlH6PNQBgehiQhdkGOXe/8g= =wiFr -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org