Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Wiki Markup
{div:class=preface|id=preface}
h1. Preface

The camel project uses this wiki to generate it's PDF based documentation.  It uses the a [Boom CSS based style sheet|http://www.alistapart.com/articles/boom] in conjunction with [prince|http://www.princexml.com/download/] to generate the PDF manuals.  The [Book In One Page] stitches together wiki content found through this wiki into a single page with is subsequently downloaded by the PDF generator and transformed into a PDF.  This section will help you understand how to best use the wiki markup so that it generates good looking PDF pages.
{div}

HTML
Wiki Markup
{html}<div class="chapter page-reset" id="chapter-tables-and-figures">{html}

Images

Images show up differently on the web than on print. You normally need large images with a high DPI for them to print nicely on paper. This chapter will show you how to control the image sizing properties for PDF output.

...

72 DPI

200 DPI

300 DPI

600 DPI

HTML
Wiki Markup
{html}</div>{html}

HTML
Wiki Markup
{html}<div class="chapter page-reset" id="chapter-tables-and-figures">{html}

Tables Figures and Listings

...

Code Block
none
none
{html}<div class="table"><p class="caption">
  Example Table
</p>{html}
  || Table || Heading ||
  | value1 | value2 |
  | value3 | value 4 |
{html}</div>{html}

To produce:

HTML
Wiki Markup
{html}<div class="table"><p class="caption">
  Example Table
</p>{html}

Table

Heading

value1

value2

value3

value 4

HTML
Wiki Markup
{html}</div>{html}

Wiki Markup
{div:class=section|id=figures}
h2. Captioned Figures
{div}

Use wiki markup similar to:

Code Block
none
none
{html}<div class="figure"><p class="art">
{html} !http://activemq.apache.org/camel/download.data/camel-box-v1.0-150x200.png! {html}
</p><p class="caption">
   Example Figure.
</p></div>
{html}

To produce:

HTML
Wiki Markup
{html}<div class="figure"><p class="art">
{html}

...

HTML
Wiki Markup
{html}
</p><p class="caption">
   Example Figure.
</p></div>
{html}

Wiki Markup
{div:class=section|id=listings}
h2. Captioned Listings
{div}

Use wiki markup similar to:

...

Code Block
xml
titleExample
xml
<bean id="activemq" class="org.apache.camel.component.jms.JmsComponent">
  <property name="connectionFactory">
    <bean class="org.apache.activemq.ActiveMQConnectionFactory">
      <property name="brokerURL" value="vm://localhost?broker.persistent=false"/>
    </bean>
  </property>
</bean>

HTML
Wiki Markup
{html}</div>{html}