Guest User

Untitled

a guest
Jul 16th, 2019
81
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. newcommand{expcti}[2]{operatorname{mathbb{E}}_{#2}expectiarg#1}
  2. DeclarePairedDelimiterX{expectiarg}[1]{[}{]}{%
  3. ifnumcurrentgrouptype=16 elsebegingroupfi
  4. activatebar#1
  5. ifnumcurrentgrouptype=16 elseendgroupfi
  6. }
  7.  
  8.  
  9. newcommand{innermid}{nonscript;delimsizevertnonscript;}
  10. newcommand{activatebar}{%
  11. begingrouplccode`~=`|
  12. lowercase{endgrouplet~}innermid
  13. mathcode`|=string"8000
  14. }
RAW Paste Data