SHARE
TWEET

Untitled

a guest Jul 16th, 2019 69 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top