]> git.lyx.org Git - features.git/commit
Cleanup of spacing in mathed
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 24 May 2016 10:08:24 +0000 (12:08 +0200)
committerRichard Heck <rgheck@lyx.org>
Sun, 29 May 2016 21:55:55 +0000 (17:55 -0400)
commit65a6cc1fc3bc71a53e6f004a9b18e8dd1d32ecf2
tree20b1f9e173c7135a28a7b370a4e64bcb1a92c88b
parent320b616c50a1a46da4e3b2026ce795b1e9a96025
Cleanup of spacing in mathed

This is a first cleanup step. More complex rules have to be
implemented on top of this.

Use proper spacing \thinmuskip, \medmuskip and \thickmuskip instead of
ad-hoc values.

Rename isRelOp to isMathRel and introduce isMathBin and isMathPunct
(for InsetMathChar and InsetMathSymbol). Update the categories of
characters in InsetMathChar according to LaTeX source (fontmath.ltx).

Set correctly the spacing around mathrel, mathbin and mathpunct
elements. Use \thinmuskip around MathDelim instead of a hardcoded 4.

This is related to bug #8883.
src/mathed/InsetMath.h
src/mathed/InsetMathChar.cpp
src/mathed/InsetMathChar.h
src/mathed/InsetMathDelim.cpp
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathSymbol.cpp
src/mathed/InsetMathSymbol.h
src/mathed/MathSupport.cpp
src/mathed/MathSupport.h