<!DOCTYPE document SYSTEM "rml.dtd">
<document filename="test_043_headings.pdf">

	<template pageSize="(595, 842)" leftMargin="72" showBoundary="0">
	<pageTemplate id="main">
	<pageGraphics>
		    <setFont name="Helvetica-Bold" size="18"/>
		    <drawString x="35" y="783">RML Example 44: Headings</drawString>
			<image file="logo_no_bar.png" preserveAspectRatio="1" x="488" y="749" width="72" height="72"/>
    		<image file="strapline.png" preserveAspectRatio="1" x="35" y="0" width="525" />
		</pageGraphics>
		
		
			<frame id="second" x1="35" y1="45" width="525" height="590"/>
		</pageTemplate>
	</template>
	<stylesheet>
		<paraStyle name="code"
				   fontName="Courier"
				   fontSize="8"
				   leftIndent="36"
				   textColor="blue"
				   />
		<paraStyle name="style.Heading1"
				   parent="style.Heading1"
				   textColor="red"
				   />
		<paraStyle name="intro"  fontName="Helvetica" fontSize="12" leading="12" spaceAfter="12"/>		   

	</stylesheet>
	<story>
	<storyPlace x="35" y="660" width="525" height="73" origin="page">
<para style="intro">RML (Report Markup Language) is ReportLab's own language for specifying the appearance of a printed page, which is converted into PDF by the utility rml2pdf.</para>
<hr color="white" thickness="8pt"/>
<para style="intro">These RML samples showcase techniques and features for generating various types of ouput and are distributed within our commercial package as test cases. Each should be self explanatory and stand alone.</para>
<illustration height="3" width="525" align="center">
<fill color= "(0,0.99,0.97,0.0)" />
<rect x="0" y = "-12" width="525" height="3" round="1" fill="1" stroke = "Yes" />
</illustration>
</storyPlace>
		<title>Headings test</title>
		<para>You can customize heading styles like this:</para>
		<xpre style="code"><![CDATA[<paraStyle name="style.Heading1"]]></xpre>
		<xpre style="code"><![CDATA[    parent="style.Heading1"]]></xpre>
		<xpre style="code"><![CDATA[    textColor="red"]]></xpre>
		<xpre style="code"><![CDATA[/>]]></xpre>

		<h1>This is heading 1</h1>
		<h2>This is heading 2</h2>
		<h3>This is heading 3</h3>
		<h4>This is heading 4</h4>
		<h5>This is heading 5</h5>
		<h6>This is heading 6</h6>

		<h2>This code is generated with folowing RML:</h2>

		<xpre style="code"><![CDATA[<h1>This is heading 1</h1>]]></xpre>
		<xpre style="code"><![CDATA[<h2>This is heading 2</h2>]]></xpre>
		<xpre style="code"><![CDATA[<h3>This is heading 3</h3>]]></xpre>
		<xpre style="code"><![CDATA[<h4>This is heading 4</h4>]]></xpre>
		<xpre style="code"><![CDATA[<h5>This is heading 5</h5>]]></xpre>
		<xpre style="code"><![CDATA[<h6>This is heading 6</h6>]]></xpre>
	</story>
</document>

