I'm looking to use org-mode to typeset homework for a math class I'm taking and was wondering if there is a way to export only certain LaTex blocks to the final PDF using org-babel. As an example consider

** TODO [#A] Question 1
   DEADLINE: <2017-01-17 Tue>
   Notes about the problem and links to resources would go here.
   #+BEGIN_SRC latex
       Prove the theorem
       Let $x \in A$ blah blah.....

When exporting to PDF I would only want the LaTex code to show up in the PDF but not the TODO heading or any of the other notes and links that might be below it. Is there a way to do this?

1 Answer 1


From this reddit thread, I found that this can be accomplished using org-babel-tangle.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.