Mathmode and co
Mathmode is displayed online via MathJAX. That works quite well, but
- within \text only a very limited TeX syntax is possible!
For example: \text{Dit is \textit{italic}} works in TeX, but NOT in MathJAX! For example:
- \hfill does not seem to work (correctly)
- Ximera has a trick to make \newcommand work in MathJAX
- Ximera implements (via some hacking!) \answer in MathJax 2.x (but, that does NOT work in MathJAX 3.x)
Answers and solutions
- in \answer, \dfrac does not work (correct answer is counted as wrong!); use \frac
Tables and co
The problem is likely caused by the tag. Moreover, it does not seem to work well with hyperref, because a reference with \hyperref[fail:test_tag]{my text} seems to display the text that is associated with the label online(!), instead of the text in the \hyperref: see this description.
Conclusion: avoid \tag (or figure it out and adjust this text!)
\begin{align*} \important{\frac{a}{b} = \frac{c}{d}} &\iff \important{ad = bc} \tag *{equality of (numerical value of) fractions (cross multiplication)}\label{fail:test_tag}\\ \\ \frac{a}{b}+\frac{c}{d} \quad &\perdef \quad \frac{ad+cb}{bd} \tag *{ addition (bringing to a common denominator)}\label{fail:optelling breuken} \\ \\ \frac{a}{b} \cdot \frac{c}{d} \quad &\perdef \quad \frac{a\cdot c}{b\cdot d} \tag *{multiplication (numerator $\times $ numerator, denominator $\times $ denominator) }\label{fail: vermenigvuldiging breuken} \\ \\ \frac{a}{b} : \frac{c}{d} \quad &\perdef \quad \frac ab \cdot \frac dc = \frac{a\cdot d}{b\cdot c} \tag *{division (times by the reciprocal)}\label{fail: deling breuken} \\ \end{align*}
A tabular tends to occupy the full width online. That is usually not nice. An alternative is to use array, which resizes correctly (but of course, they are in math mode!)
With tabular (and center):
x | 1 |
y | 2 |
z | 1 |
With array:
Numbering and co
The numbering of parts, sections, definitions, etc. is done (at least partly) by TeX (for PDF) as well as by Ximera (for online). This is inherently somewhat subtle, and differences may arise at some point. Also, dynamically including sections/ximeras/... or not (pdf/online/handout/...) may and will possibly cause issues with numbering/pagination.
2024-07-15 10:40:39