title: Typesetting New Functions in LaTeX
body: <p>So, I just have a little question:</p>
  
  <p>What is the "best way" to typeset new functions in LaTeX which aren't already included in the various packages?  Right now I'm just using <code>\mbox</code> as my go-to method,  but I just was wondering if there was a more "acceptable way of doing it (as with mbox, I have to make sure to include spaces around the text of the functions in order for it to not look too strange)</p>
  
  <p>Here is an example:</p>
  
  <pre><code>$y(t)=2e^{1/2}\sqrt{\pi}\mbox{Erfi }(t)$
  </code></pre>
  
  <p>which comes out looking like:</p>
  
  <p><a href="http://adamnbowen.com/images/error_function.jpg" rel="nofollow noreferrer">$y(t)=2e^{1/2}\sqrt{\pi}\mbox{Erfi }(t)$ http://adamnbowen.com/images/error_function.jpg</a></p>
  
  <p>Don't get me wrong... I think it looks fine, but I was just looking for some opinions (as far as best practices go).</p>