From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Several questions about beamer export Date: Fri, 12 Jul 2013 03:13:00 -0400 Message-ID: <87mwps45fn.fsf@gmail.com> References: <87li5cwymc.fsf@free.fr> <87vc4g4g5p.fsf@gmail.com> <874nc0we5z.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxXXb-0008MZ-9v for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 03:13:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxXXY-0001XP-RD for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 03:13:19 -0400 Received: from plane.gmane.org ([80.91.229.3]:40456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxXXY-0001XG-KI for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 03:13:16 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UxXXW-0005nk-Qa for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 09:13:14 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Jul 2013 09:13:14 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Jul 2013 09:13:14 +0200 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 Julien Cubizolles writes: > Nick Dokos writes: > >> Julien Cubizolles writes: >> >>> ... >>> * All the headers I add end up on the same line when I define them like >>> in the following (even with an empty line). >>> >>> #+LATEX_HEADER_EXTRA: \institute{My Institure} >>> >>> #+LATEX_HEADER:\usepackage{mypackage} >>> >>> The LaTeX file produced is not very readable. How can I produce >>> linebreaks between different LATEX_HEADER entriesĀ ? >>> >> >> You need to modify the code to get them: that's probably an omission >> (ngz will probably respond in much more detail than I can). They are >> only cosmetic of course, but if you have to have them, you can try >> adding them in org-beamer-template around line 880: >> >> (concat (plist-get info :latex-header) >> "\n" >> (plist-get info :latex-header-extra) >> "\n" >> (plist-get info :beamer-header-extra) >> "\n"))) > > Let's make it an improvement suggestion then: getting \usepackage{} and > \date{} commands mixed in the LaTeX file isn't very nice. > >> The problem with this is that the newlines are added even if the >> various items are empty, so you may end up with more newlines than >> are necessary. > > I'd personally prefer having empty lines instead of everything on the > same line. > While we are talking about cosmetic whitespace issues, let me also point out that the default beamer class in ox-beamer contains unnecessary indentation. Clearly, it's there to make the lisp code look prettier but it makes the resulting latex code uglier. Should anybody care? Eh, I don't know... I certainly don't feel strongly about it either way. -- Nick