quiver icon indicating copy to clipboard operation
quiver copied to clipboard

Equation labels (feature request)

Open seanpkh opened this issue 1 year ago • 3 comments

Hi! I often want my diagrams to appear in labeled equation environments. It would be useful if the editor included an option to add an equation label and then export the latex code in the form %link \begin{equation}\label{...} DIAGRAM \end{equation}

Otherwise I find myself making several copy and pastes to get the diagram in place and the %link in place without copying over the equation label.

Thanks for all of your work on this!

seanpkh avatar Oct 09 '24 15:10 seanpkh

Why not just put your \textbf{My diagram label} in a cell next to the diagarm?

FruitfulApproach avatar Nov 24 '24 20:11 FruitfulApproach

@seanpkh: is there a reason you don't want the code to be in the following format?

\begin{equation}\label{...}
% link
DIAGRAM
\end{equation}

@FruitfulApproach: \label doesn't add text, but rather allows you to refer to the equation number outside of that environment.

varkor avatar Dec 27 '24 09:12 varkor

@varkor for either option, it would be convenient to have a toggle in the LaTeX export window alongside the "Center diagram" and "Ampersand replacement" toggles that automatically produces this formatting. Remembering the label would be a bonus! In my opinion having the link outside the environment as suggested by @seanpkh seems the most consistent with existing format options.

0rangeM avatar Jun 06 '25 14:06 0rangeM