TeX.js 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. /* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
  2. /* vim: set ts=2 et sw=2 tw=80: */
  3. /*************************************************************
  4. *
  5. * MathJax/localization/en/TeX.js
  6. *
  7. * Copyright (c) 2013 The MathJax Consortium
  8. *
  9. * Licensed under the Apache License, Version 2.0 (the "License");
  10. * you may not use this file except in compliance with the License.
  11. * You may obtain a copy of the License at
  12. *
  13. * http://www.apache.org/licenses/LICENSE-2.0
  14. *
  15. * Unless required by applicable law or agreed to in writing, software
  16. * distributed under the License is distributed on an "AS IS" BASIS,
  17. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. * See the License for the specific language governing permissions and
  19. * limitations under the License.
  20. *
  21. */
  22. MathJax.Localization.addTranslation("en","TeX",{
  23. version: "2.2",
  24. isLoaded: true,
  25. strings: {
  26. ExtraOpenMissingClose:
  27. "Extra open brace or missing close brace", // NOTE: TeX commands use braces and brackets as delimiters
  28. ExtraCloseMissingOpen:
  29. "Extra close brace or missing open brace",
  30. MissingLeftExtraRight:
  31. "Missing \\left or extra \\right", // NOTE: do not translate \\left and \\right; they are TeX commands
  32. MissingScript:
  33. "Missing superscript or subscript argument",
  34. ExtraLeftMissingRight:
  35. "Extra \\left or missing \\right", // NOTE: do not translate \\left and \\right; they are TeX commands
  36. Misplaced:
  37. "Misplaced %1",
  38. MissingOpenForSub:
  39. "Missing open brace for subscript",
  40. MissingOpenForSup:
  41. "Missing open brace for superscript",
  42. AmbiguousUseOf:
  43. "Ambiguous use of %1", // NOTE: %1 will be a TeX command
  44. EnvBadEnd:
  45. "\\begin{%1} ended with \\end{%2}", // NOTE: do not translate \\begin{%1} and \\end{%1}; they are TeX commands
  46. EnvMissingEnd:
  47. "Missing \\end{%1}", // NOTE: do not translate \\end
  48. MissingBoxFor:
  49. "Missing box for %1", //NOTE: refers to TeX boxes
  50. MissingCloseBrace:
  51. "Missing close brace",
  52. UndefinedControlSequence:
  53. "Undefined control sequence %1", // NOTE: %1 will be a TeX command
  54. DoubleExponent:
  55. "Double exponent: use braces to clarify", // NOTE: example: x^3^2 should be x^{3^2} or {x^3}^2
  56. DoubleSubscripts:
  57. "Double subscripts: use braces to clarify",
  58. DoubleExponentPrime:
  59. "Prime causes double exponent: use braces to clarify", // NOTE: example: x^a' should be {x^a}' or x^{a'}
  60. CantUseHash1:
  61. "You can't use 'macro parameter character #' in math mode", // NOTE: '#' is used in TeX macros
  62. MisplacedMiddle:
  63. "%1 must be within \\left and \\right", // NOTE: do not translate \\left and \\right; they are TeX commands
  64. MisplacedLimits:
  65. "%1 is allowed only on operators", // NOTE: %1 will be \limits
  66. MisplacedMoveRoot:
  67. "%1 can appear only within a root", // NOTE: %1 will be \uproot or \leftroot
  68. MultipleCommand:
  69. "Multiple %1", // NOTE: happens when a command or token can only be present once, e.g., \tag{}
  70. IntegerArg:
  71. "The argument to %1 must be an integer",
  72. NotMathMLToken:
  73. "%1 is not a token element", // NOTE: MathJax has a non-standard \mmltoken command to insert MathML token elements
  74. InvalidMathMLAttr:
  75. "Invalid MathML attribute: %1", // NOTE: MathJax has non standard MathML and HTML related commands which can contain attributes
  76. UnknownAttrForElement:
  77. "%1 is not a recognized attribute for %2",
  78. MaxMacroSub1:
  79. "MathJax maximum macro substitution count exceeded; " + // NOTE: MathJax limits the number of macro substitutions to prevent infinite loops
  80. "is there a recursive macro call?",
  81. MaxMacroSub2:
  82. "MathJax maximum substitution count exceeded; " + // NOTE: MathJax limits the number of nested environements to prevent infinite loops
  83. "is there a recursive latex environment?",
  84. MissingArgFor:
  85. "Missing argument for %1", // NOTE: %1 will be a macro name
  86. ExtraAlignTab:
  87. "Extra alignment tab in \\cases text", // NOTE: do not translate \\cases; it is a TeX command
  88. BracketMustBeDimension:
  89. "Bracket argument to %1 must be a dimension",
  90. InvalidEnv:
  91. "Invalid environment name '%1'",
  92. UnknownEnv:
  93. "Unknown environment '%1'",
  94. ExtraClose:
  95. "Extra close brace",
  96. ExtraCloseLooking:
  97. "Extra close brace while looking for %1",
  98. MissingCloseBracket:
  99. "Couldn't find closing ']' for argument to %1",
  100. MissingOrUnrecognizedDelim:
  101. "Missing or unrecognized delimiter for %1",
  102. MissingDimOrUnits:
  103. "Missing dimension or its units for %1",
  104. TokenNotFoundForCommand:
  105. "Couldn't find %1 for %2", // NOTE: %1 is a token (e.g.,macro or symbol) and %2 is a macro name
  106. MathNotTerminated:
  107. "Math not terminated in text box",
  108. IllegalMacroParam:
  109. "Illegal macro parameter reference",
  110. MaxBufferSize:
  111. "MathJax internal buffer size exceeded; is there a recursive macro call?",
  112. /* AMSmath */
  113. CommandNotAllowedInEnv:
  114. "%1 not allowed in %2 environment",
  115. MultipleLabel:
  116. "Label '%1' multiply defined",
  117. CommandAtTheBeginingOfLine:
  118. "%1 must come at the beginning of the line", // NOTE: %1 will be a macro name
  119. IllegalAlign:
  120. "Illegal alignment specified in %1", // NOTE: %1 will be an environment name
  121. BadMathStyleFor:
  122. "Bad math style for %1",
  123. PositiveIntegerArg:
  124. "Argument to %1 must me a positive integer",
  125. ErroneousNestingEq:
  126. "Erroneous nesting of equation structures",
  127. MultlineRowsOneCol:
  128. "The rows within the %1 environment must have exactly one column",
  129. /* bbox */
  130. MultipleBBoxProperty:
  131. "%1 specified twice in %2",
  132. InvalidBBoxProperty:
  133. "'%1' doesn't look like a color, a padding dimension, or a style",
  134. /* begingroup */
  135. ExtraEndMissingBegin:
  136. "Extra %1 or missing \\begingroup", // NOTE: do not translate \\begingroup
  137. GlobalNotFollowedBy:
  138. "%1 not followed by \\let, \\def, or \\newcommand", // NOTE: do not translate \\let, \\def, or \\newcommand; they are TeX commands
  139. /* color */
  140. UndefinedColorModel:
  141. "Color model '%1' not defined",
  142. ModelArg1:
  143. "Color values for the %1 model require 3 numbers",
  144. InvalidDecimalNumber:
  145. "Invalid decimal number",
  146. ModelArg2:
  147. "Color values for the %1 model must be between %2 and %3",
  148. InvalidNumber:
  149. "Invalid number",
  150. /* extpfeil */
  151. NewextarrowArg1:
  152. "First argument to %1 must be a control sequence name",
  153. NewextarrowArg2:
  154. "Second argument to %1 must be two integers separated by a comma",
  155. NewextarrowArg3:
  156. "Third argument to %1 must be a unicode character number",
  157. /* mhchem */
  158. NoClosingChar:
  159. "Can't find closing %1", // NOTE: %1 will be ) or } or ]
  160. /* newcommand */
  161. IllegalControlSequenceName:
  162. "Illegal control sequence name for %1",
  163. IllegalParamNumber:
  164. "Illegal number of parameters specified in %1",
  165. DoubleBackSlash:
  166. "\\ must be followed by a control sequence",
  167. CantUseHash2:
  168. "Illegal use of # in template for %1",
  169. SequentialParam:
  170. "Parameters for %1 must be numbered sequentially",
  171. MissingReplacementString:
  172. "Missing replacement string for definition of %1",
  173. MismatchUseDef:
  174. "Use of %1 doesn't match its definition",
  175. RunawayArgument:
  176. "Runaway argument for %1?",
  177. /* verb */
  178. NoClosingDelim:
  179. "Can't find closing delimiter for %1"
  180. }
  181. });
  182. MathJax.Ajax.loadComplete("[MathJax]/localization/en/TeX.js");