title: Avoid \printbibliography being swallowed by Org-mode headings
body: <p>When using Org-mode and its LaTeX export BibTeX or Biblatex is often used to handle references. In that case the LaTeX command <code>\printbibliography</code> is often included in the org file. <code>\printbibliography</code> is placed in the org file where LaTeX is supposed to write out the reference list. What <code>\printbibliography</code> does is to insert a LaTeX header along with the reference list. In most cases <code>\printbibliography</code> is placed at the end of the org file simply because in most documents the reference list is to be placed last. This means that <code>\printbibliography</code> will be included under the last heading in the org file, e.g.</p>
  
  <pre><code>* Heading
  
    \printbibliography
  </code></pre>
  
  <p>It also means that when that heading is folded the <code>\printbibliography</code> will be swallowed:</p>
  
  <pre><code>* Heading...
  </code></pre>
  
  <p>But this goes against the meaning of <code>\printbibliography</code> because it includes its own heading in the output. Also, it will be confusing when <code>\printbibliography</code> is swallowed and a new heading is placed after it because then the reference list will no longer appear last in the document.</p>
  
  <p>How can I make it so that <code>\printbibliography</code> is not swallowed by sections in Org-mode? A bonus question: how can I make it so that Org-mode does not create headings after <code>\printbibliography</code> unless <kbd>C-Ret</kbd> is pressed when the cursor is after it?</p>
  
  <p>In searching for a solution to this problem I found <a href="http://comments.gmane.org/gmane.emacs.orgmode/49545" rel="nofollow">http://comments.gmane.org/gmane.emacs.orgmode/49545</a>.</p>