I've been typesetting in mathematica and would like to know if it is possible to use a keyboard shortcut to place a centered math cell or equation symbol aligned math cell in my document without having to use the writing assistant.
Yes...just figured this out. Place this in an init.m file in any path called my Mathematica. This is for a center lined math cell, but you can also do the same for Marker Aligned, Equal Aligned or whatever you want. In my code below, the first column aligns to the center and next aligns in the left. You can change this however you want. Just replace "center" or "left" with the appropriate value. Hope this helps. To use the shortcut press control+c or defined it how you please below. It also lists the shortcut in the insert menu with the appropriate shortcut labeled in case you forget. Hope this helps.
]; SelectionMove[nb,Previous,Cell]; SelectionMove[nb,Before,CellContents]; FrontEndExecute[FrontEndToken[nb,"MoveNext"]]; FrontEndExecute[FrontEndToken[nb,"MoveNext"]]; FrontEndExecute[FrontEndToken[nb,"MoveNext"]];