Skip to content

Equations cross-referencing and LaTeX \mathbb #2000

@VivaldoMendes

Description

@VivaldoMendes

I am using Quarto in VSCode, and both versions are up to date. Quarto's version is 1.32.0.

I am testing it with basic LaTeX things. For example, I try to apply cross-references to maths equations but always get the word "Equation" preceding the equation number. This practice is inconvenient if we have more than one equation or want to use a short name for "equation", e.g., "eq.". How can I customize this type of output?

MWE:

$$
\max_{\left\{C_t, K_{t+1}\right\}} \  \sum_{t=0}^{\infty} \beta^t \ln C_t
$$ {#eq-1}

$$
K_{t+1} + C_t= AK_t^\alpha
$$ {#eq-2}

$$
\hat{y}_{t}=\mathbb{E}_{t} \hat{y}_{t+1}-\frac{1}{\sigma}\left(i_{t}-\mathbb{E}_{t} \pi_{t+1}-r_{t}^{n}\right)
$$ {#eq-3}

See @eq-1, @eq-2, and @eq-3 for further information.

The output is below. I would have wanted to see something like:
"See eq. (1), (2), and (3) for ....".

aa

Finally, notice the expectations operator displayed above looks rather strange. How can I obtain a more conventional symbol for this operator, usually accomplished in LaTeX, by inserting into the doc's preamble the following code:

\usepackage{amsmath,amssymb}
\DeclareMathOperator{\E}{\mathbb{E}}

Thank you.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions