[opensuse] How do I load the LyX example linuxdoc_manpage.lyx?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I continue with my impossible quest of getting LyX to work in SuSE. There is a list of examples, and I'm particularly interested in this one I got I don't remember where from: .../lyx-1.3.4/lib/examples/linuxdoc_manpage.lyx because I'm trying to translate to Spanish a manpage, and a GUI would be perfect for this unattainable task, as I know nothing of troff, tex, whatever. But the examples do not work! I get the following error: ] cer@nimrodel:~/Projects/babel/LyX> Warning: Unknown document class ] ---------------------------------------- ] Using the default document class, because the class manpage is unknown. I should be surprised by now, that a needed class is not included. I do not even know what package contains LyX classes! Perhaps it is the file "/usr/share/lyx/layouts/manpage.layout"? But how do I tell LyX to use it own layouts? I have no idea. If "manpage.layout" is in the system, and it says: #% Do not delete he line below; configure depends on this # \DeclareLinuxDocClass[manpage]{LinuxDoc manpage (SGML)} # LinuxDoc manpage textclass definition file. why then does it says it knows nothing about class "manpage", when it is clearly there and installed? I don't understand. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHp9wNtTMYHG2NR9URAq6yAKCV/1UaDLtWCtkA3j6/TLLDp6ql0QCfQdi5 aSBmbzde62Q9SsecFqjpQvA= =V7/p -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Op Tue February 5 2008, schreef Carlos E. R.:
Hi,
I continue with my impossible quest of getting LyX to work in SuSE.
There is a list of examples, and I'm particularly interested in this one I got I don't remember where from:
.../lyx-1.3.4/lib/examples/linuxdoc_manpage.lyx
because I'm trying to translate to Spanish a manpage, and a GUI would be perfect for this unattainable task, as I know nothing of troff, tex, whatever.
But the examples do not work! I get the following error:
] cer@nimrodel:~/Projects/babel/LyX> Warning: Unknown document class ] ---------------------------------------- ] Using the default document class, because the class manpage is unknown.
I should be surprised by now, that a needed class is not included. I do not even know what package contains LyX classes!
Perhaps it is the file "/usr/share/lyx/layouts/manpage.layout"? But how do I tell LyX to use it own layouts? I have no idea. If "manpage.layout" is in the system, and it says:
#% Do not delete he line below; configure depends on this # \DeclareLinuxDocClass[manpage]{LinuxDoc manpage (SGML)} # LinuxDoc manpage textclass definition file.
why then does it says it knows nothing about class "manpage", when it is clearly there and installed?
I don't understand.
I admire your tenacity, Carlos. :-) 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. 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. Hm. In fact the sgml-tools have been discontinued and replaced by sgmltools-lite. Installing that was sufficient to get the docbook to work. 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. 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. Regards, -- Jos van Kan registered Linux user #152704 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----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
participants (2)
-
Carlos E. R.
-
Jos van Kan