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

KaTeX parse error in heterogeneity lecture #184

Closed
jlperla opened this issue Aug 13, 2021 · 1 comment · May be fixed by #203
Closed

KaTeX parse error in heterogeneity lecture #184

jlperla opened this issue Aug 13, 2021 · 1 comment · May be fixed by #203
Assignees

Comments

@jlperla
Copy link
Member

jlperla commented Aug 13, 2021

image

You can see that it doesn't like the use of \DeclareMathOperator*{\argmin}{arg\,min} there in katex.

i.e. it is

$$
\DeclareMathOperator*{\argmin}{arg\,min}
\beta_0, \beta_1 = \argmin_{b_0,b_1} E[(s_0(x) -
b_0 - b_1 (S(x)-E[S(x)]))^2]
$$

But I beleive that DeclareMathOperator might only be valid in the preamble in latex and this shouldn't actually work.

Regardless, I think that either the DeclareMathOperator needs to be centralized in one way or another or (preferably) we just skip out those sorts of preamble things and have it raw. It doesn't appear that DeclareMathOperator is used anywhere else, so this might be the only location.

@jlperla
Copy link
Member Author

jlperla commented Aug 13, 2021

I think changing this to something like the following should be enough for now.

$$
\beta_0, \beta_1 = \mathit{argmin}_{b_0,b_1} E[(s_0(x) -
b_0 - b_1 (S(x)-E[S(x)]))^2]
$$

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

Successfully merging a pull request may close this issue.

3 participants