emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Mikhail Titov" <mlt@gmx.us>
To: 'suvayu ali' <fatkasuvayu+linux@gmail.com>
Cc: 'Bastien' <bzg@altern.org>, emacs-orgmode@gnu.org
Subject: Re: [beamerposter] How do I suppress frame title?
Date: Fri, 13 Apr 2012 13:31:43 -0500	[thread overview]
Message-ID: <000601cd19a3$af5f8990$0e1e9cb0$@us> (raw)
In-Reply-To: <CAMXnza0A_Gj1aoUaPL9ck-f87FgJKWbhbc0AZAmSToZdpq9nGA@mail.gmail.com>

> -----Original Message-----
> From: emacs-orgmode-bounces+mlt=gmx.us@gnu.org [mailto:emacs-orgmode-
> bounces+mlt=gmx.us@gnu.org] On Behalf Of suvayu ali
> Sent: Friday, April 13, 2012 3:52 AM
> To: Mikhail Titov
> Cc: Bastien; emacs-orgmode@gnu.org
> Subject: Re: [O] [beamerposter] How do I suppress frame title?
> 
> > I just found a quick workaround - to use "* " that is asterisk followed
> > by a space. It still generates frame but does not insert any title. I
> > feel like it might be even a bug. But it works since it is the only
> > frame I have.
> >
> > I was trying to wrap frametitle (& subtitle) generation in org-beamer.el
> > into conditional like below but I failed miserably at it.
> >
> >              (if (not (equal (cdr (assoc "BEAMER_env" props))
> > "ignoreheading"))
> >              (progn
> >              (cons "T" (if (string-match "\\S-" text)
> >                    "\n\\frametitle{%s}" ""))
> >              (cons "S" (if (string-match "\\\\\\\\" text)
> >                    "\n\\framesubtitle{%s}" ""))
> >                    ))
> 
> Your solution works, and I have used it before to get a backup slide
> marker saying just "bakup slides" in the centre before.

Do you mean former or latter one? When I try to change org-beamer.el as described above, I get "Invalid format operation %a" since I do something badly wrong. I was trying to mess with this [1] code. I don't know elisp well enough. I guess I can't do it that way.

[1] http://orgmode.org/w/?p=org-mode.git;a=blob;f=lisp/org-beamer.el;h=966db82debdf21bad0777372c06bc7cb84735cfb;hb=HEAD#l274

> But I think
> there can be a cleaner solution with pre/post-process hooks. For an
> example of such a hook with LaTeX export, see:
> 
> <https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el#L234>
> 
> Here I ignore headings for bibiliographies and appendices.

I am afraid I don't quite follow your code. I think you deal with plain latex export while mine question deals with some beamer details.

M.

  reply	other threads:[~2012-04-13 18:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-12 18:13 [beamerposter] How do I suppress frame title? Mikhail Titov
2012-04-13  5:04 ` Bastien
2012-04-13  6:19   ` Mikhail Titov
2012-04-13  8:51     ` suvayu ali
2012-04-13 18:31       ` Mikhail Titov [this message]
2012-04-14  9:58         ` suvayu ali

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='000601cd19a3$af5f8990$0e1e9cb0$@us' \
    --to=mlt@gmx.us \
    --cc=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=fatkasuvayu+linux@gmail.com \
    /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).