MCPcopy Create free account

hub / github.com/KaTeX/KaTeX / functions

Functions524 in github.com/KaTeX/KaTeX

↓ 48 callersFunctionmakeSpan
( classes?: string[], children?: HtmlDomNode[], options?: Options, style?: CssStyle, )
src/buildCommon.ts:355
↓ 41 callersFunctiondefineFunction
( data: FunctionDefSpec<NODETYPE, NAMES>, )
src/defineFunction.ts:169
↓ 38 callersFunctionmakeEm
(n: number)
src/units.ts:101
↓ 24 callersMethodsetAttribute
* Sets an attribute on a MathML node. MathML depends on attributes to convey a * semantic content, so this is used heavily.
src/mathMLTree.ts:68
↓ 23 callersMethodsetAttribute
* Sets an arbitrary attribute on the span. Warning: use this wisely. Not * all browsers support attributes the same, and having too many custom
src/domTree.ts:243
↓ 22 callersFunctionassertNodeType
( node: AnyParseNode | null | undefined, type: NODETYPE, )
src/parseNode.ts:8
↓ 22 callersMethodhas
* Detect whether `name` has a definition. Equivalent to * `get(name) != null`.
src/Namespace.ts:68
↓ 19 callersMethodfontMetrics
* Return the font metrics for this size.
src/Options.ts:296
↓ 17 callersFunctionmakeVList
(params: VListParam, options: Options)
src/buildCommon.ts:552
↓ 16 callersMethodfetch
* Return the current lookahead token, or if there isn't one (at the * beginning, or if the previous lookahead token was consume()d), * fetch
src/Parser.ts:102
↓ 15 callersMethodget
* Get the current value of a name, or `undefined` if there is no value. * * Note: Do not use `if (namespace.get(...))` to detect whether a m
src/Namespace.ts:81
↓ 14 callersMethodconsume
* Discards the current lookahead token, considering it consumed.
src/Parser.ts:93
↓ 14 callersMethodhavingStyle
* Return an options object with the given style. If `this.style === style`, * returns `this`.
src/Options.ts:127
↓ 13 callersMethodset
* Set the current value of a name, and optionally set it globally too. * Local set() sets the current value and (when appropriate) adds an undo
src/Namespace.ts:96
↓ 12 callersFunctioncalculateSize
( sizeValue: Measurement, options: Options)
src/units.ts:55
↓ 12 callersMethodextend
* Returns a new options object with the same properties as "this". Properties * from "extension" will be copied to the new options object.
src/Options.ts:103
↓ 12 callersFunctionordargument
(arg: AnyParseNode)
src/defineFunction.ts:218
↓ 12 callersMethodparseExpression
* Parses an "expression", which is a list of atoms. * * `breakOnInfix`: Should the parsing stop when we hit infix nodes? This *
src/Parser.ts:189
↓ 9 callersFunctionmakeFragment
( children: HtmlDomNode[], )
src/buildCommon.ts:412
↓ 8 callersFunctionescape
(text: unknown)
src/utils.ts:26
↓ 8 callersMethodexpect
* Checks a result to make sure it has the right type, and throws an * appropriate error otherwise.
src/Parser.ts:79
↓ 8 callersMethodparse
* Main parsing function, which parses an entire input.
src/Parser.ts:120
↓ 8 callersMethodwithFont
* Creates a new options object with the given math font or old text font. * @type {[type]}
src/Options.ts:230
↓ 7 callersFunctioncreateClass
(classes: string[])
src/domTree.ts:27
↓ 7 callersMethodendGroup
* End current nested group, restoring values before the group began.
src/Namespace.ts:39
↓ 7 callersFunctionisCharacterBox
(group: AnyParseNode)
src/utils.ts:61
↓ 7 callersFunctionmakeSvgSpan
( classes?: string[], children?: SvgNode[], options?: Options, style?: CssStyle, )
src/buildCommon.ts:370
↓ 7 callersFunctionmakeSymbol
( value: string, fontName: FontName, mode: Mode, options?: Options, classes?: string[], )
src/buildCommon.ts:64
↓ 7 callersMethodreportNonstrict
* Report nonstrict (non-LaTeX-compatible) input. * Can safely not be called if `this.strict` is false in JavaScript.
src/Settings.ts:392
↓ 7 callersMethodresolve
(name: string)
test/globals.d.ts:13
↓ 7 callersMethodtoMarkup
()
src/tree.ts:8
↓ 6 callersMethodbeginGroup
* Start a new nested group, affecting future local `set`s.
src/Namespace.ts:32
↓ 6 callersFunctiondefineFunctionBuilders
({ type, htmlBuilder, mathmlBuilder, }: { type: NODETYPE; htmlBuilder?: HtmlBuilder<NODETYPE>;
src/defineFunction.ts:197
↓ 6 callersMethodfuture
* Returns the topmost token on the stack, without expanding it. * Similar in behavior to TeX's `\futurelet`.
src/defineMacro.ts:22
↓ 6 callersMethodhasClass
(className: string)
src/domTree.ts:192
↓ 5 callersMethodconsumeSpaces
* Consume all following space tokens, without expansion.
src/defineMacro.ts:32
↓ 5 callersMethodfuture
* Returns the topmost token on the stack, without expanding it. * Similar in behavior to TeX's `\futurelet`.
src/MacroExpander.ts:88
↓ 5 callersMethodhavingBaseStyle
* Like `this.havingSize(BASESIZE).havingStyle(style)`. If `style` is omitted, * changes to at least `\textstyle`.
src/Options.ts:167
↓ 5 callersFunctionparseTree
( toParse: string | InstanceType<typeof String>, settings: Settings, )
src/parseTree.ts:11
↓ 5 callersMethodpushToken
* Add a given token to the token stack. In particular, this get be used * to put back a token returned from one of the other methods.
src/MacroExpander.ts:107
↓ 5 callersFunctionr
(x: TemplateStringsArray | string | String)
test/helpers.ts:24
↓ 5 callersMethodrange
* Given a pair of tokens (this and endToken), compute a `Token` encompassing * the whole input range enclosed by these two.
src/Token.ts:43
↓ 5 callersMethodsizingClasses
* Return the CSS sizing classes required to switch from enclosing options * `oldOptions` to `this`. Returns an array of classes.
src/Options.ts:265
↓ 5 callersMethodsup
()
src/Style.ts:84
↓ 5 callersMethodtext
()
src/Style.ts:89
↓ 5 callersMethodtoNode
()
src/tree.ts:7
↓ 4 callersFunctiondefineMacro
(name: string, body: MacroDefinition)
src/defineMacro.ts:122
↓ 4 callersFunctionexpectKaTeX
(expr: any, settings?: any, mode?: any, isNot?: any, expectedError?: any)
test/helpers.ts:139
↓ 4 callersMethodformatUnsupportedCmd
* Converts the textual input of an unsupported command into a text node * contained within a color node whose color is determined by errorColor
src/Parser.ts:313
↓ 4 callersMethodgetAttribute
* Gets an attribute on a MathML node.
src/mathMLTree.ts:75
↓ 4 callersMethodgetColor
* Gets the CSS color of the current options object
src/Options.ts:306
↓ 4 callersFunctiongetCurrentSidebarWidth
()
static/main.js:121
↓ 4 callersFunctionisMobileViewport
()
static/main.js:53
↓ 4 callersFunctionlookupSymbol
( value: string, fontName: FontName, mode: Mode, )
src/buildCommon.ts:32
↓ 4 callersFunctionmakeLineSpan
( className: string, options: Options, thickness?: number, )
src/buildCommon.ts:377
↓ 4 callersMethodparseFunction
* Parses an entire function, including its base and all of its arguments.
src/Parser.ts:461
↓ 4 callersMethodparseStringGroup
* Parses a group, essentially returning the string formed by the * brace-enclosed tokens plus some position information.
src/Parser.ts:630
↓ 4 callersMethodpopToken
* Remove and return the next unexpanded token.
src/defineMacro.ts:27
↓ 4 callersMethodpopToken
* Remove and return the next unexpanded token.
src/MacroExpander.ts:98
↓ 4 callersMethodpushTokens
* Append an array of tokens to the token stack.
src/MacroExpander.ts:114
↓ 4 callersMethodread_byte
(self)
src/metrics/parse_tfm.py:102
↓ 4 callersFunctionstretchyMathML
(label: string)
src/stretchy.ts:63
↓ 4 callersFunctionstretchySvg
( group: ParseNode<"accent"> | ParseNode<"accentUnder"> | ParseNode<"xArrow"> | ParseNode<"horizB
src/stretchy.ts:167
↓ 4 callersMethodsub
()
src/Style.ts:85
↓ 4 callersMethodtoText
()
src/mathMLTree.ts:32
↓ 4 callersFunctionwrapFragment
( group: HtmlDomNode, options: Options, )
src/buildCommon.ts:426
↓ 3 callersFunctionassertSymbolNodeType
(node: AnyParseNode)
src/parseNode.ts:25
↓ 3 callersFunctionbinrelClass
(arg: AnyParseNode)
src/functions/mclass.ts:81
↓ 3 callersFunctionbuildMathML
( tree: AnyParseNode[], texExpression: string, options: Options, isDisplayMode: boolean, f
src/buildMathML.ts:283
↓ 3 callersMethodcallFunction
* Call a function handler with a suitable context and arguments.
src/Parser.ts:494
↓ 3 callersFunctioncheckSymbolNodeType
(node: AnyParseNode)
src/parseNode.ts:39
↓ 3 callersFunctioncmd
()
dockers/screenshotter/screenshotter.js:98
↓ 3 callersMethodconsumeArg
* Consume an argument from the token stream, and return the resulting array * of tokens and start/end token.
src/defineMacro.ts:74
↓ 3 callersMethodconsumeSpaces
* Discard any space tokens, fetching the next non-space token.
src/Parser.ts:620
↓ 3 callersFunctioncreateConfig
* Create a webpack config for given target * @param {Target} target * @param {boolean} dev * @param {boolean} minimize * @returns {object}
webpack.common.js:66
↓ 3 callersFunctioncssStyleToString
(style: CssStyle)
src/domTree.ts:35
↓ 3 callersMethodexpandOnce
* Expand the next token only once if possible. * * If the token is expanded, the resulting tokens will be pushed onto * the stack in re
src/MacroExpander.ts:279
↓ 3 callersFunctiongetCharacterMetrics
( character: string, font: string, mode: Mode, )
src/fontMetrics.ts:201
↓ 3 callersFunctiongetCurrentMobileOptionsHeight
()
static/main.js:129
↓ 3 callersMethodhavingCrampedStyle
* Return an options object with a cramped version of the current style. If * the current style is cramped, returns `this`.
src/Options.ts:142
↓ 3 callersMethodhavingSize
* Return an options object with the given size and in at least `\textstyle`. * Returns `this` if appropriate.
src/Options.ts:150
↓ 3 callersMethodisTight
()
src/Style.ts:90
↓ 3 callersMethodisTrusted
* Check whether to test potentially dangerous input, and return * `true` (trusted) or `false` (untrusted). The sole argument `context` * sh
src/Settings.ts:464
↓ 3 callersFunctionmakeOrd
( group: ParseNode<"spacing"> | ParseNode<"mathord"> | ParseNode<"textord">, options: Options, )
src/buildCommon.ts:169
↓ 3 callersFunctionmathsym
( value: string, mode: Mode, options: Options, classes: string[] = [], )
src/buildCommon.ts:109
↓ 3 callersFunctionnormalizeArgument
(arg: AnyParseNode)
src/defineFunction.ts:212
↓ 3 callersMethodparseGroup
* Parses an ordinary group, which is either a single nucleus (like "x") * or an expression in braces (like "{x+y}") or an implicit group, a group
src/Parser.ts:810
↓ 3 callersMethodparseSizeGroup
* Parses a size specification, consisting of magnitude and unit.
src/Parser.ts:707
↓ 3 callersFunctionsetMobileOptionsHeight
(height, shouldPersist)
static/main.js:99
↓ 3 callersFunctionsetSidebarWidth
(width, shouldPersist)
static/main.js:67
↓ 3 callersFunctionsizeElementFromChildren
( elem: DomSpan | Anchor | HtmlDocumentFragment, )
src/buildCommon.ts:322
↓ 3 callersFunctionstyleWrap
( delim: HtmlDomNode, toStyle: StyleInterface, options: Options, classes: string[], )
src/delimiter.ts:65
↓ 3 callersMethodsubparse
* Fully parse a separate sequence of tokens as a separate job. * Tokens should be specified in reverse order, as in a MacroDefinition.
src/Parser.ts:158
↓ 3 callersFunctionsupportedCodepoint
(codepoint: number)
src/unicodeScripts.ts:117
↓ 3 callersFunctionsyncSidebarWidthMode
()
static/main.js:152
↓ 3 callersMethodwithColor
* Create a new options object with the given color.
src/Options.ts:211
↓ 2 callersFunction_match
(input, pattern)
contrib/mhchem/mhchem.js:380
↓ 2 callersFunctionassembleSupSub
( base: DomSpan | SymbolNode, supGroup: AnyParseNode | null | undefined, subGroup: AnyParseNode |
src/functions/utils/assembleSupSub.ts:12
↓ 2 callersFunctionbuildA11yStrings
( tree: AnyParseNode | AnyParseNode[], a11yStrings: NestedArray<string> = [], atomType: Atom | "no
contrib/render-a11y-string/render-a11y-string.ts:689
↓ 2 callersFunctionbuildExpression
( expression: AnyParseNode[], options: Options, isOrdgroup?: boolean, )
src/buildMathML.ts:168
next →1–100 of 524, ranked by callers