dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #13362
[Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 377: Fixed some line break issues with PDF output in the documentation guide.
------------------------------------------------------------
revno: 377
committer: Jason P. Pickering <jason.p.pickering@xxxxxxxxx>
branch nick: dhis2-docbook-docs
timestamp: Tue 2011-08-09 22:20:27 +0200
message:
Fixed some line break issues with PDF output in the documentation guide.
modified:
src/docbkx/en/dhis2_documentation_guide.xml
--
lp:~dhis2-documenters/dhis2/dhis2-docbook-docs
https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs
Your team DHIS 2 developers is subscribed to branch lp:~dhis2-documenters/dhis2/dhis2-docbook-docs.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-documenters/dhis2/dhis2-docbook-docs/+edit-subscription
=== modified file 'src/docbkx/en/dhis2_documentation_guide.xml'
--- src/docbkx/en/dhis2_documentation_guide.xml 2011-07-24 10:30:05 +0000
+++ src/docbkx/en/dhis2_documentation_guide.xml 2011-08-09 20:20:27 +0000
@@ -1,6 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
-<!-- This document was created with Syntext Serna Free. --><!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
-<!ENTITY br ''>]>
+<!-- This document was created with Syntext Serna Free. --><!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" []>
<chapter>
<chapterinfo>
<title>DHIS 2 Documentation Guide</title>
@@ -99,14 +98,14 @@
<title>Using images</title>
<para>Screen shots are very useful for providing information to users on how particular actions
should be performed. DocBook has no intrinsic mechanisms to know exactly how an image should be rendered in the final document. Therefore, it is necessary to provide instructions through element attributes. The following XML code fragment demonstrates how an image can be specified to occupy 80% of the available page width. For screen shots in landscape format, this seems to be an appropriate amount. You may need to experiment a bit to obtain a proper width for your image. Alternatively, you can edit the resolution of the image itself, in order to obtain a proper size during rendering. </para>
- <literallayout><screenshot>
- <screeninfo>DHIS2 Login screen</screeninfo>
- <mediaobject>
+ <programlisting><screenshot>
+ <screeninfo>DHIS2 Login screen</screeninfo>
+ <mediaobject>
<imageobject>
- <imagedata fileref="dhis2_login_screen.jpg" format="JPG" width="80%"/>
- </imageobject>
+ <imagedata fileref="dhis2_login_screen.jpg" format="JPG" width="80%"/>
+ </imageobject>
</mediaobject>
-</screenshot></literallayout>
+</screenshot></programlisting>
<para>For other images, depending on their size, a different value may be necessary. If you do
not specify a width for you image, and its intrinsic size is larger than the available screen width, the image may overflow in certain document types with a fixed width, such as PDF. </para>
</section>
@@ -117,21 +116,22 @@
<para>Should you wish to link several articles together into a book, DocBook provides a
mechanism to assign an id to a section. In the example below, a section has been assigned an id. This id must be unique within the document. </para>
<para>
-<literallayout> <section id="mod2_1">
-<title>Getting started with DHIS2</title> ....</literallayout> </para>
+<programlisting> <section id="mod2_1">
+<title>Getting started with DHIS2</title> ....</programlisting> </para>
<para>In order to include an article into a book, an Xinclude statement must be used. The
following example shows how. </para>
<para>
-<literallayout><chapter>
+<programlisting><chapter>
<title>Getting started with DHIS2</title>
-<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dhis2_user_man_mod2.xml" xpointer="mod2_1" encoding="UTF-8"/>
-... </literallayout>
+<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dhis2_user_man_mod2.xml"
+ xpointer="mod2_1" encoding="UTF-8"/>
+... </programlisting>
</para>
<para>Note that the file name and id have been assigned in the parent document, referring to the
actual file (href) and particular fragment of the child document that should be referenced in the parent document (xpointer). </para>
<para>Including chapters in a book is very simple. The example below illustrates how: </para>
- <para><literallayout><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dhis2_user_man_
-mod1.xml" encoding="UTF-8"/> </literallayout>
+ <para><programlisting><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dhis2_user_man_
+mod1.xml" encoding="UTF-8"/> </programlisting>
</para>
<para>In this case, there is no need to explicitly reference a part of the document, unless you
only want to include a portion of the chapter. If you want to use a section of the chapter, you can assign an id to that section, and then reference that section through an xpointer. </para>