Guest User

Untitled

a guest
Feb 23rd, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.96 KB | None | 0 0
  1. \documentclass{article}
  2.  
  3. \usepackage{amsmath,amssymb}
  4.  
  5. \newcommand\setst[2]{\{#1 :
  6.  \begin{array}[t]{@{}l@{}}#2 \}\end{array}}
  7.  
  8. % my attempted mod
  9. \newcommand\Setst[3][0pt]{%
  10.   \expandafter\setsttopandbottom#3\relax
  11.   \begin{array}{@{}l @{\ } l@{}}
  12.    \left\{#2 :\vphantom{\setsttop}\vphantom{\setstbottom}\right.\kern-\nulldelimiterspace &
  13.    \begin{array}[t]{@{}l@{}}
  14.      \setsttop
  15.      \\[#1]
  16.      \kern-\nulldelimiterspace\left.\setstbottom\vphantom{\setsttop}\right\}
  17.    \end{array}
  18.  \end{array}
  19.  }
  20.  
  21. \def\setsttopandbottom#1\\#2\relax{\def\setsttop{#1}\def\setstbottom{#2}}
  22.  
  23. \begin{document}
  24.  
  25. OK:
  26. \[
  27.  \setst{f}{f(t) > 0 \text{ for all $t$ with } 0 < t < 1 \\
  28.      \text{and }\left|\int_{0}^{1}e^{-\frac{1}{2} t^{2}}f(t) dt\right| \leq 1 }
  29. \]
  30.  
  31. Modified:
  32. \[
  33.  \Setst[20pt]{f}{f(t) > 0 \text{ for all $t$ with } 0 < t < 1\\
  34.      \displaystyle\text{and }\left|\int_{0}^{1}e^{-\frac{1}{2} t^{2}}f(t) dt\right| \leq 1 }
  35. \]
  36.  
  37. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment