Next: Preformatted Code, Previous: Text Formatting, Up: Publishing Markup [Contents][Index]

#### 11.10.2.3 Sections

A section is started by typing ‘`##`’ or ‘`%%`’ at the beginning of a new line. A section title can be provided by writing it, separated by a space, in the first line after ‘`##`’ or ‘`%%`’. Without a section title, the section is interpreted as a continuation of the previous section. For MATLAB compatibility ‘`%%%`’ is treated the same way as ‘`%%`’.

    some_code ();

    ## Section 1
    #
    ## Section 2

    some_code ();

    ##
    # Still in section 2

    some_code ();

    %%% Section 3
    %
    %