Lines Matching refs:pu
54 // Add \ce, \pu, and \tripledash to the KaTeX macros.
59 katex.__defineMacro("\\pu", function (context) {
60 return chemParse(context.consumeArgs(1)[0], "pu");
67 // This is the main function for handing the \ce and \pu commands.
68 // It takes the argument to \ce or \pu and returns the corresponding TeX string.
2248 // \pu state machines
2250 //#region pu
2251 'pu': { property
2337 mhchemParser.concatArray(ret, mhchemParser.go(m[1], 'pu-9,9'));
2341 mhchemParser.concatArray(ret, mhchemParser.go(m[2], 'pu-9,9'));
2380 mhchemParser.concatArray(ret, mhchemParser.go(m[1], 'pu-9,9'));
2392 type_: 'pu-space-1'
2420 d: mhchemParser.go(buffer.d, 'pu'),
2421 q: mhchemParser.go(buffer.q, 'pu')
2426 type_: 'pu-frac',
2447 ret = mhchemParser.go(buffer.d, 'pu-2');
2458 'pu-2': {
2515 type_: 'pu-space-2'
2526 ret = mhchemParser.go(mrm.match_, 'pu');
2543 'pu-9,9': {
2807 case 'pu-frac':
2878 case 'pu-space-1':
2882 case 'pu-space-2':