sphinx: Including .tex file via raw:: latex

Viewed 2467

I want to include latex doc in sphinx. sphinx html build does not include the latex file linked using .. raw:: latex directive. I have

this is my dir structure

docs/
    source/
        importlatex.rst
        index.rst

    build/
    tex/
       texfile.tex

index.rst looks like

Welcome to documentation!
=========================

Contents:

.. toctree::
   :maxdepth: 2

   icnludelatex
   and-other-stuff

icnludelatex.rst looks like:

Include Latex
=============

.. raw:: latex
    :file: ../tex/texfile.tex

this reference gives example for including html

.. raw:: html
    :file: inclusion.html

why is this happening?

1 Answers
Related