# Export org file to html and latex

I want to use only one org file to export both .tex and .html.

I use begin_latex in my org files to embed maths and I can use C-c ' to use the org-edit-src-code feature which help fast typing latex(Thus I can use Auctex and more). But it seems that the contents in begin_latex will not be formatted into equations when exporting to html.

After I read the org manual, I know that latex code can be embedded without begin_latex, and can be export to both html and tex. In this situation, I have to use cdlatex to type latex in a org file and can not use the org-edit-src-code feature, which means that I lost the latex code highlighting when typing. That really annoys me.

$\frac{1}{2}$