package tex

Import Path
	github.com/d2lang/mathjax-go/internal/tex (on go.dev)

Dependency Relation
	imports 20 packages, and imported by one package

Involved Source Files alignedat.go ams_flalign.go ams_tags.go ams_tags_environments.go amscd_handlers.go Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Source: BaseItems.ArrayItem.checkItem/EndEntry/EndRow/EndTable. Copyright (c) 2009-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Source: ts/input/tex/ParseUtil.ts fixInitialMO; base/BaseItems.ts EqnArrayItem.EndEntry and ams/AmsItems.ts MultlineItem.EndEntry. Copyright (c) 2009-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Source: ts/input/tex/base/BaseItems.ts ArrayItem.EndRow/EndTable. Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Sources: BaseMethods.HLine and BaseItems.ArrayItem.checkLines/createMml. base_ams_handlers.go Copyright (c) 2009-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Sources: ts/input/tex/braket/{BraketMethods,BraketItems}.ts. buildrel.go Copyright (c) 2018-2022 MathJax Consortium SPDX-License-Identifier: Apache-2.0 Go translation of cases/CasesConfiguration.ts and EmpheqUtil.left. Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Source: BaseMethods.Entry/Cr/CrLaTeX, BaseItems.CellItem, and StackItem. Copyright (c) 2009-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Sources: FilterUtil.cleanSubSup, ParseOptions.getList/inTree, ParseUtil.copyNode and NodeUtil.copyAttributes (MathJax 3.2.2). clean_stretchy.go combine_relations.go commands.go Package tex is a source-shaped Go port of MathJax 3.2.2's TeX input jax. It compiles the fixed package set used by D2 (base, AMS, mathtools, AMS-CD, braket, cancel, cases, color, gensymb, mhchem, and physics) into the shared internal MathML tree. delimiters.go Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Source: TexParser.GetDimen/GetArgument and ParseUtil.matchDimen (MathJax 3.2.2). empheq_handlers.go Copyright (c) 2009-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Source: BaseMethods.BeginEnd and ParseUtil.checkMaxMacros. Copyright (c) 2009-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Source: BaseMethods.BeginEnd, BeginItem/EndItem, CasesMethods.NumCases, and MathtoolsMethods.SpreadLines. environments.go errors.go Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Based on Stack.Push, PhysicsMethods.AutoClose and BaseItems.PositionItem. Copyright (c) 2020-2022 MathJax Consortium SPDX-License-Identifier: Apache-2.0 Source: ts/input/tex/mathtools/MathtoolsConfiguration.ts, fixPrescripts. Copyright (c) 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 framebox.go genfrac_palette.go getnext_space.go Copyright (c) 2009-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Source: ts/input/tex/base/{BaseMethods,BaseItems}.ts. inheritance.go internal_text.go keyval_options.go Copyright (c) 2009-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Based on BaseMethods.LeftRight and BaseItems.LeftItem (MathJax 3.2.2). Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Based on BaseMethods.Limits and the node-specific MmlNode.coreMO methods. Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Based on ParseUtil.addArgs and ParseUtil.substituteArgs (MathJax 3.2.2). Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Copyright (c) 2020-2022 MathJax Consortium SPDX-License-Identifier: Apache-2.0 Source: ts/input/tex/mathtools/MathtoolsMethods.ts, MathtoolsUtil.ts, and base/BaseItems.ts (EqnArrayItem and ArrayItem.addRowSpacing). mathtools_handlers.go mathtools_handlers_commands.go mathtools_handlers_environments.go mathtools_lap.go mathtools_style.go mathtools_text_lap.go matrix_cases.go matrix_command.go Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Source: ts/core/MmlTree/{MML,MmlNode,MmlFactory}.ts. mml_token.go Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Based on FilterUtil.moveLimits and NodeUtil.copyAttributes. mu_dimension.go newcommand.go nodes.go Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Sources: BaseItems.NonscriptItem and BaseConfiguration.filterNonscript. operator_creation.go operator_dictionary_generated.go Copyright (c) 2009-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Sources: BaseMethods.Array/AlignedArray, BaseItems.ArrayItem/BeginItem, MathtoolsMethods.MtMatrix/MtSmallMatrix/SpreadLines, and Stack.Pop. parser.go Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Based on BaseMethods.Dots, BaseItems.DotsItem and MmlMo.texClass (MathJax 3.2.2). Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Based on BaseMethods.Not and BaseItems.NotItem (MathJax 3.2.2). Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Based on BaseMethods.Prime and BaseItems.PrimeItem/SubsupItem (MathJax 3.2.2). Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Based on PhysicsMethods.Derivative/OperatorApplication, PhysicsItems.AutoOpen and ParseUtil.fenced. Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Based on PhysicsMethods.Derivative/Differential/Commutator, AmsMethods, and TexParser. Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Source: PhysicsMethods.Expectation and outputBraket. physics_handlers.go Copyright (c) 2019-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Source: ts/input/tex/physics/{PhysicsMethods,PhysicsMappings}.ts. physics_operator_application.go Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Sources: PhysicsMappings, PhysicsMethods.Quantity and PhysicsItems.AutoOpen. Copyright (c) 2009-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Based on BaseMethods.RaiseLower/MoveLeftRight and BaseItems.PositionItem. root_index.go Copyright (c) 2009-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Source: base/BaseMethods.ts Rule, color/ColorMethods.ts, and ArrayItem.copyEnv. Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Based on BaseMethods and BaseItems.SubsupItem (MathJax 3.2.2). Copyright 2017-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Based on BaseMethods.Subscript and BaseMethods.Superscript (MathJax 3.2.2). source_runtime.go source_tables_ams_maps.go source_tables_amscd_braket_cases_maps.go source_tables_base_maps.go source_tables_empheq_newcommand_maps.go source_tables_mathtools_maps.go source_tables_packages.go source_tables_physics_maps.go source_tables_selected_extensions_maps.go source_tables_types.go Copyright (c) 2021-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Sources: MathtoolsMethods.SpreadLines and MathtoolsUtil.spreadLines. symbols.go Copyright (c) 2009-2022 The MathJax Consortium SPDX-License-Identifier: Apache-2.0 Source: ts/input/tex/physics/PhysicsMethods.ts, createVectorToken/VectorBold.
Package-Level Type Names (total 2)
/* sort by: | */
Compiler implements pipeline.Compiler. Compiler has no mutable parse state; every Compile call receives fresh macro and environment tables, as does the MathJax TeX input jax after ParseOptions.clear(). Compile parses one TeX expression and wraps the result in MathJax's math node. Display mode is represented by the explicit display="block" attribute, matching TeX.compile in ts/input/tex.ts. *Compiler : github.com/d2lang/mathjax-go/internal/pipeline.Compiler func NewCompiler() *Compiler
Error is the Go equivalent of MathJax's TexError. ID is deliberately kept separate from the rendered message because the JavaScript parser and its tests use the stable identifier when classifying failures. ID string Message string (*Error) Error() string *Error : error
Package-Level Functions (only one)
NewCompiler constructs the fixed MathJax 3.2.2 compiler used by D2.