From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: #+PROPERTY: for babel header args worked... then it didn't Date: Thu, 05 Dec 2013 17:58:06 +0800 Message-ID: <0c8155a0-e0db-43d0-9a86-5a009707d86a@dewdrop-world.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoVha-0003OD-HY for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 04:58:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoVhS-0000in-33 for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 04:58:34 -0500 Received: from mail-pd0-x236.google.com ([2607:f8b0:400e:c02::236]:58536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoVhR-0000iX-Np for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 04:58:26 -0500 Received: by mail-pd0-f182.google.com with SMTP id v10so24195726pde.41 for ; Thu, 05 Dec 2013 01:58:24 -0800 (PST) Received: from localhost ([113.109.201.221]) by mx.google.com with ESMTPSA id fk4sm165683662pab.23.2013.12.05.01.58.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Dec 2013 01:58:23 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: orgmode Wee bit of frustration with Babel just now. Some weeks ago, I wrote a Beamer presentation with LilyPond source code=20 blocks. I needed to add a little code to each example to suppress the=20 "tagline" from each results file. In that presentation, setting the=20 :prologue header argument in a #+PROPERTY line worked perfectly: #+PROPERTY: header-args:lilypond :prologue \header{tagline=3D##f} Now I'm working on a short article-class document, and I included the same=20= #+PROPERTY at the top, and... no effect. But... *the lines are identical*.=20= ?? ":prologue \header{tagline=3D##f}" does take effect if I include it in every=20= #+begin_src line. That's an acceptable workaround for this file, since=20 there won't be many examples. But it bothers me when I figure something out, and then I try to do it=20 again, and it doesn't work. It's like 1 + 1 =3D 2 in one place, and 1 + 1 =3D= 0=20 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")=20= ("captionpos" "b") ("tabsize" "3")) #+PROPERTY: header-args:lilypond :prologue \header{tagline=3D##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)=20= %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=3Dfalse]{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:=20 \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} \frametitle{Outline} \tableofcontents[currentsection] \end{frame} } #+END_LaTeX ~~ Header of the non-working file: ~~ #+PROPERTY: header-args:lilypond :prologue \header{tagline=3D##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=3D{Common,TeX}]{CharisSIL} #+LATEX_HEADER: \setmonofont{Inconsolata} #+LATEX_HEADER: \setcounter{secnumdepth}{0} #+LATEX_HEADER:=20 \usepackage[a4paper,inner=3D2.5cm,outer=3D2.5cm,top=3D2.8cm,bottom=3D2.8cm]{g= eometry} #+LATEX_HEADER: \usepackage[english]{babel} ~~