

SpaceBefore and spaceAfter, as you would expect, set the spacing before a paragraph or after it. LeftIndent and rightIndent apply space to the left or right of a paragraph which is in addition to any margin you have set.įirstLineIndent is used when you want your paragraph to have an additional indent on the first line - on top of anything set with leftIndent. If you use a number that is smaller than the size of font you are using, the lines will overlap. So if you are using 10 point font, a leading of 15 will give you a space between lines of 5 points. In RML, it is expressed as the height of a line PLUS the space between lines.

Leading is used is used to alter the space between lines. (This can often be better done using the tag inside a, and then using the tag to apply it to that paragraph). It can be LEFT, RIGHT, CENTER (or CENTRE) or JUSTIFY.įontName and fontSize set the name and size of the font that you want this paragraph displayed in. How the text is aligned within the paragraph.

For example, if you have defined a style called Normal, you can have your paragraph appear in that style by using. If you have set up a style in the stylesheet section of a document, you can refer to them by name by using the style attribute. To do this you place your text inside the story section of an RML document, and use the and tags to tell the parser where each paragraph starts and ends.Īs well as delineating where paragraphs begin and end, the tag can also have a number of optional attributes: This means that you don't need to tell RML exactly where every line is going to go on the page - you let rml2pdf worry about that. Paragraphs and paragraph stylesĪs well as explicitly placing a piece of text into a certain position on a page using the drawString commands, RML also allows you to use paragraphs of text. The most important heading level has its text enclosed by and tags, and less important sub-headings use the and tags in the same way. Headings are also handled in the same way as in HTML. This is the Title And it should be set in 36 pt Courier Bold. RML Licence File Deployment and Verification

Chapter 4: Basic figures lines and shapesĬhapter 6: More about pages and page structuresĬhapter 9: About Cross References and Page NumbersĪppendix B: Glossary of terms and abbreviationsĪppendix C: Letters used by the Greek tag
