14 AUTHORING MAPS: SEQUENCES AND PAGES
images are considered ﬂoats, which LaTeX will place for you. Some of the common html
tricks, using tables e.g. to control text wrapping around ﬁgures, will not always work in
print mode; especially if the text is to the right side of the ﬁgure in the table.
The alignment choice aﬀects whether or not the print rendering engine attempts to get
text to wrap around the image. With align="right" or align="left", the print rendering
engine attempts to use the wrapﬁgure environment to place text around the ﬁgure at the
appropriate side. If a ﬁgure is in a table, then the print engine, by default, the print engine
will use wrapﬁgure, set the alignment to “right” unless you override it. Otherwise, the
default alignment is “bottom” as it is for html, and no wrapping will occur.
\parpic style wrapping is also available by specifying TeXwrap="parpic" in the ¡img¿
tag. In some limited casese this gives a better result.
Other print speciﬁc <img> tag attributes are available (see section 13.3).
Variables with tags don’t print correctly
If a variable contains XML, in general it is necessary to force the XML parser to make
apass over the contents of the contents of the variable prior to rendering the section of the
resource that contains that substitution. When output, those variables must be bracketed
inside of <display> </display> tags. For example:
$a = &xmlparse(’<br />’);
<p>This is a break <display>$a</display> and then some more text</p>
Without the xmlparse call and the display tag bracketing the variable, this problem will
display on the web just ﬁne, but print incorrectly.
14 Authoring Maps: Sequences and Pages
In order to create a useful course, we need to arrange our raw materials so that students can
14.1 Authoring Sequences
Asequence is a series of resources that can be navigated using the NAV remote control
button, or by using the arrow keys on the remote control.
To create a Sequence resource, create a new resource as described in the ’Authoring
Content in LON-CAPA’ section (5). This is a “sequence” resource so the URL must end in
“.sequence”. After you enter in the URL ending in “.sequence”, you should see a screen as
in ﬁgure 23. You can use either the advanced editor or the simpliﬁed editor.