Source File
mathtools_style.go
Belonging Package
github.com/d2lang/mathjax-go/internal/tex
// Copyright (c) 2020-2022 MathJax Consortium// SPDX-License-Identifier: Apache-2.0// Source: ts/input/tex/mathtools/{MathtoolsMethods,MathtoolsUtil}.ts.package teximport ()// Mathtools reads a literal optional style name, without expanding it. Its// accepted keys differ from the numeric styles used by the fraction handlers.func setMathtoolsDisplayLevel( *mml.Node, string) {, := false, 0switch strings.TrimFunc(, internalTextSpace) {case "\\displaystyle":= truecase "\\textstyle":case "\\scriptstyle":= 1case "\\scriptscriptstyle":= 2default:return}.Attributes.Set("displaystyle", ).Attributes.Set("scriptlevel", )}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |