@@ -41,7 +41,7 @@ import {MathtoolsTags} from './MathtoolsTags.js';
4141import { MathtoolsUtil } from './MathtoolsUtil.js' ;
4242
4343/**
44- * The implementations for the macros and environemtns for the mathtools package.
44+ * The implementations for the macros and environments for the mathtools package.
4545 */
4646export const MathtoolsMethods : Record < string , ParseMethod > = {
4747
@@ -104,7 +104,7 @@ export const MathtoolsMethods: Record<string, ParseMethod> = {
104104 } ,
105105
106106 /**
107- * Replacement for the AMS HandleShove that incldues optional spacing values
107+ * Replacement for the AMS HandleShove that includes optional spacing values
108108 *
109109 * @param {TexParser } parser The active tex parser.
110110 * @param {string } name The name of the calling macro.
@@ -400,10 +400,17 @@ export const MathtoolsMethods: Record<string, ParseMethod> = {
400400 const base = new TexParser ( arg , parser . stack . env , parser . configuration ) . mml ( ) ;
401401 let mml = parser . create ( 'node' , 'mpadded' , [
402402 parser . create ( 'node' , 'mpadded' , [
403- parser . create ( 'node' , 'mo' , [ parser . create ( 'text' , '\u22EE' ) ] )
404- ] , { width : 0 , lspace : '-.5width' , ...( isFlush ? { height : '-.6em' , voffset : '-.18em' } : { } ) } ) ,
403+ parser . create ( 'node' , 'mo' , [
404+ parser . create ( 'text' , '\u22EE' )
405+ ] )
406+ ] , {
407+ width : 0 ,
408+ lspace : '-.5width' , ...( isFlush ? { height : '-.6em' , voffset : '-.18em' } : { } )
409+ } ) ,
405410 parser . create ( 'node' , 'mphantom' , [ base ] )
406- ] , { lspace : '.5width' } ) ;
411+ ] , {
412+ lspace : '.5width'
413+ } ) ;
407414 parser . Push ( mml ) ;
408415 } ,
409416
@@ -573,6 +580,8 @@ export const MathtoolsMethods: Record<string, ParseMethod> = {
573580 *
574581 * @param {TexParser } parser The calling parser.
575582 * @param {string } name The macro name.
583+ * @param {string } c The base arrow for the slashed version
584+ * @param {string } dy A vertical offset for the slash
576585 */
577586 NArrow ( parser : TexParser , _name : string , c : string , dy : string ) {
578587 parser . Push (
0 commit comments