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.
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.
Demo of sequencing tag for multi-level numbering This is to check we re-initialise the sequence at the start of each document. If the numbers start 5,6,7... we're in trouble. Heading. Lorem ipsum dolor sit amet.... This contains a tag to "get" the current value of the level_1 counter, and increments it after display. The tag looks like <seq id="level_1">. . Heading. Lorem ipsum dolor sit amet... . Another heading. Duis bibendum urna ac.... In the paragraphs below we use two seq tags; the level 2 one is as you would expect and increments, bt the level 1 tag has <seq id="level_1" inc="no">, meaning "do not increment". You can also pass in an integer, to increment by 0, 1 or something else entirely; you could count down if you wanted to. . Yet another heading. Morbi laoreet magna sit amet... . Yet another heading. Morbi laoreet magna sit amet... . Yet another heading. Morbi laoreet magna sit amet... . Back to outer level. Duis bibendum urna ac... . Just for the hell of it, jump ahead 5 at the inner level using inc="5".... Morbi laoreet magna sit amet... . Yet another heading. Morbi laoreet magna sit amet...