-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
🐛 FIX: changes in source file for pdf build #136
Conversation
@AakashGfude the |
ooh no !! I will rebuild and see, else need to debug. |
It looks okay when building locally. Wonder what the reason is. |
The CI is using sphinxv4 to build and is throwing errors because of this issue: QuantEcon/quantecon-book-theme#172 . |
@AakashGfude just checking in on this PR. Is the upstream issue is now resolved. |
@jlperla these are some small changes to get PDF builds to work on |
There is an issue with Jupyter-server that needs investigating but will remove this restriction once that is resolved. |
@jlperla this is the latest @AakashGfude I noticed that the |
@AakashGfude I have identified the issue. It is from
When building the Julia lectures if there is generated "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Our formula is"
]
},
{
"data": {
"text/latex": [
"$$ \\begin{equation}\n",
"\\frac{x0}{1 + \\frac{-1 - g}{1 + r}}\n",
"\\end{equation}\n",
" $$"
],
"text/plain": [
"x0 / (1 + (-1 - g) / (1 + r))"
]
}, which gets wrapped in tex as \begin{sphinxuseclass}{cell_output}
\begin{sphinxVerbatim}[commandchars=\\\{\}]
Our formula is
\end{sphinxVerbatim}
\begin{equation*}
\begin{split} \begin{equation}
\frac{x0}{1 + \frac{-1 - g}{1 + r}}
\end{equation}
\end{split}
\end{equation*}
\end{sphinxuseclass}\end{sphinxVerbatimOutput} and Is this something we could fix in maybe for |
sphinx / Jupyter-book must be interpreting the |
This could be fixed using
which returns in the "data": {
"text/latex": [
"\\begin{equation}\n",
"\\frac{x0}{1 + \\frac{-1 - g}{1 + r}}\n",
"\\end{equation}\n" returns LaTeX and no markdown wrappers or delimiters @jlperla do you know any other settings in |
So the
so we still get double math environments. Will check latexify docs to see if we can not wrap the equation. |
@AakashGfude ...
"text/latex": [
"$\\displaystyle \\cos{\\left(x \\right)} + 1$"
],
"text/plain": [
"cos(x) + 1"
] which also includes |
Looks good to me! Thanks for finding a workaround |
No description provided.