Option for parentheses around equation numbers #2413
Closed
jordan-melendez
started this conversation in
Feature Requests
Replies: 2 comments
-
Thanks for your feedback. Currently there is no way to control that. I'll open issue about this. For now, if you target PDF only, you could pass Example ---
format: pdf
---
Black-Scholes Eq. \eqref{eq-black-scholes} is a mathematical model that seeks to explain the behavior of financial derivatives, most commonly options:
$$
\frac{\partial \mathrm C}{ \partial \mathrm t } + \frac{1}{2}\sigma^{2} \mathrm S^{2}
\frac{\partial^{2} \mathrm C}{\partial \mathrm C^2}
+ \mathrm r \mathrm S \frac{\partial \mathrm C}{\partial \mathrm S}\ =
\mathrm r \mathrm C
$$ {#eq-black-scholes} This is not ideal, as not portable in HTML (maybe portability can be added with Lua filter, but unsure). It is just a workaround for PDF only, to show it works, but far from ideal. We'll see if we can improve this in the future |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closing in favour of #2439 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In certain journals it is common to format references to equations like
Eq. (1.1)
with parentheses around the equation number. Quarto supports modifyingEq.
witheq-prefix
, but would it be possible to eithereq-prefix
that allows one to customize the reference further, and/or\eqref
gets used rather than\ref
for equation references. This would requireamsmath
I suppose, but would automatically add parentheses and permit further customization.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions