From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Beamer support - 2nd round Date: Mon, 14 Dec 2009 09:11:49 +0100 Message-ID: References: <20091210213239.GC5666@atlantic.linksys.moosehall> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NK62B-0000lM-78 for emacs-orgmode@gnu.org; Mon, 14 Dec 2009 03:11:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NK626-0000iL-Rp for emacs-orgmode@gnu.org; Mon, 14 Dec 2009 03:11:58 -0500 Received: from [199.232.76.173] (port=34155 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NK626-0000iI-Jj for emacs-orgmode@gnu.org; Mon, 14 Dec 2009 03:11:54 -0500 Received: from paard.ic.uva.nl ([145.18.40.182]:41818) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NK626-0005wD-7e for emacs-orgmode@gnu.org; Mon, 14 Dec 2009 03:11:54 -0500 In-Reply-To: <20091210213239.GC5666@atlantic.linksys.moosehall> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Adam Spiers Cc: emacs-orgmode@gnu.org On Dec 10, 2009, at 10:32 PM, Adam Spiers wrote: > On Thu, Dec 03, 2009 at 05:10:44PM +0100, Carsten Dominik wrote: >> Dear all, >> >> after carefully listening to all your comments and thinking >> things through more thoroughly, here is now my second attempt >> to define beamer support in Org-mode. > > [snipped] > > This is very exciting :-) Just one comment for now: > >> 2.2 Frames >> =========== >> >> The BEAMER_FRAME_LEVEL setting governs which levels become frames. >> If >> that option is set to 0, then frames are only created by setting the >> `BEAMER_env' property of an entry to the value `frame'. >> >> The heading of the entry will become the frame title. If the frame >> title contains the string `\\', the line will be split at that >> location, and the second half will become the frame /subtitle/. If >> you need a line break in the frame title, use `\newline' or >> `\linebreak'. > > If the frame title is long enough to require a line break, most likely > it will start creeping over the right-hand margin of the emacs frame > during editing. Consequently anything which can save a few columns > might be helpful, so how about allowing \n to mean the same as > \newline ? Hi Adam, I am not sure I'd like this as a default, because the used of \n may be many including in source code examples, but why don't you just do this: (defun my-make-backslash-n-mean-newline () (save-excursion (goto-char (point-min)) (replace-regexp "\\\\n\\>" "\\\\newline"))) (add-hook 'org-export-preprocess-hook 'my-make-backslash-n-mean-newline) HTH - Carsten