From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: LaTeX export Date: Sat, 31 Dec 2011 09:09:13 +0100 Message-ID: <87ipkxf9hy.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rgtz7-0006pW-M5 for emacs-orgmode@gnu.org; Sat, 31 Dec 2011 03:08:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rgtz6-0006uq-BP for emacs-orgmode@gnu.org; Sat, 31 Dec 2011 03:08:09 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:53642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rgtz6-0006uQ-2c for emacs-orgmode@gnu.org; Sat, 31 Dec 2011 03:08:08 -0500 Received: by wibhq12 with SMTP id hq12so9924803wib.0 for ; Sat, 31 Dec 2011 00:08:07 -0800 (PST) In-Reply-To: (York Zhao's message of "Fri, 30 Dec 2011 19:35:32 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: York Zhao Cc: emacs-orgmode@gnu.org Hi York, York Zhao writes: > I'm wondering if there is a way to export ONLY the LaTeX code within > "#+begin_latex" and "#+end_latex". I want the exact literal export without > adding anything before and after my code. The result should be exactly the same > as if I have copied the block between "#+begin_latex" and "#+end_latex" and > pasted to a new buffer. I would use code blocks tangling ,---- | #+TITLE: Test | | * Test headline | | #+begin_src tex :tangle yes | \documentclass{article} | \begin{document} | ... | \end{document} | #+end_src `---- `C-c C-v t' on the block will create a .tex file with the exact content of the #+begin_src block. HTH, -- Bastien