Section 5 The end of the beginning
There are lots of other things you might want to do. Before I mention them, here is an important warning.
Warning 5.1.
Be careful about special characters! There are really just two, & and <. But they show up in LaTeX and PreTeXt code a lot, so you have to be careful.
Now, here are some other things I think will be of greatest interest, with links rather than sample code.
-
Lists. Who doesn't want lists?
Yes, you can nest them!
But you need to be very careful about that.
Basically, all lists need to be in
<p>
tags, but then you also put them in the<li>
tags.You can do a lot of custom stuff with them – see the sample article for lots of crazy examples.
Tables – here, the sample article has every option conceivable. Note that this online tool allows PreTeXt export.
There are special ways to link to video, but for everything else external to your project, use this syntax:
<url href="http://mathbook.pugetsound.edu/doc/author-guide/html/topic-video.html">video</url>
Cross-references are a different kind of very useful link. Use
xml:id="my-thing"
and then<xref ref="mything" />
. Let me show you many examples? Like to Warning 5.1?
Good luck in your future PreTeXting!