Difference between revisions of "Template:Extra Maths"

From Maths
Jump to: navigation, search
m
(FINALLY centred the dots)
Line 1: Line 1:
<includeonly><math>\newcommand{\bigudot}{\mathop{\bigcup\mkern-14mu\cdot\mkern5mu}}\newcommand{\udot}{\cup\mkern-11.5mu\cdot\mkern1mu}\require{AMScd}\newcommand{\d}[1][]{\mathrm{d}^{#1} }</math></includeonly>
+
<math>\newcommand{\bigudot}{ \mathchoice{\mathop{\bigcup\mkern-15mu\cdot\mkern5mu}}{\mathop{\bigcup\mkern-13mu\cdot\mkern5mu}}{\mathop{\bigcup\mkern-13mu\cdot\mkern5mu}}{\mathop{\bigcup\mkern-13mu\cdot\mkern5mu}} }</math><math>\newcommand{\udot}{\cup\mkern-12.5mu\cdot\mkern1mu}</math><math>\require{AMScd}\newcommand{\d}[1][]{\mathrm{d}^{#1} }</math><noinclude>
 +
This adds {{C|\udot}} and {{C|\bigudot}} commands.
 +
 
 +
They look like:
 +
* {{M|\udot}}, {{MM|\udot}} for {{C|\udot}} and
 +
* {{M|\bigudot}}, {{MM|\bigudot}} for {{C|\bigudot}}
 +
 
 +
'''Note: ''' {{M|\udot}} appears not-centered due to sub-pixel problems on desktop/low-DPI displays. I can't see a fix for this
 +
</noinclude>

Revision as of 21:52, 19 March 2016

[math]\newcommand{\bigudot}{ \mathchoice{\mathop{\bigcup\mkern-15mu\cdot\mkern5mu}}{\mathop{\bigcup\mkern-13mu\cdot\mkern5mu}}{\mathop{\bigcup\mkern-13mu\cdot\mkern5mu}}{\mathop{\bigcup\mkern-13mu\cdot\mkern5mu}} }[/math][math]\newcommand{\udot}{\cup\mkern-12.5mu\cdot\mkern1mu}[/math][math]\require{AMScd}\newcommand{\d}[1][]{\mathrm{d}^{#1} }[/math] This adds \udot and \bigudot commands.

They look like:

  • [ilmath]\udot[/ilmath], [math]\udot[/math] for \udot and
  • [ilmath]\bigudot[/ilmath], [math]\bigudot[/math] for \bigudot

Note: [ilmath]\udot[/ilmath] appears not-centered due to sub-pixel problems on desktop/low-DPI displays. I can't see a fix for this