-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Support for LaTeX equation cases is needed #57
Comments
From https://slides.yihui.org/xaringan/#16
That said, I think there may be an issue in xaringan, because putting the ---
title: "Latex Cases"
output:
xaringan::moon_reader:
seal: false
---
**Doesn't work...**
\begin{equation}
\begin{cases}
\Delta_{0}=0,3\Delta_{1}+0,3\Delta_{0} \\
\Delta_{1}-5=0,2\Delta_{1}-0,2\Delta_{0}
\end{cases}
\end{equation}
$$\begin{equation}
\begin{cases}
\Delta_{0}=0,3\Delta_{1}+0,3\Delta_{0} \\
\Delta_{1}-5=0,2\Delta_{1}-0,2\Delta_{0}
\end{cases}
\end{equation}$$
**I thought this would work according to xaringan docs**
\begin{equation}\begin{cases}\Delta_{0}=0,3\Delta_{1}+0,3\Delta_{0} \\ \Delta_{1}-5=0,2\Delta_{1}-0,2\Delta_{0}\end{cases}\end{equation}
**This does work!**
$\begin{equation}\begin{cases}\Delta_{0}=0,3\Delta_{1}+0,3\Delta_{0} \\ \Delta_{1}-5=0,2\Delta_{1}-0,2\Delta_{0}\end{cases}\end{equation}$ |
This is the same bug as reported here: https://stackoverflow.com/q/67076613/559676 The bug was from here (nested math environments don't work): Lines 95 to 101 in ca981bf
The workaround is to join \begin{equation}
\begin{cases}\Delta_{0}=0,3\Delta_{1}+0,3\Delta_{0} \\
\Delta_{1}-5=0,2\Delta_{1}-0,2\Delta_{0}\end{cases}
\end{equation} |
Below is the minimal reproducible example:
It uses Cases inside Equation environment.
Rendering is successful for PDF -
but Xaringan does not render it
Details about system:
By filing an issue to this repo, I promise that
xfun::session_info('xaringan')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/xaringan')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: