MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / serializeLatex

Function serializeLatex

src/compute-engine/latex-syntax/serializer.ts:713–720  ·  view source on GitHub ↗
(
  expr: MathJsonExpression | null,
  dict: IndexedLatexDictionary,
  options: Readonly<SerializeLatexOptions>
)

Source from the content-addressed store, hash-verified

711 rest = nextRest;
712 }
713
714 // Only the top level can have superscripts and subscripts
715 let baseBody = body;
716 if (topLevel) {
717 const sups: string[] = [];
718 const subs: string[] = [];
719
720 // Check if we have a string of digits at the end of the body.
721 //
722 // Only a name that already uses the `_` subscript convention gets this
723 // prettification: promoting the trailing digits of a PLAIN name would

Callers 3

addSequenceRecurrenceFunction · 0.85
addMultiIndexRecurrenceFunction · 0.85
core.tsFile · 0.85

Calls 1

serializeMethod · 0.95

Tested by

no test coverage detected