Re: anyone use LyX for docbook?
On Thursday 07 June 2007 16:34, José Matos wrote: > On Thursday 07 June 2007 18:47:18 David Koski wrote: > > I am looking for information on how to apply Lyx to produce > > DocBook documents. A simple example with a floating figure > > with a cross-reference would help. The above scenario should be > > trivial but I have spent more time than I care to admit trying to > > achieve it. Google and man pages are my sources but information > > specific to Lyx as applied to DocBook is scarce. In the end, > > it looks like it might be incomplete or broken. > > I do use lyx with docbook. I have implemented most of the code as well. I > have failed in the sense that I have not been able to attract new > developers to the wagon. :-) > > One of the areas where lyx-docbook is missing is certainly the > documentation. If it were now I would start with the wiki (there was no > wiki in 1999/2000). > > In the process I have developed new tools to work around some of the > deficiencies in LyX and docbook. lyx2lyx was one of those tools (the part > used now to convert between different lyx file format versions). :-) > > Recently my attention has been focused into coordinating the release of > lyx 1.5.0 so not much time to lyx-docbook. :-( A simple example of a book with floating figures using cross references that work would have helped immensely. Maybe I'll revisit Lyx for DocBook in the future but for now, my time budget is spent. Thank You, David
Re: docbook and graphics within floating figure
On Thursday 07 June 2007 11:10, Jeremy C. Reed wrote: > On Thu, 7 Jun 2007, David Koski wrote: > > I take it the docbook XML feature of Lyx is seldom if ever used. > > I have asked several times and also tried several times. Others have asked > about it several times. > > Nobody has stated that it works. Nobody has shared how to do it. > > The documentation on the web is out-dated or wrong. > > LyX should remove any references about using DocBook from its official > documentation and remove any references to DocBook. It is misleading. > > Jeremy C. Reed > > p.s. If LyX can do DocBook, that would be great. I have a 200-page book > and I am keeping both a LyX version and a DocBook version in sync. It > would be a great time saver if I could just work on one copy -- in DocBook > using LyX. Thank you Jeremy. I will proceed with LaTeX. Regards, David
anyone use lyx for docbook?
I am looking for information on how to apply Lyx to produce DocBook documents. A simple example with a floating figure with a cross-reference would help. The above scenario should be trivial but I have spent more time than I care to admit trying to achieve it. Google and man pages are my sources but information specific to Lyx as applied to DocBook is scarce. In the end, it looks like it might be incomplete or broken. Best Regards, David Koski [EMAIL PROTECTED]
Re: docbook and graphics within floating figure
I worked arround the errors by writing a script that cleaned the xml output of Lyx such that it changed "inlinemediaobject" instances to "mediaobject". Furthermore, I had to create floating figures with the title on top instead of the bottom. Also, 'lang="en_US"' had to be changed to 'lang="en"'. I take it the docbook XML feature of Lyx is seldom if ever used. Regards, David Koski [EMAIL PROTECTED] On Wednesday 06 June 2007 08:12, David Koski wrote: > I am a new Lyx user using Debian 4.0, Lyx 1.4.3 and am trying to insert > a graphic image within a floating figure in a Docbook (xml) document. > My "Document Class" is set to "DocBook book (SGML)" and I am exporting > to "Docbook (XML)" but I get errors: > > book.xml:16:18:E: document type does not allow element "inlinemediaobject" > here; assuming missing "title" start-tag > openjade:/home/users/dkoski/cvs/sutinen/doc/backup-with-bru-book/book.xml:2 >8:20:E: document type does not allow element "title" here > openjade:/home/users/dkoski/cvs/sutinen/doc/backup-with-bru-book/book.xml:2 >8:70:E: end tag for "title" omitted, but OMITTAG NO was specified > > My first line of defense (google and man pages) was to no avail. In fact > I found very little information that was relevant except for how to do > what I had already done. By trial and error (and examining the xml output > of Lyx) I found that I could insert a graphic successfully outside a > floating figure if I appended a label. The same method failed for floating > figures. I found it odd that this seemingly trivial task would be so > difficult to achieve. If the two problems are related, I suspect it has > to do with the placement of a para tag. But this really has me stumped. > > The Lyx code is below followed by xml exported output from Lyx. > > Any help appreciated, > David Koski > [EMAIL PROTECTED] > > #LyX 1.4.3 created this file. For more info see http://www.lyx.org/ > \lyxformat 245 > \begin_document > \begin_header > \textclass docbook-book > \language english > \inputencoding auto > \fontscheme default > \graphics default > \paperfontsize default > \spacing single > \papersize default > \use_geometry false > \use_amsmath 1 > \cite_engine basic > \use_bibtopic false > \paperorientation portrait > \secnumdepth 3 > \tocdepth 3 > \paragraph_separation indent > \defskip medskip > \quotes_language english > \papercolumns 1 > \papersides 1 > \paperpagestyle default > \tracking_changes false > \output_changes false > \end_header > > \begin_body > > \begin_layout Title > My Book > \end_layout > > \begin_layout Chapter > My Chapter > \end_layout > > \begin_layout Standard > This is my chapter. > \end_layout > > \begin_layout Standard > Text here. > \end_layout > > \begin_layout Standard > \begin_inset Float figure > wide false > sideways false > status open > > \begin_layout Title > my title > \end_layout > > \begin_layout Standard > \begin_inset Graphics > filename gimp_screenshot.eps > > \end_inset > > > \end_layout > > \begin_layout Caption > \begin_inset LatexCommand \label{mylabel} > > \end_inset > > > \end_layout > > \end_inset > > mycaption > \end_layout > > \begin_layout Standard > More text. > \end_layout > > \end_body > \end_document > > > > "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"; [ > ]> > > > > > My Book > > My Chapter > Hi. > This is my chapter. > > > > > > > > > > > > > role="bmp"/> >myfig Text here. > More text.
docbook and graphics within floating figure
I am a new Lyx user using Debian 4.0, Lyx 1.4.3 and am trying to insert a graphic image within a floating figure in a Docbook (xml) document. My "Document Class" is set to "DocBook book (SGML)" and I am exporting to "Docbook (XML)" but I get errors: book.xml:16:18:E: document type does not allow element "inlinemediaobject" here; assuming missing "title" start-tag openjade:/home/users/dkoski/cvs/sutinen/doc/backup-with-bru-book/book.xml:28:20:E: document type does not allow element "title" here openjade:/home/users/dkoski/cvs/sutinen/doc/backup-with-bru-book/book.xml:28:70:E: end tag for "title" omitted, but OMITTAG NO was specified My first line of defense (google and man pages) was to no avail. In fact I found very little information that was relevant except for how to do what I had already done. By trial and error (and examining the xml output of Lyx) I found that I could insert a graphic successfully outside a floating figure if I appended a label. The same method failed for floating figures. I found it odd that this seemingly trivial task would be so difficult to achieve. If the two problems are related, I suspect it has to do with the placement of a para tag. But this really has me stumped. The Lyx code is below followed by xml exported output from Lyx. Any help appreciated, David Koski [EMAIL PROTECTED] #LyX 1.4.3 created this file. For more info see http://www.lyx.org/ \lyxformat 245 \begin_document \begin_header \textclass docbook-book \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize default \use_geometry false \use_amsmath 1 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \end_header \begin_body \begin_layout Title My Book \end_layout \begin_layout Chapter My Chapter \end_layout \begin_layout Standard This is my chapter. \end_layout \begin_layout Standard Text here. \end_layout \begin_layout Standard \begin_inset Float figure wide false sideways false status open \begin_layout Title my title \end_layout \begin_layout Standard \begin_inset Graphics filename gimp_screenshot.eps \end_inset \end_layout \begin_layout Caption \begin_inset LatexCommand \label{mylabel} \end_inset \end_layout \end_inset mycaption \end_layout \begin_layout Standard More text. \end_layout \end_body \end_document http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"; [ ]> My Book My Chapter Hi. This is my chapter. myfig Text here. More text.
docbook and tables
Hello, I have installed lyx 1.2.0 on SuSE with all the related packages (docbook, sgmltools, jade, tex, etc.) that come with 7.3 but after importing a latex document with floats, the db2dvi produces errors: document type does not allow element "PARA" here The document is a docbook book. After replacing the tables with non-floating tables the error went away. Is it possible with lyx/db2dvi for this to work? Best Regards, David Koski [EMAIL PROTECTED]
Re: How to do Preface
On Tue, 20 Aug 2002 16:04:05 -0400 Craig Morehouse <[EMAIL PROTECTED]> wrote: > As above, are there LyX native commands for doing Prefaces, How about "Abstract"? > Introductions, Forewords, etc, that work like Chapter and insert > themselves into the Table of contents? > > Or, how to do I get something to be entered into the TOC without using > "Chapter"? david
lyx -> docbook -> rtf, etc.
Hello, Anyone using lyx to produce docbook to convert to rtf, or pdf? I haven't had much success. David Koski [EMAIL PROTECTED]
exporting docbook has tag errors
Hello, When exporting docbook from lyx I get a nice file.sgml document but when I execute "db2tex file.sgml" there are errors with the sgml tags that are produced by lyx. For example: jade:kos.sgml:39:38:E: end tag for element "ANCHOR" which is not open jade:kos.sgml:39:71:E: end tag for element "ANCHOR" which is not open jade:kos.sgml:100:39:E: character data is not allowed here jade:kos.sgml:107:53:E: end tag for element "EMPHASIS" which is not open jade:kos.sgml:181:28:E: document type does not allow element "ANCHOR" here jade:kos.sgml:181:37:E: end tag for element "ANCHOR" which is not open jade:kos.sgml:250:37:E: character data is not allowed here jade:kos.sgml:257:53:E: end tag for element "EMPHASIS" which is not open jade:kos.sgml:326:28:E: document type does not allow element "ANCHOR" here jade:kos.sgml:326:37:E: end tag for element "ANCHOR" which is not open jade:kos.sgml:677:26:E: end tag for element "EMPHASIS" which is not open jade:kos.sgml:1024:0:E: character data is not allowed here jade:kos.sgml:1026:29:E: document type does not allow element "ANCHOR" here; assuming missing "TITLEABBREV" start-tagjade:kos.sgml:1026:38:E: end tag for element "ANCHOR" which is not open jade:kos.sgml:1027:10:E: end tag for "TABLE" which is not finished jade:kos.sgml:1294:40:E: document type does not allow element "TGROUP" here; assuming missing "INFORMALTABLE" start-tag jade:kos.sgml:1295:37:E: character data is not allowed here jade:kos.sgml:1321:7:E: end tag for "INFORMALTABLE" omitted, but its declaration does not permit this jade:kos.sgml:1294:2: start tag was here jade:kos.sgml:1429:41:E: document type does not allow element "TGROUP" here; assuming missing "INFORMALTABLE" start-tag jade:kos.sgml:1430:37:E: character data is not allowed here jade:kos.sgml:1443:8:E: end tag for "INFORMALTABLE" omitted, but its declaration does not permit this jade:kos.sgml:1429:3: start tag was here --- version of lyx: lyx-1.1.6fix2-86 It appears that the tags are not properly formed. For example: line 39: I have installed sgml, lyx, docbook and related packages on my SuSE 7.2 system and upgraded the same from SuSE 7.3 online so they are fiarly recent. Any clues appreciated. TIA, David Koski [EMAIL PROTECTED]