// Copyright (c) 2017-2022 The MathJax Consortium // SPDX-License-Identifier: Apache-2.0
package tex // BaseMappings registers both argument-taking MathFont commands and SetFont // declarations. Use the retained source registrations so aliases share the // existing handlers, including explicit empty variants such as mathnormal. func baseFontMappings( string) map[string]string { := make(map[string]string) for , := range mjSourceBaseMaps { if .Kind != mjSourceCommandMap || .Name != "macros" { continue } for , := range .Entries { , , := sourceHandler(.Value) if ! || != || len() != 1 { continue } if , := [0].(string); { [.Name] = } } } return }