title: LaTeX with embedded in-line code blocks and AucTeX
body: <p>I am writing LaTeX in my org file with embedded code evaluation using <code>src_lang</code> <a href="http://orgmode.org/worg/org-contrib/babel/intro.html#sec-5-4" rel="nofollow">in-line code blocks</a> (in my case, lang=lisp).  This works fine when using bare LaTeX for export, but I would like AUCTeX editing and highlighting which are not available with bare LaTeX in the org file.  The only way I can see to get AUCTeX is to use a <a href="http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html" rel="nofollow">LaTeX source code block</a>; this does what I want, but now the inline code blocks are not expanded; instead, they are exported literally to the LaTeX.  Is there a way to have an exportable LaTeX source code block that expands in-line code blocks on export, or somehow have the AuCTeX editing features with in-line src_lang code blocks that get expanded?</p>
  
  <p>Example:</p>
  
  <pre><code>* This is an example
  #+BEGIN_SRC latex
  This is an example.  The sum of 2 and 2 is $src_lisp{(+ 2 2)}$.
  #+END_SRC
  </code></pre>
  
  <p>produces (removing a lot of preamble for clarity)</p>
  
  <pre><code>\begin{document}
  \maketitle
  \setcounter{tocdepth}{3}
  \tableofcontents
  \vspace*{1cm}
  \section{This is an example}
  \label{sec-1}
  
  This is an example.  The sum of 2 and 2 is $src_lisp{(+ 2 2)}$.
  
  \end{document}
  </code></pre>
  
  <p>whereas</p>
  
  <pre><code>* This is an example
  This is an example.  The sum of 2 and 2 is $src_lisp{(+ 2 2)}$.
  </code></pre>
  
  <p>produces</p>
  
  <pre><code>\begin{document}
  
  \maketitle
  
  \setcounter{tocdepth}{3}
  \tableofcontents
  \vspace*{1cm}
  \section{This is an example}
  \label{sec-1}
  
  This is an example.  The sum of 2 and 2 is $=4=$.
  
  \end{document}
  </code></pre>