[maemo-developers] [maemo-developers] Advise on embedding images on docbook document?
From: Vladislav Grinchenko vladislav.grinchenko at comtechmobile.comDate: Wed Jan 31 17:28:06 EET 2007
- Previous message: [maemo-developers] Advise on embedding images on docbook document?
- Next message: [maemo-developers] New list spin-off?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Karoliina,
it might be just the path resolution clash. That, and I also find the
scaling factor plays a role. Here is what I usually do:
<!doctype book PUBLIC ...
<!ENTITY ...
....
<!ENTITY % printout "IGNORE">
<!ENTITY % online "IGNORE">
....
<figure id="fig-01">
<title>Main Window Dialog</title>
<mediaobject>
<![%printout;[
<imageobject>
<imagedata fileref="figures/grapp-main-win.png"
format="png" scale="50">
</imageobject>
]]>
<![%online;[
<imageobject>
<imagedata fileref="../figures/grapp-main-win.png" format="png">
</imageobject>
]]>
<textobject>
<para>MainWindow Dialog</para>
</textobject>
</mediaobject>
</figure>
hope this helps,
-Vlad
On Wed, 2007-01-31 at 16:34 +0200, Karoliina.T.Salminen at nokia.com wrote:
> Hello,
>
> I am in process of writing the specification of UI framework (meaning
> Hildon Desktop & Control panel) and we have chosen docbook xml format. I
> am quite new to docbook and don't know really all the tricks with it, so
> maybe somebody of you would know better:
> Here is my question: I have tried to embed images on the document (for
> example screenshot, diagrams etc. with different formats), but for some
> reason it haven't worked for me, the image caption gets on its place
> etc. but there is no picture in the pdf, so would you have some idea
> what migth I been doing wrong?
>
> I have tried to embed a screenshot of hildon desktop like this:
>
> <figure><title>Hildon Desktop: Task Navigator, Status bar,
> Home</title>
> <screenshot>
> <mediaobject>
> <imageobject>
> <imagedata fileref="hildondesktop.jpg" format="JPEG"/>
> </imageobject>
> <textobject>
> <phrase>Screenshot of Hildon Desktop</phrase>
> </textobject>
> </mediaobject>
> </screenshot>
> </figure>
>
> Then I tried to embed another image like this:
> <figure><title>Example MSC</title>
> <mediaobject>
> <imageobject><imagedata fileref="examplemsc.eps"
> format="EPS"/></imageobject>
> <textobject><phrase>Example message
> sequence</phrase></textobject>
> </mediaobject>
> </figure>
>
> Neither of these images are visible in the generated pdf.
> Obviously there might be something wrong in the command line used to
> generate the pdf, currently it has been like this:
> docbook2pdf hildon-desktop-spec.xml -o pdf
>
> I am getting some latex warnings though, but not sure what they mean, as
> I am not a latex guru.
> Any ideas? Thanks.
>
> Best Regards,
> Karoliina
>
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers
- Previous message: [maemo-developers] Advise on embedding images on docbook document?
- Next message: [maemo-developers] New list spin-off?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
