Open etiennebr opened 4 years ago
Some thoughts:
::: {.equation #eq1} math :::
that would lead to the a new equation environment in latex
```latex
\begin{equation}
\label{eq:eq1}
math
\end{equation}
I hope there is a way in #940 syntax to label one of the equations in a aligned
, align
or any multi-line math environment:
$$ \begin{aligned}
math 1 \nonumber \\
math 2 (\#eq:label)
\end{aligned} $$
More thoughts:
Afterall the following syntax could be the simpler to implement
$$
math
$$ {#eq:label}
using lua filter maybe
❯ pandoc -t native
$$ math $$ {#eq:label}
^Z
[ Para
[ Math DisplayMath " math " , Space , Str "{#eq:label}" ]
]
This is a feature request for
$$
support for pdf output. I'm moving the discussion from https://github.com/rstudio/rticles/issues/326For epub, the syntax seems to be supported:
It would be nice to have it for pdf too.
Because the
$$
notation is closely related to cross-referencing of numbered equations, I think it's relevant to expose the cross-reference package syntax.The cross-reference pandoc filter uses
Translated to
for tex output
This is slightly different from the current solution, which is to use a syntax closer to latex
This prevents equation previews in Rstudio, and also requires the user to learn a new syntax when outputting to pdf.
By filing an issue to this repo, I promise that
xfun::session_info('bookdown')
. 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('rstudio/bookdown')
.I understand that my issue may be closed if I don't fulfill my promises.