This is the code I use:


this is the output I get (red line is to emphasize unequal alignment):

How can I make cdot's and slash's widths match?


You can use a \makebox to create a box as wide as the slash:

enter image description here




\verb|\cdot| same width as slash:
x &= a \mycdot a \\
x &= a / a
Slash same width as \verb|\cdot|:
x &= a \cdot a \\
x &= a \myslash a
| improve this answer | |
  • 1
    You can get it to work across all math styles with \usepackage{scalerel} \newcommand*{\mycdot}{\ThisStyle{\makebox[\widthof{$\SavedStyle/$}]{$\SavedStyle\cdot$}}} – Steven B. Segletes Aug 22 '17 at 1:43
  • 1
    @bp2017: Please correct the title of the question. Both options are now provided. – Peter Grill Aug 22 '17 at 4:31

This scales in subscripts and superscripts and allows for different widths based on other operators.




&a\cdot a\\
&a\wslash a \\
&x_{a\cdot a}\\
&x_{a\wslash a}


enter image description here

| improve this answer | |
  • @bp2017 I'm not sure what you're referring to. – egreg Oct 25 '17 at 6:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.