5 'vec': ['{\\boldsymbol{#1}}', 1],
7 // -- differential operators --
9 'ddt': '\\frac{\\de}{\\de t}',
10 'ddtp': '\\frac{\\partial}{\\partial t}',
12 // -- Roman letters used in subscripts
19 'eff': '\\textrm{eff}',
25 // -- Some symbol for physical quantities
26 'diam': '\\textrm{d}',
28 'grav': '\\mathbf{g}',
31 'tdr': '\\varepsilon',
32 'stress': '\\boldsymbol{\\tau}',
33 'Rstress': '\\mathbf{R}',
38 Definitions: {macros: {
39 unit: "customUnitFrac",
40 unitfrac: "customUnitFrac",
41 nicefrac: "customUnitFrac"
44 customUnitFrac: function (name) {
45 var n = this.GetBrackets(name),
46 num = this.GetArgument(name),
49 if (n == null) {n = ""}
50 if (name == '\\unitfrac' || name == '\\nicefrac') {
51 den = this.GetArgument(name);
53 if (name == '\\unit' || name == '\\unitfrac')
55 tex = n + '\\,\\mathrm{'+num+'}';
56 if (name == '\\unitfrac')
57 tex += '/\\mathrm{'+den+'}';
58 } else if (name == '\\nicefrac') {
61 this.string = tex + this.string.slice(this.i); this.i = 0;