From mboxrd@z Thu Jan 1 00:00:00 1970 From: Per Unneberg Subject: Re: select-tags in derived backend without effect? Date: Wed, 08 Oct 2014 21:46:04 +0200 Message-ID: <87h9zecpkz.fsf@gmail.com> References: <87zjd6eqye.fsf@gmail.com> Reply-To: Per Unneberg Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbxBk-0006OT-Ew for emacs-orgmode@gnu.org; Wed, 08 Oct 2014 15:46:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbxBY-0001vj-4Y for emacs-orgmode@gnu.org; Wed, 08 Oct 2014 15:46:20 -0400 Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]:43293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbxBX-0001vc-T6 for emacs-orgmode@gnu.org; Wed, 08 Oct 2014 15:46:08 -0400 Received: by mail-la0-f41.google.com with SMTP id pn19so9330030lab.28 for ; Wed, 08 Oct 2014 12:46:06 -0700 (PDT) Received: from ubuntu-VirtualBox (c213-89-139-61.bredband.comhem.se. [213.89.139.61]) by mx.google.com with ESMTPSA id 2sm311867lai.36.2014.10.08.12.46.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 08 Oct 2014 12:46:06 -0700 (PDT) In-Reply-To: <87zjd6eqye.fsf@gmail.com> (Per Unneberg's message of "Wed, 08 Oct 2014 13:33:29 +0200") 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: Emacs-orgmode Following up on my own message as I found the error (my bad!); the export functions I use in the derived backend, e.g. org-latex-export-to-pdf, still use the original backend: (defun org-latex-export-to-pdf (&optional async subtreep visible-only body-only ext-plist) ... (interactive) (let ((outfile (org-export-output-file-name ".tex" subtreep))) (org-export-to-file 'latex outfile ^^^^^^ async subtreep visible-only body-only ext-plist (lambda (file) (org-latex-compile file))))) I have obviously missed this point as it is also pointed out at the end of section 12.15, as I see now on closer inspection. /P Per Unneberg writes: > Hi, > > I'm currently experimenting exporting notes from my beamer > presentations as articles via use of the beamerarticle package. In > some cases, I only want to export the *notes* to the article. This can > be achieved easily enough by setting #+SELECT_TAGS: B_noteNH B_note, > but it would be a hassle to remove/insert this statement everytime I > need/don't need non-note material. Therefore, I tried defining a > derived backend with the following settings: > > (org-export-define-derived-backend 'beamerarticlenotes 'latex > :export-block '("LATEX" "TEX") :menu-entry '(?n "Notes export" ( (?M > "As LaTeX buffer (LaTeX notes)" org-latex-export-as-latex) (?m "As > LaTeX file (LaTeX notes)" org-latex-export-to-latex) (?N "As PDF file > and open (LaTeX notes)" (lambda (a s v b) (if a > (org-latex-export-to-pdf t s v b) (org-open-file > (org-latex-export-to-pdf nil s v b))))))) > > :options-alist '( (:author "AUTHOR" nil "John Doe" t) > (:select-tags "SELECT_TAGS" nil "B_noteNH" split) ) ) > > However, I must be doing something wrong as adding this backend and > running C-c C-e n N on the MWE below does not work. Moreover, the > author name does not change to John Doe, which I included just for > testing. I'm running without startup file (emacs -Q), pointing to > release tag release_8.2.8. Adding #+SELECT_TAGS: B_noteNH and running > C-c C-e l o does give the desired result. > > Any help would be appreciated. > > Thanks, > > Per > > > MWE: > > #+STARTUP: indent beamer > #+OPTIONS: H:1 tags:nil > #+LATEX_HEADER: \usepackage{beamerarticle} * Frame ** Block Block 1 > > * Notes :B_noteNH: :PROPERTIES: :BEAMER_env: noteNH :END: Some notes