From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: latex export of #+header: lines Date: Sat, 21 Jan 2012 01:19:28 +0100 Message-ID: <87zkdhaovj.fsf@med.uni-goettingen.de> References: <87y5t6wwzy.fsf@med.uni-goettingen.de> <80k44q4scz.fsf@somewhere.org> <87ty3uwovp.fsf@med.uni-goettingen.de> <87pqeiwoq5.fsf@med.uni-goettingen.de> <81lip3v4i1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoOgP-0002Q2-DG for emacs-orgmode@gnu.org; Fri, 20 Jan 2012 19:19:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoOgN-0007PA-Q9 for emacs-orgmode@gnu.org; Fri, 20 Jan 2012 19:19:49 -0500 Received: from lo.gmane.org ([80.91.229.12]:56554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoOgN-0007Oy-DL for emacs-orgmode@gnu.org; Fri, 20 Jan 2012 19:19:47 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RoOgL-0004uR-Gs for emacs-orgmode@gnu.org; Sat, 21 Jan 2012 01:19:45 +0100 Received: from p57b67513.dip.t-dialin.net ([87.182.117.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Jan 2012 01:19:45 +0100 Received: from andreas.leha by p57b67513.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Jan 2012 01:19:45 +0100 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 Jambunathan K writes: > Andreas Leha writes: > >> Andreas Leha writes: >> >>> "Sebastien Vauban" >>> writes: >>> >>> >>>> Hi Andreas, >>>> >>>> Andreas Leha wrote: >>>>> I am experiencing a problem with the latex exporter: #+header: lines >>>>> are visible in the exported file. >>>>> >>>>> Example: >>>>> >>>>> /==================================================\ >>>>> * test header tag >>>>> #+caption: foo >>>>> #+label: fig:fig1 >>>>> #+name: foo >>>>> #+header: :file foo.png >>>>> #+header: :width 3600 :height 3600 :res 600 >>>>> #+begin_src R :exports results :results graphics >>>>> plot(1:10, 1:10) >>>>> #+end_src >>>>> \==================================================/ >>>> >>>> Try using #+LaTeX_HEADER: lines, instead. >>>> >>>> Best regards, >>>> Seb >>> >>> >>> Hi Seb, >>> >>> thanks for the reply! >>> >>> But as far as I know, #+LaTeX_HEADER (as described >>> here http://orgmode.org/org.html#Header-and-sectioning) is a different >>> thing from babel source block header arguments (as described here >>> http://orgmode.org/org.html#Code-block-specific-header-arguments) >>> >>> I use both quite extensively. >>> >>> The #+header: tags can be avoided by creating loooong #+begin_src >>> lines. But still, they should not appear in the exported tex code, I >>> think. >>> >>> Best, >>> Andreas >> >> Just tried, and the odt export has them as well. Maybe a problem on my >> test file? Or is the #+header(s): tag somehow deprecated? > > If you remove the indentation of "#+header:" line (and thereby force it > to start at column 0) you will see that (atleast) the ODT export doesn't > have the header lines. > > I think the problem is not with the latex or odt backends as such but in > the export pre-processor. > Hi Jambunathan, thanks for this work-around with the removal of the indentation. Works for #+ATTR_ODT: in the LaTeX export as well. Cheers, Andreas