Skip to main content
14 events
when toggle format what by license comment
15 hours ago history edited cabohah CC BY-SA 4.0
\mathellipsis also stored and restored (and therefore still robust)
15 hours ago comment added cabohah @dedded I've added the useful \ShowCommand commands to my example, but commented them. You can activate them to see the difference of the definitions.
16 hours ago history edited cabohah CC BY-SA 4.0
added 358 characters in body
16 hours ago comment added cabohah @dedded With unicode-math \vdots is just the character . Similar for \vdots. Just add, e.g., \\ShowCommand\ddots \ShowCommand\latexddots at the beginning of \AtBeginDocument so see the difference of the definition in the log file and on the terminal.
16 hours ago comment added dedded @cabohah why do vdots and ddots need to be saved and restored anyhow? I'm not skilled in reading tex code, especially expl3, but I can't find where unicode-math re-defines them.
16 hours ago comment added cabohah @egreg I don't store and restore \dots. So with my code \dots uses the amsmath definition \ifmmode \@xp \mdots@ \else \@xp \textellipsis \fi and therefore IMHO should behave like explained in amsmath.
16 hours ago comment added egreg @cabohah True, but you still want \dots to behave as explained in amsmath, don't you? The solution is to redefine \unicodeellipsis and \unicodecdots.
16 hours ago vote accept dedded
16 hours ago
17 hours ago comment added cabohah @dedded If you load amsmath explicitly, you should do it indeed after storing \cdots into \latexcdots (this is the reason, why I've named the commands \latex… and not \ams… ;-)).
17 hours ago comment added dedded Loading amsmath or mathtools seems to defeat this solution for \cdots, unless the \NewCommandCopy lines are placed before both amsmath/mathtools and unicode-math.
17 hours ago comment added cabohah @egreg If you do it after unicode-math you would get \mathinner {\unicodecdots } instead of \mathinner {\cdotp \cdotp \cdotp} for \cdots and this is not what you want. For \vdots and \ddots there is not difference, whether you do it before or after loading unicode-math.
17 hours ago comment added dedded @egreg, Doing \NewCommandCopy after unicode-math works for all except \cdots
17 hours ago comment added egreg Do the \NewCommandCopy bits after loading unicode-math: it loads amsmath and you want the amsmath dots, not the kernel ones.
17 hours ago history answered cabohah CC BY-SA 4.0