2.2 Including or excluding content from either version

The bookml package includes the command \iflatexml to include or exclude particular code from either the PDF or the HTML version of your notes.

  • Use \iflatexml to delimit anything (content, packages, macros, …) that should only be used in the HTML version.

  • Use \iflatexml\else to delimit anything (content, packages, macros, …) that should only be used in the PDF notes.

You can check the following example in the source file for this document:

This will only show up in the HTML version.

View snippet

This will only show up in the HTML version.