Skip to content

amsmath label is not aligning to right end #643

@wzleong

Description

@wzleong

Adding equation in markdown with labels with referencing.
Below is the code.
$$
\begin{split}
x = y+z
\end{split}
$$ (eqn:coordinate)

The label unfortunately is generated as shown below at the left of the equation instead of aligning to right end.
This is generated with sphinx, sphinx_rtd_theme. The equations were also initially aligning to the right but have resolved it by adding the following custom css. Please advise if there is a way to update the label to align at the right
.math {
margin-left: auto !important;
margin-right: auto !important;
width: fit-content !important;
text-align: right !important;
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions