emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Adam Spiers <orgmode@adamspiers.org>
To: emacs-orgmode@gnu.org
Subject: Re: Beamer support - 2nd round
Date: Fri, 18 Dec 2009 11:12:05 +0000	[thread overview]
Message-ID: <20091218111205.GF5666@atlantic.linksys.moosehall> (raw)
In-Reply-To: <F8CD7F97-C502-4DC5-81AA-2A3D4AEA33F4@gmail.com>

On Mon, Dec 14, 2009 at 09:11:49AM +0100, Carsten Dominik wrote:
> On Dec 10, 2009, at 10:32 PM, Adam Spiers wrote:
> >>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 ?
> 
> I am not sure I'd like this as a default, because the used of \n may
> be many including in source code examples

Hmm, it seems quite unlikely you'd need a literal \n in the frame
*title*, but it's possible I guess ...

> 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)

That's cool, thanks :-)  I don't have a strong need for this, but was
just suggesting it as an idea to help promote the legibility and ease
of entry of org-beamer source "code".

Thanks,
Adam

      reply	other threads:[~2009-12-18 11:12 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-03 16:10 Beamer support - 2nd round Carsten Dominik
2009-12-04 18:34 ` Eric S Fraga
2009-12-04 23:31   ` Daniel Martins
2009-12-04 23:45     ` Nick Dokos
2009-12-05  0:04       ` Daniel Martins
2009-12-05  0:16         ` Nick Dokos
2009-12-05  8:05         ` Carsten Dominik
2009-12-05 14:34           ` Daniel Martins
2009-12-07 20:15           ` JBash
2009-12-07 20:29             ` JBash
2009-12-07 21:34               ` Daniel Martins
2009-12-08 17:21             ` Carsten Dominik
2009-12-08 17:52               ` JBash
2009-12-08 23:04                 ` Carsten Dominik
2009-12-05 17:10   ` Carsten Dominik
     [not found]     ` <87vdgkcg0d.wl%ucecesf@ucl.ac.uk>
2009-12-06 23:51       ` Carsten Dominik
2009-12-06 13:13 ` Magnus Henoch
2009-12-06 13:24   ` Magnus Henoch
2009-12-08 17:21   ` Carsten Dominik
2009-12-10 21:32 ` Adam Spiers
2009-12-14  8:11   ` Carsten Dominik
2009-12-18 11:12     ` Adam Spiers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091218111205.GF5666@atlantic.linksys.moosehall \
    --to=orgmode@adamspiers.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).