Difference between revisions of "Template:Extra Maths"

From Maths
Jump to: navigation, search
m (Fixed alignment problem)
m (Made spacing barable)
 
Line 1: Line 1:
<math>\newcommand{\bigudot}{ \mathchoice{\mathop{\bigcup\mkern-15mu\cdot\mkern8mu}}{\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>
+
<math>\newcommand{\bigudot}{ \mathchoice{\mathop{\bigcup\mkern-15mu\cdot\mkern8mu}}{\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\mkern6.25mu\!}</math><math>\require{AMScd}\newcommand{\d}[1][]{\mathrm{d}^{#1} }</math><noinclude>
 
This adds {{C|\udot}} and {{C|\bigudot}} commands.
 
This adds {{C|\udot}} and {{C|\bigudot}} commands.
  
 
They look like:
 
They look like:
 +
* {{M|\cup^a_b}}
 
* {{M|\udot^a_b}}, {{MM|\udot^a_b}} for {{C|\udot}} and
 
* {{M|\udot^a_b}}, {{MM|\udot^a_b}} for {{C|\udot}} and
* {{M|\bigudot^a_b}}, {{MM|\bigudot^a_b}} for {{C|\bigudot}} (compared to {{MM|\bigcup^a_b}})
+
* {{M|\bigudot^a_b}}, {{MM|\bigudot^a_b}} for {{C|\bigudot}}  
 +
And
 +
* {{M|A\cup B\cup B}}
 +
* {{M|A\udot B\udot B}}, {{MM|A\udot B\udot B}}
 +
* {{M|A\bigudot B}}, {{MM|A\bigudot B}}
  
 
'''Note: ''' {{M|\udot}} appears not-centered due to sub-pixel problems on desktop/low-DPI displays. I can't see a fix for this
 
'''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>
 
</noinclude>

Latest revision as of 22:05, 19 March 2016

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

They look like:

  • \cup^a_b
  • \udot^a_b, \udot^a_b for \udot and
  • \bigudot^a_b, \bigudot^a_b for \bigudot

And

  • A\cup B\cup B
  • A\udot B\udot B, A\udot B\udot B
  • A\bigudot B, A\bigudot B

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