all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Insert #+BEAMER_HEADER_EXTRA before \begin{document}?
Date: Wed, 21 May 2014 19:59:47 +0200	[thread overview]
Message-ID: <86ppj7ggh8.fsf@somewhere.org> (raw)
In-Reply-To: <87eh04703g.fsf-hclig2XLE9Zaa/9Udqfwiw@public.gmane.org> (Eric S. Fraga's message of "Thu, 8 May 2014 16:37:39 +0100")

Hi Eric, Suvayu and al.

Eric S Fraga wrote:
> On Thursday,  8 May 2014 at 15:38, Sebastien Vauban wrote:
>> The above things are currently (almost, for some) impossible.  Changing
>> where the #+BEAMER_HEADER placeholder gets inserted makes them possible
>> and easy.
>
> but unfortunately would make other things more difficult.  For instance,
> I often redefine the date command (and sometimes title and author) to do
> something different.  If the header entries were placed after the use of
> theses, things would break for me.
>
> I think the creation of an ...EXTRA directive would be better but I've
> argued for this before and have lost that argument.

I also think that having 2 locations is better than just 1, as I'm also
sure one will work better or only for specific things, but will break
for others.

Having 2 placeholders allow for full customization, if correctly
placed -- at least, one just before the begin{document}, the other?

> You can achieve what you want by redefining \title, I would
> suggest.  Not pretty but it works.

For sure, such a thing is not pretty:

--8<---------------cut here---------------start------------->8---
#+BIND: org-latex-title-command "\\title[Short title]{Title which can be\\\\very long}\n\\author[F. Last]{\\href{mailto:first.last-C43h488GkGQ@public.gmane.org}{First Last}}\n\\date[May 2014]{21 May 2014}\n\\maketitle"
--8<---------------cut here---------------end--------------->8---

But the whole point is that is DOES NOT even WORK for a couple of
things, such as modifying base colors of a theme:

--8<---------------cut here---------------start------------->8---
#+BEAMER_HEADER: \setbeamercolor{frametitle}{bg=blue}
--8<---------------cut here---------------end--------------->8---

won't work because of the misplacement of the BEAMER_HEADER placeholder
regarding to the (color) theme: the above line will be placed before the
choice of the theme... TOO EARLY.

On the contrary, adding it in the above title command (already in the
LaTeX document, that is) is TOO LATE.

Best regards,
  Seb

-- 
Sebastien Vauban

  parent reply	other threads:[~2014-05-21 17:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-07 19:01 Insert #+BEAMER_HEADER_EXTRA before \begin{document}? Sebastien Vauban
2014-05-07 22:24 ` Suvayu Ali
2014-05-07 23:26   ` Nick Dokos
2014-05-08  1:38     ` Suvayu Ali
2014-05-08 13:38       ` Sebastien Vauban
2014-05-08 14:49         ` Suvayu Ali
2014-05-08 15:37         ` Eric S Fraga
2014-05-08 19:55           ` Andreas Leha
     [not found]           ` <87eh04703g.fsf-hclig2XLE9Zaa/9Udqfwiw@public.gmane.org>
2014-05-21 17:59             ` Sebastien Vauban [this message]
2014-06-15 20:10               ` Nicolas Goaziou
     [not found]                 ` <871tuqndck.fsf-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org>
2014-06-16 13:42                   ` Sebastien Vauban
2014-06-16 14:37                     ` Nick Dokos

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

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

  git send-email \
    --in-reply-to=86ppj7ggh8.fsf@somewhere.org \
    --to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.