Template:ProbMacro

From Maths
Revision as of 16:49, 3 November 2017 by Alec (Talk | contribs) (Adding conditional versions)

Jump to: navigation, search

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
  • No spaces are provided either side of the | in conditional versions.

Tasks


TODO: Remove this when there are none left


  • Support variations, for example to underbrace things without the brackets becoming huge
  • Support things like P[A] or ¯P[A]
  • If Plcond and Prcond always work the same, introduce Pcond alone. I have no solution right now. Examples of why below
    • They are named so that the left one is sized by the first argument, the right one is sized by the second (due to the \vert in the middle)

Tests

  • P[A], P[A|B]
    • lcond:
      • P[nk=1|small]
      • P[small|nk=1]
    • rcond:
      • P[nk=1|small]
      • P[small|nk=1]

Pay careful condition to the | heights as much as the [ and ]