3.6 Using web features not in LaTeX

If you wish to include features not supported by LaTeX – such as embedding a video (see 3.1) — you can insert any HTML code directly into your document. This can be done in one of two ways. HTML inserted into BookML needs to follow a few syntax rules that aren’t part of typical HTML (but are part of XML, which is what BookML runs on) To make your HTML follow XML-like syntax, the following must be satisfied:

  • You must close all tags (i.e. <INPUT> ... <INPUT>;

  • Empty atributes must be given the atribute "";

  • Replace \ with \textbackslash;

  • Escape %&_^${}.

3.6.1 Using /bmlRawHTML{}

You can directly input HTML into BookML in large sections. This method is reccomended for if you have a large .html based element you want to insert into your notes. This command is robust, which means that you can use it inside \newcommand.

To use this \bmlRawHTML\{\}, we would have something like the following:

\bmlRawHTML{
    %HTML goes here
}

3.6.2 Using HTML and LaTeX together

To use HTML and LaTeX in the same part of text, BookML supports the use of /to denote something as HTML. To see examples, see the implementation of foldable environments and input environments in the section on gapped notes (3.5)