From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-export-region-as-latex skips header Date: Fri, 26 Oct 2012 15:06:05 +0200 Message-ID: <87sj91xtpk.fsf@bzg.ath.cx> References: <87ehkuy0tp@ch.ristopher.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRjiI-0001kk-CN for emacs-orgmode@gnu.org; Fri, 26 Oct 2012 09:12:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRjiH-0005v4-AX for emacs-orgmode@gnu.org; Fri, 26 Oct 2012 09:12:38 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:42504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRjiH-0005uj-42 for emacs-orgmode@gnu.org; Fri, 26 Oct 2012 09:12:37 -0400 Received: by mail-wi0-f177.google.com with SMTP id hj13so298705wib.12 for ; Fri, 26 Oct 2012 06:12:36 -0700 (PDT) In-Reply-To: <87ehkuy0tp@ch.ristopher.com> (Christopher Schmidt's message of "Fri, 19 Oct 2012 15:48:52 +0100 (BST)") 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: emacs-orgmode@gnu.org Hi Christopher, Christopher Schmidt writes: > Org-mode version 7.9.2 (release_7.9.2-52-g921998) > > C-x b test RET > insert "* dub" > M-: (org-export-region-as-latex (point-min) (point-max) nil 'string) RET > > org-export-region-as-latex returns > > "\\section{dub}\n\\label{sec-1}\n\n\\end{document}\n" > > This does not look right to me. Where is the header? Using 'string as the value for `to-buffer' does produce a string with no LaTeX header (i.e. it implicitely set body-only to t.) I've fixed the docstring wrt this. Thanks, -- Bastien