title: sphinx: Including .tex file via raw:: latex
body: <p>I want  to include latex doc in sphinx. sphinx html build does not include the latex file linked using <code>.. raw:: latex</code> directive. I have</p>
  
  <p>this is my dir structure</p>
  
  <pre><code>docs/
      source/
          importlatex.rst
          index.rst
  
      build/
      tex/
         texfile.tex
  </code></pre>
  
  <p><code>index.rst</code> looks like</p>
  
  <pre><code>Welcome to documentation!
  =========================
  
  Contents:
  
  .. toctree::
     :maxdepth: 2
  
     icnludelatex
     and-other-stuff
  </code></pre>
  
  <p><code>icnludelatex.rst</code> looks like:</p>
  
  <pre><code>Include Latex
  =============
  
  .. raw:: latex
      :file: ../tex/texfile.tex
  </code></pre>
  
  <p><a href="http://docutils.sourceforge.net/docs/ref/rst/directives.html#raw-data-pass-through" rel="noreferrer">this reference</a> gives example for including html </p>
  
  <pre><code>.. raw:: html
      :file: inclusion.html
  </code></pre>
  
  <p>why is this happening? </p>