1

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
     \begin{exercise}{1}
       Prove the theorem
     \end{exercise}
     \begin{proof}
       Let $x \in A$ blah blah.....
     \end{proof}
   #+END_SRC

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?

2

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, privacy policy and cookie policy

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