123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- /*************************************************************
- *
- * Copyright (c) 2017-2022 The MathJax Consortium
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- /**
- * @fileoverview Constant definitions for the TeX Parser. These should
- * eventually be combined with the MathML structure.
- *
- * @author v.sorge@mathjax.org (Volker Sorge)
- */
- export namespace TexConstant {
- export const Variant = {
- NORMAL: 'normal',
- BOLD: 'bold',
- ITALIC: 'italic',
- BOLDITALIC: 'bold-italic',
- DOUBLESTRUCK: 'double-struck',
- FRAKTUR: 'fraktur',
- BOLDFRAKTUR: 'bold-fraktur',
- SCRIPT: 'script',
- BOLDSCRIPT: 'bold-script',
- SANSSERIF: 'sans-serif',
- BOLDSANSSERIF: 'bold-sans-serif',
- SANSSERIFITALIC: 'sans-serif-italic',
- SANSSERIFBOLDITALIC: 'sans-serif-bold-italic',
- MONOSPACE: 'monospace',
- INITIAL: 'inital',
- TAILED: 'tailed',
- LOOPED: 'looped',
- STRETCHED: 'stretched',
- CALLIGRAPHIC: '-tex-calligraphic',
- BOLDCALLIGRAPHIC: '-tex-bold-calligraphic',
- OLDSTYLE: '-tex-oldstyle',
- BOLDOLDSTYLE: '-tex-bold-oldstyle',
- MATHITALIC: '-tex-mathit'
- };
- export const Form = {
- PREFIX: 'prefix',
- INFIX: 'infix',
- POSTFIX: 'postfix'
- };
- export const LineBreak = {
- AUTO: 'auto',
- NEWLINE: 'newline',
- NOBREAK: 'nobreak',
- GOODBREAK: 'goodbreak',
- BADBREAK: 'badbreak'
- };
- export const LineBreakStyle = {
- BEFORE: 'before',
- AFTER: 'after',
- DUPLICATE: 'duplicate',
- INFIXLINBREAKSTYLE: 'infixlinebreakstyle'
- };
- export const IndentAlign = {
- LEFT: 'left',
- CENTER: 'center',
- RIGHT: 'right',
- AUTO: 'auto',
- ID: 'id',
- INDENTALIGN: 'indentalign'
- };
- export const IndentShift = {
- INDENTSHIFT: 'indentshift'
- };
- export const LineThickness = {
- THIN: 'thin',
- MEDIUM: 'medium',
- THICK: 'thick'
- };
- export const Notation = {
- LONGDIV: 'longdiv',
- ACTUARIAL: 'actuarial',
- PHASORANGLE: 'phasorangle',
- RADICAL: 'radical',
- BOX: 'box',
- ROUNDEDBOX: 'roundedbox',
- CIRCLE: 'circle',
- LEFT: 'left',
- RIGHT: 'right',
- TOP: 'top',
- BOTTOM: 'bottom',
- UPDIAGONALSTRIKE: 'updiagonalstrike',
- DOWNDIAGONALSTRIKE: 'downdiagonalstrike',
- VERTICALSTRIKE: 'verticalstrike',
- HORIZONTALSTRIKE: 'horizontalstrike',
- NORTHEASTARROW: 'northeastarrow',
- MADRUWB: 'madruwb',
- UPDIAGONALARROW: 'updiagonalarrow'
- };
- export const Align = {
- TOP: 'top',
- BOTTOM: 'bottom',
- CENTER: 'center',
- BASELINE: 'baseline',
- AXIS: 'axis',
- LEFT: 'left',
- RIGHT: 'right'
- };
- export const Lines = {
- NONE: 'none',
- SOLID: 'solid',
- DASHED: 'dashed'
- };
- export const Side = {
- LEFT: 'left',
- RIGHT: 'right',
- LEFTOVERLAP: 'leftoverlap',
- RIGHTOVERLAP: 'rightoverlap'
- };
- export const Width = {
- AUTO: 'auto',
- FIT: 'fit'
- };
- export const Actiontype = {
- TOGGLE: 'toggle',
- STATUSLINE: 'statusline',
- TOOLTIP: 'tooltip',
- INPUT: 'input'
- };
- export const Overflow = {
- LINBREAK: 'linebreak',
- SCROLL: 'scroll',
- ELIDE: 'elide',
- TRUNCATE: 'truncate',
- SCALE: 'scale'
- };
- export const Unit = {
- EM: 'em',
- EX: 'ex',
- PX: 'px',
- IN: 'in',
- CM: 'cm',
- MM: 'mm',
- PT: 'pt',
- PC: 'pc'
- };
- }
|