Installation guide
Marking U p Text in Cells for Publishing
Format
How to Produce
Format Resulting Code Published Resul ts
Overall
document
heading and
introductory
text
1 Position the cursor
anywhere in the
editor.
2 Select
Cell > Insert Text
Markup > Docum ent
Title and
Introduction.
3 Replace DOCUMENT
TITLE
in the resulting
code w ith your
desired cell heading.
4 Replace
INTRODUCTORY TEXT
in the resulting
code with text that
introduces the M-file.
See step in the example.
%% DOCUMENT TITLE
% INTRODUCTORY TEXT
In the example, the
overall heading is
%% Plot Sine Wave
Document title is
formatted as a top-level
heading (
h1 in HTML),
using a large size, bold
font.
Introductory text
appearsasformatted
text.
Section title,
formatted
comments, and
acellbreak
1 Position the cursor
where you want to
insert a new cell.
2 Select
Cell > Insert Text
Markup > Section
Title with Cell
Break.
3 Replace S ECTI ON
TITLE
with your
desired title.
4 Replace DESCRIPTIVE
TEXT
with text that
describes the cell.
%% SECTION TITLE
% DESCRIPTIVE TEXT
In the example, the
section titles are
%% Calculate and
Plot Sine Wave
%% Modify Plot
Properties
Note that descriptive
text must appear
before the first line
of executable code in a
cell.
Formatted as a heading
(
h2 in HTML), using a
medium size, bold font.
Descriptive text appears
as formatted text in the
published o utp u t.
8-13