title: Punctuation in LaTeX formulas
body: <p>It seems to be common practice, when writing mathematics, to add punctuation to displayed formulas.</p>
  
  <p>Is there any trick to avoid putting the punctuation mark inside the formula?</p>
  
  <p>I want to avoid</p>
  
  <pre><code>Consider the function
  \[ \sin(x).\]
  </code></pre>
  
  <p>I'd rather have something like:</p>
  
  <pre><code>Consider the function
  \[ \sin(x)\].
  </code></pre>
  
  <p>But of course the full stop is displayed below the formula.</p>
  
  <p>Is there a clever way to separate formulas and punctuation in LaTeX?</p>