From: James Harkins <jamshark70@gmail.com>
To: orgmode <emacs-orgmode@gnu.org>
Subject: #+PROPERTY: for babel header args worked... then it didn't
Date: Thu, 05 Dec 2013 17:58:06 +0800 [thread overview]
Message-ID: <0c8155a0-e0db-43d0-9a86-5a009707d86a@dewdrop-world.net> (raw)
Wee bit of frustration with Babel just now.
Some weeks ago, I wrote a Beamer presentation with LilyPond source code
blocks. I needed to add a little code to each example to suppress the
"tagline" from each results file. In that presentation, setting the
:prologue header argument in a #+PROPERTY line worked perfectly:
#+PROPERTY: header-args:lilypond :prologue \header{tagline=##f}
Now I'm working on a short article-class document, and I included the same
#+PROPERTY at the top, and... no effect. But... *the lines are identical*.
??
":prologue \header{tagline=##f}" does take effect if I include it in every
#+begin_src line. That's an acceptable workaround for this file, since
there won't be many examples.
But it bothers me when I figure something out, and then I try to do it
again, and it doesn't work. It's like 1 + 1 = 2 in one place, and 1 + 1 = 0
in another.
Why would "#+PROPERTY" work in one file and be ignored in the other?
hjh
Header of the working file:
~~
#+BIND: org-latex-listings-options (("basicstyle" "\\ttfamily\\scriptsize")
("captionpos" "b") ("tabsize" "3"))
#+PROPERTY: header-args:lilypond :prologue \header{tagline=##f}
#+LANGUAGE: en
#+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t ':t
# #+OPTIONS: c:nil creator:comment d:(not LOGBOOK) date:t e:t email:nil
#+OPTIONS: email:nil
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_THEME: default
#+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col)
%8BEAMER_opt(Opt)
#+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC
#+LATEX_HEADER: \usepackage{fontspec}
#+LATEX_HEADER: \setmonofont{Inconsolata}
#+LATEX_HEADER: \usepackage[pdf]{pstricks}
#+LATEX_HEADER: \usepackage[indentfirst=false]{xeCJK}
#+LATEX_HEADER: \setCJKmainfont{WenQuanYi Zen Hei}
#+LATEX_HEADER: \setCJKsansfont{WenQuanYi Zen Hei}
#+LATEX_HEADER: \setCJKmonofont{WenQuanYi Zen Hei}
#+LATEX_HEADER: \usepackage{listings}
#+LATEX_HEADER: \usepackage{color}
#+LATEX_HEADER: \definecolor{codecolor}{RGB}{150,0,100}
#+LATEX_HEADER:
\newcommand{\inpcode}[1]{\textcolor{codecolor}{\texttt{#1}}}
#+LATEX_HEADER: \newcommand{\codeident}[1]{\mbox{\texttt{#1}}}
#+LATEX_HEADER: \newcommand{\termemph}[1]{\emph{#1}}
#+TITLE: What's Wrong with Finale? \\ Free Music Notation with LilyPond
#+AUTHOR: H. James Harkins
# #+DATE: 31 October 2013
#+BEGIN_LaTeX
\AtBeginSection[] % Do nothing for \section*
{
\begin{frame}<beamer>
\frametitle{Outline}
\tableofcontents[currentsection]
\end{frame}
}
#+END_LaTeX
~~
Header of the non-working file:
~~
#+PROPERTY: header-args:lilypond :prologue \header{tagline=##f}
#+TITLE: Notes on the fall 2013 show
#+DATE: <2013-11-27>
#+AUTHOR: James Harkins
#+OPTIONS: ':t *:t -:t ::t <:t H:3 \n:nil ^:t arch:headline author:t
#+OPTIONS: c:nil creator:comment d:(not LOGBOOK) date:t e:t email:nil
#+OPTIONS: f:t inline:t num:t p:nil pri:nil stat:t tags:t tasks:t
#+OPTIONS: tex:t timestamp:t toc:nil todo:t |:t
#+CREATOR: Emacs 23.3.1 (Org mode 8.2)
#+DESCRIPTION:
#+EXCLUDE_TAGS: noexport
#+KEYWORDS:
#+LANGUAGE: en
#+SELECT_TAGS: export
#+OPTIONS: texht:t
#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [a4paper]
#+LATEX_HEADER:
#+LATEX_HEADER_EXTRA:
#+LATEX_HEADER: \usepackage{fontspec}
#+LATEX_HEADER: \setmainfont[Ligatures={Common,TeX}]{CharisSIL}
#+LATEX_HEADER: \setmonofont{Inconsolata}
#+LATEX_HEADER: \setcounter{secnumdepth}{0}
#+LATEX_HEADER:
\usepackage[a4paper,inner=2.5cm,outer=2.5cm,top=2.8cm,bottom=2.8cm]{geometry}
#+LATEX_HEADER: \usepackage[english]{babel}
~~
next reply other threads:[~2013-12-05 9:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-05 9:58 James Harkins [this message]
2013-12-05 11:02 ` #+PROPERTY: for babel header args worked... then it didn't Sebastien Vauban
2013-12-05 19:54 ` Achim Gratz
2013-12-06 1:37 ` James Harkins
2013-12-06 8:19 ` Sebastien Vauban
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=0c8155a0-e0db-43d0-9a86-5a009707d86a@dewdrop-world.net \
--to=jamshark70@gmail.com \
--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).