I'm seeing some awkward clipping behavior on mathjax embeds in Figure captions. In Firefox, I see this:
which is generated by the following markdown:
```{glue:figure} shifting
*Left*: an impulse (top), a negative impulse (middle), and a 3-step delay (bottom).
*Middle*: the DFT spectrum (real and imaginary) components of each signal are distinct.
*Right*: all three signals have identical magnitude spectra $|X[m]| = 1$.
```
Note the truncated math span for $|X[m]| = 1$
.
In Chromium, I see this:
which is at least not truncated, but the scaling seems incorrect to me.
(NB: I have some custom CSS to do justified text layout, but that's independent of this problem.)
The problem appears to come from a bad interaction between the book theme and mathjax due to setting font-size: 0.9em
here
|
span { |
|
font-size: .9em; |
|
} |
This appears to be fixed if I hack this in the console to scale up to font-size: 0.9rem
(root scaling). It then renders as (in Firefox):
and in Chromium:
In both cases, the surrounding typesetting seems .... broken (note the unpredictable placement of the following punctuation). I'm not enough of a CSS wiz to sort that one out. EDIT: I think this one might be down to mathjax.
This problem may pop up in other places, and it's probably worth doing a thorough audit to ensure that root scalings are used where appropriate.