On Thu, Aug 23, 2001 at 05:24:31PM +0100, John Bland wrote:
>
> Hi,
>
> I'm just trying to do some documentation in LyX using the DocBook
> layout style and I'm finding a few things which are making life difficult.
>
> Firstly, is there a way to make text appear in a different font, eg
> emphasised or typewriter styles in LyX just end up as normal text in
> ps/pdf or docbook-html output.
Typewrite text it isn't translated as yet. It should so it is a bug.
It will be translated to <literal></literal> in next version.
Now emphasis should work, what is the tool chain that you use to produce
the final output?
> Secondly, and more importantly, is graphics inclusion. It's proving to be
> a major pita.
>
> How do you get references to figure numbers in the text? Using the usual
> label+crossreference doesn't work in any output form. The figure floats
> get given numbers as expected though.
That is already corrected in the cvs version. If should use the Name field
to get what you want...
> How do you get figures included properly? Using eps figures that display
> fine in LyX are not included when viewing in ps/pdf. The outputted sgml
> contains references to the file but without extension and with no
> reference to the file type. eg including file1.eps generates something
> like:
>
> <graphic fileref="file1"></graphic>
The stylesheets from Norman Walsh use that to be able to determine the
best format for the output format. For the printing output eps is fine but
for the html output gif or png it is prefered.
> using something like db2html on this then converts this reference to
> file1.gif, which doesn't exist and so the figures don't get included.
> Besides, who wants gif when you've got png?
That is configurable in the stylesheets. In my case I have changed that to
png
> Including a bitmap image instead eg file1.png generates this:
>
> <graphic fileref="file1.eps"></graphic>
This will be taken care in the next version, as Baruch stated.
> What?! db2html then trys to include the eps direct into the html img src,
> and not many browsers I know can handle eps figures ;0). And I didn't want an
> eps file included, I wanted the perfectly fine .png file.
>
> Also, the DTD is for version 3.01 of DocBook which is now deprecated
> afaik. Are these things fixed in the cvs version (which is offline from
> here at least)?
The next version will use docbook 4 (both the xml and sgml versions). This
change didn't make into the fix series because it was a new feature.
I have some changes to add to cvs in this will be one of the first.
> Cheers,
> Frink (exhasperated)
Relax. ;-)
> --
> John Bland M.Phys (Hons) AMInstP / \ PhD Student & Sys Admin
> Email: j.bland at cmp.liv.ac.uk / \ Condensed Matter Group
> http://ringtail.cmp.liv.ac.uk/ / \ Liverpool University
> "Everybody relax, I'm here." -- Jack Burton
--
Jos�