Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tex2svg-page: global svg cache not rendering in safari #44

Open
dkumor opened this issue Oct 23, 2021 · 2 comments
Open

tex2svg-page: global svg cache not rendering in safari #44

dkumor opened this issue Oct 23, 2021 · 2 comments

Comments

@dkumor
Copy link

dkumor commented Oct 23, 2021

When running tex2svg-page on a set of HTML files, (both litedom and jsdom), math is rendered correctly when cache is none or local, but when the cache is global, latest safari on macos and on iPad (as well as chrome on iPad, which I think uses the safari webview) fail to render the SVG, leaving blank spaces.

Both chrome and firefox render correctly with the global cache, it is only safari which seems to have issues.

When using the mathjax javascript with global cache on the site, instead of pre-rendering math, everything is rendered correctly, so there seems to be some difference between pre-rendered by tex2svg-page and rendered live on Safari.

@dpvc
Copy link
Member

dpvc commented Oct 23, 2021

I'm not able to reproduce the issue. Running tex2svg --fontCache global on

<html>
<head>
<title>Test</title>
</head>
<body>

$$x+1$$

</body>
</html>

produces a file that displays properly for me in Safari 14.1.2 on Mac OS X 10.14.6.

Can you provide a (minimal) sample the doesn't work for you, but the source and the MathJax output?

@dkumor
Copy link
Author

dkumor commented Oct 23, 2021

I think I was able to create a minimal reproduction - I think that if the page is large enough (I copy pasted a fragment many times), safari starts rendering the SVG before the global cache is parsed (it is at the bottom of the HTML), which makes a different number of statements rendered based on how fast the parser/svg renderer are in relation to each other (different amount of rendering on each refresh).

Here is the reproduction code, which was then converted with tex2svg-page test.html > output.html

<!DOCTYPE html>

<html lang="en">
<head>
<title>Test</title>
</head>
<body>
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
    Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:Recall that the covariance between \(X\) and \(Y\) is defined \(\sigma_{xy} = \mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]\). To simplify the math (without loss of generality), let's assume that \(X\) and \(Y\) are normalized, meaning that the data has mean 0 and variance 1. This makes \(\sigma_{xy} = \mathbb{E}[XY]\). With this, we can derive the solution to \(\beta\) with a bit of calculus, which gives:
</body>
</html>

And here is a screenshot of the resulting rendered page on my iPad:
image

I think a possible fix would be to alter the output of the renderer to put the SVG cache at the top of the page. Is this doable with the litedom adapter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants