#+TITLE: Basic formatting #+SHORT-TITLE: formatting #+KEYWORDS: #+TOC-KEYWORDS: manuals #+DESCRIPTION: formatting text on a web page * Headers Headers separate page text into parts. A header line starts with one or more * symbols (asterisks) followed by space. A first-level header has one asterisk; it begins new text block. Second- and third-level headers start sections and subsections. ** Example \*\*\* I am a third-level header\\ ...Some interesting text here... ** Result *** I am a third-level header ...Some interesting text here... * Simple text formatting - /single/ line breaks are ignored - one or more empty lines begin new paragraph - \*text between two asterisks\* becomes *bold* - \/text between two slashes\/ becomes /slanted/ - 2+ spaces between the words are equivalent to one - tilde creates unbreakable space - brackets create an http link: \[\[address\]\[name\]\] *:max-width=40ex Non-numbered lists Line starting with a hyphen (minus sign) is an element of non-numbered list. (See also [[edist][equally separated text items]].) ** Example Shopping list:\\ \- bread\\ \- bananas\\ \- cake ** Result Shopping list: - bread - bananas - cake * Numbered lists Line starting with an integer followed by period becomes an element of numbered list. ** Example Shopping list: 1. bread 2. bananas 3. cake * Centered headers By default, second-level headers are left-aligned, but this can be changed using *:center * parameter ** Eaxmple \*\*:center I am centered ** Result **:center I am centered * Limiting section's width Use *max-width* option in order to limit section's maximal width on wide screens. The width is measured in *ex* (width of letter "x"), in *em* (width of letter "m"), or in *px* (points). ** Example (See this web page's [[files/<>.txt][source]].) The above section entitled *"Non-numbered lists"* begins with the line:\\ \*:max-width=40ex Non-numbered lists * Related topics #+BEGIN(edist) - [[http://howto.leanws.com/links][links]] - [[http://howto.leanws.com/image][images]] - [[http://howto.leanws.com/tables][tables]] - [[http://howto.leanws.com/audio][audio]] #+END