3. Publish a tutorial in OET-style

Tutorials published in OpenEarth are published according to a template that includes collapsible chapters. Publishing an individual tutorial (for example when writing it) with this stylesheet is easily done with oetpublish. It is enough to call:

oetpublish

The help of oetpublish provides more information:

help oetpublish
 OETPUBLISH  publishes the tutorial that is currently being edited in the matlab editor.
 
    This function takes the file that was last selected in the matlab editor (or any file given as
    input) and publishes it in the OpenEarthStyle.
 
    Syntax:
    oetpublish(varargin)
    oetpublish(varargin,'hide')
 
    Input:
    varargin  = keyword value pairs
        filename    -   Name of the tutorial (mfile) that needs to be published (default = last
                        selected file in the matlab editor).
        outputdir   -   Name of the output dir (default: tempdir)
 
    'hide'  -   By default the result is opened in your browser. Including hide suppresses this
                command.
    'all'   -   Reproduces all tutorials and creates the html and help tutorials. (directly runs
                tutorials2html).
 
    Example
    oetpublish
 
    See also publish editorCurrentFile tutorials2html

Read more about writing tutorials