Difference between revisions of "Template:ProbMacro"

From Maths
Jump to: navigation, search
m (Changed to div (from span))
m (Typo)
Line 1: Line 1:
<div style="font-size:0px;">{{M|1=\newcommand{\PP}[1]{  {\mathbb{P}\left[{#1}\right]} } }}</div><noinclude>
+
<div style="font-size:0px;">{{M|1=\newcommand{\P}[1]{  {\mathbb{P}\left[{#1}\right]} } }}</div><noinclude>
 
==Description==
 
==Description==
 
* Prototype created: 3rd Nov 2017
 
* Prototype created: 3rd Nov 2017
Line 8: Line 8:
 
* Support things like {{M|\mathbb{P}'[A]}} or {{M|\overline{\mathbb{P} }[A]}}
 
* Support things like {{M|\mathbb{P}'[A]}} or {{M|\overline{\mathbb{P} }[A]}}
 
==Tests==
 
==Tests==
* {{M|\PP{A} }}
+
* {{M|\P{A} }}
 
</noinclude>
 
</noinclude>

Revision as of 16:35, 3 November 2017

[ilmath]\newcommand{\P}[1]{ {\mathbb{P}\left[{#1}\right]} }[/ilmath]

Description

  • Prototype created: 3rd Nov 2017
  • Purpose: to be included and uniformly provide a short cut to typing \mathbb{P}\left[(whatever)\right] every time

Tasks


TODO: Remove this when there are none left


  • Support variations, for example to underbrace things without the brackets becoming huge
  • Support things like [ilmath]\mathbb{P}'[A][/ilmath] or [ilmath]\overline{\mathbb{P} }[A][/ilmath]

Tests

  • [ilmath]\P{A} [/ilmath]