From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: How to suppress \label commands in beamer export Date: Fri, 02 Sep 2011 09:41:32 +0100 Message-ID: <87ehzzuyir.fsf@ucl.ac.uk> References: <4e5fbabd.a184ec0a.4c77.0671@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzPx1-0002V4-48 for emacs-orgmode@gnu.org; Fri, 02 Sep 2011 05:22:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzPx0-0003zC-0t for emacs-orgmode@gnu.org; Fri, 02 Sep 2011 05:22:15 -0400 Received: from vscani-e.ucl.ac.uk ([144.82.108.33]:36308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzPwz-0003xy-Sx for emacs-orgmode@gnu.org; Fri, 02 Sep 2011 05:22:13 -0400 In-Reply-To: <4e5fbabd.a184ec0a.4c77.0671@mx.google.com> (Darlan Cavalcante Moreira's message of "Thu, 01 Sep 2011 14:02:49 -0300") 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: Darlan Cavalcante Moreira Cc: Orgmode Mailing List Darlan Cavalcante Moreira writes: > I'm trying to convert a presentation I've done in beamer to org-mode. I'm > going to improve this presentation and add more stuff to it. I'd like to do > it in org-mode. > > However, org adds \label{sec-numbers} in the generated tex file after all > environments and this adds some blank space between the blocks in the final > presentation. I understand this extra blank space is more like a latex > issue, but I couldn't find a way to stop org-mode from creating the \label > lines. Having looked at the code, there definitely does not appear to be any way to turn these off. It would be straightforward to modify the code --8<---------------cut here---------------start------------->8--- (when label (insert (mapconcat (lambda (l) (format "\\label{%s}" l)) label-list "\n") "\n")) --8<---------------cut here---------------end--------------->8--- or, more likely, the code in =org-export-latex-subcontent= which actually defines =label=? This could be made optional depending on the num: #+OPTION, say? But it may not be straightforward because labels are not only due to sectioning, if I understand the code correctly... However, the problem with spacing appears to be because of some interaction between labels and overprint. I wonder if maybe there is an easier way (in the meantime) to accomplish what you want without overprint? Just curious... -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.7 (release_7.7.238.gc51b7)