Lambda feedback uses one content source to serve two outputs: web and PDF. Each output has different requirements, and content must meet both requirements in order to serve both outputs.
All content is formatted in markdown. Headings, font style, lists, tables, images,
Special attention is required when formatting $ for 'inline formulas', and $$ for an equation environment), must use a subset of
All content in Lambda Feedback is stored as markdown (ASCII content), input/edited using our Lexdown editor. The editor has a preview mode providing live interactive previews of content, including
Katex is a subset of tikz package - which is a complex graphics package - is not supported by katex. Unsupported packages have knock-on effects, for example while the \cancel{} function is supported, \cancelto{}{} is not because it relies on tikz.
Ensuring that content renders correctly on the web is straightforward because the editor gives a live preview - and will indicate when errors occur.
When a Problem Set is saved in the editor, the PDF is automatically compiled by sending the markdown content to Pandoc, which internally uses
Problems can occur with PDF compilation even if the web rendering is successful, because it uses different libraries to the web browser. If the PDF fails to compile, a red error bar will appear and provide the location of the error within the Problem Set (identifying which question), and the error that Pandoc returned.
One key limitation of the Lambda Feedback system is that it uses markdown content, so cannot produce all the richness of a full $$ delimiter which is equivalent to \begin{equation*}. This rules out using alternative primary environments, such as align, gather, multiline, alignat, falign.
You can use subordinate environments within an equation environment, for example the following is valid:
$$
\begin{aligned}
a & b\\
c & d
\end{aligned}
$$
Here the suffix -ed in aligned implies a subordinate environment; likewise gathered, alignedat etc. are all valid within an equation environment.
If a blank line is present within a subordinate environment \begin{aligned} then Pandoc will fail to compile the PDF. For example:
$$
\begin{aligned}
a & b\\
c & d
\end{aligned}
$$
The above will fail to compile the PDF. But removing the blank line will solve the problem.
For further reading search for the AMS math package and related literature.
Equation numbering is problematic and our advice is to use manual numbering. Automatic numbering is possible, for example using \begin{equation} within a $$ environment. Note that sometimes the equation numbers continue counting from one environment to the next, while at other times they don't. You cannot use \ref to refer to automatic equation numbers.
An alternative approach is to use an unnumbered aligned environment, and to add an extra column with the equation number in (e.g. &(2)).
For some ad hoc good practice tips, see good practice.