emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: ". ." <mapcdi@me.com>, emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: fold paragraphs, export only contents of a node, hiding the 'node heading text'
Date: Mon, 2 Sep 2013 20:32:04 -0500	[thread overview]
Message-ID: <CA+M2ft9hsUE69JgAPvrS=frkXG0m8D-br0CCYBS5Cwn25CZ-DQ@mail.gmail.com> (raw)
In-Reply-To: <C7F63B6F-D5C7-49D5-A7EE-4F0082882901@me.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 5786 bytes --]

On Mon, Sep 2, 2013 at 4:53 PM, <mapcdi@me.com> wrote:

>
>
>
> After I compile:  C-c    C-e    d (… to open PDF file).
> It asks:
> 'Allow BIND values in this buffer? (yes or no) '
> I answer 'yes' and the PDF is opened. I have attached the resulting PDF
> screen capture.
> Thanks.
>
>
What is your orgmode version (paste the output of `M-x org-version`)? I
decided to just give a whirl with a minimal config and I don't think that
Org 8+ asks for allowing bind keywords anymore, or at least it isn't asking
me with 8.0.7. From my tinkering, it looks like it ignores them or you need
to explictly allow them:

M-x customize-variable RET org-export-allow-bind-keywords RET

Hide Org Export Allow Bind Keywords: Toggle  on (non-nil)
    State : CHANGED outside Customize.
   Non-nil means BIND keywords can define local variable values. Hide
   This is a potential security risk, which is why the default value
   is nil.  You can also allow them through local buffer variables.

I could be wrong, but the "toggle" button (vs. stating possible values)
implies that it's either on or off.

Actually, in just searching now, it seems that this is, indeed, the case
since 8.0.3:

http://orgmode.org/Changes.html#sec-1-5-1

In any case, I am now using this for my minimal config and it works
successfully:

#+begin_src

;; change path to point to your org/lisp directory
(add-to-list 'load-path "~/.elisp/org.git/lisp/")

(setq org-export-allow-bind-keywords t)

(defun mapcdi-org-latex-headline-function (todo todo-type priority text
tags)
 "The docstring of my function."
 (concat
  (and todo (format "{}" todo))
  (and priority (format "{} " ))
  (and text (format "{\\vspace{-\\baselineskip}}" ))
  (and tags
       (format "\\hfill{}\\textit{}" (mapconcat 'identity tags ":")))))

#+end_src

And this is the file I'm using (I removed anything non-essential to
eliminate other possible causes):

#+begin_src

#+options: num:nil
#+bind: org-latex-format-headline-function
mapcdi-org-latex-headline-function



* headline 1

blah blah blah.

* headline 2

blah blah blah

* headline 3

A couple of separate paragraphs to see how far apart two paragraphs would be
normally. We'll add enough to line break just to make it interesting.

A couple of separate paragraphs to see how far apart two paragraphs would be
normally. We'll add enough to line break just to make it interesting.

#+end_src


I attached a screenshot of the result!


Let me know if that helps,
John



> My test-file, OrgMode.org:
>
> #+TITLE:     My file is OrgMode.org
> #+AUTHOR:
> #+EMAIL:
> #+DATE:
> #+DESCRIPTION:
> #+KEYWORDS:
> #+LANGUAGE:  en
> #+BIND: org-latex-format-headline-function
> mapcdi-org-latex-headline-function
> #+OPTIONS:   H:3 num:nil toc:t \n:nil @:t ::t |:t ^:t
> #+OPTIONS:   -:t f:t *:t <:t tasks:nil
> #+OPTIONS:   pri:nil tags:not-in-toc
> #+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t
> #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0
> path:http://orgmode.org/org-info.js
> #+EXPORT_SELECT_TAGS: export
> #+EXPORT_EXCLUDE_TAGS: noexport
> #+LINK_UP:
> #+LINK_HOME:
> #+XSLT:
>
> * TODO headline 1        :test:
>
> blah blah blah.
>
> * headline 2
>
> blah blah blah
>
> * headline 3
>
> A couple of separate paragraphs to see how far apart two paragraphs would
> be
> normally. We'll add enough to line break just to make it interesting.
>
> A couple of separate paragraphs to see how far apart two paragraphs would
> be
> normally. We'll add enough to line break just to make it interesting.
>
>
>
>
> ____________________________________________________________________
> My .emacs file
>
> (custom-set-variables
>  ;; custom-set-variables was added by Custom.
>  ;; If you edit it by hand, you could mess it up, so be careful.
>  ;; Your init file should contain only one such instance.
>  ;; If there is more than one, they won't work right.
>  '(adaptive-fill-mode nil)
>  '(blink-cursor-mode nil)
>  '(column-number-mode t)
>  '(current-language-environment "Spanish")
>  '(debug-on-error t)
>  '(debug-on-quit t)
>  '(display-battery-mode t)
>  '(display-time-mode t)
>  '(fill-column 56)
>  '(left-margin 0)
>  '(ns-alternate-modifier (quote meta))
>  '(ns-command-modifier (quote super))
>  '(ns-function-modifier (quote none))
>  '(ns-right-alternate-modifier (quote none))
>  '(ns-right-command-modifier (quote left))
>  '(org-agenda-files (quote ("~/Documents/OrgMode.org")))
>  '(save-place t nil (saveplace))
>  '(size-indication-mode t)
>  '(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify)))
>  '(truncate-lines t))
> (custom-set-faces
>  ;; custom-set-faces was added by Custom.
>  ;; If you edit it by hand, you could mess it up, so be careful.
>  ;; Your init file should contain only one such instance.
>  ;; If there is more than one, they won't work right.
>  '(default ((t (:inherit nil :stipple nil :background "White" :foreground
> "Black" :inverse-video nil :box nil :strike-through nil :overline nil
> :underline nil :slant normal :weight normal :height 180 :width normal
> :foundry "apple" :family "Monaco"))))
>  '(set-face-attribute (quote default) nil :height))
>
> (setenv "PATH" (concat (getenv "PATH") ":/usr/texbin"))
>     (setq exec-path (append exec-path '("/usr/texbin")))
>
> (defun mapcdi-org-latex-headline-function (todo todo-type priority text
> tags)
>  "The docstring of my function."
>  (concat
>   (and todo (format "{}" todo))
>   (and priority (format "{} " ))
>   (and text (format "{\\vspace{-\\baselineskip}}" ))
>   (and tags
>        (format "\\hfill{}\\textit{}" (mapconcat 'identity tags ":")))))
>

[-- Attachment #1.1.2: Type: text/html, Size: 9001 bytes --]

[-- Attachment #1.2: OrgMode_LaTeX_output_PDF_ImageCapture.png --]
[-- Type: image/png, Size: 38069 bytes --]

[-- Attachment #2: 2013-09-02_203154.png --]
[-- Type: image/png, Size: 22783 bytes --]

  parent reply	other threads:[~2013-09-03  1:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-01 21:17 fold paragraphs, export only contents of a node, hiding the 'node heading text' . .
2013-09-01 23:51 ` John Hendy
2013-09-02 16:00   ` . .
     [not found]     ` <CA+M2ft8GPHzEierLmMpJQxtRv=iLQ=dfXXFaqguZmOXi4ykk6A@mail.gmail.com>
     [not found]       ` <C7F63B6F-D5C7-49D5-A7EE-4F0082882901@me.com>
2013-09-03  1:32         ` John Hendy [this message]
     [not found]           ` <4702F1A4-113B-4171-B949-2B9EE14EEAA9@me.com>
2013-09-03 14:48             ` mapcdi
2013-09-03 19:17               ` John Hendy
2013-09-04  0:20                 ` mapcdi
2013-09-03 19:10             ` John Hendy

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='CA+M2ft9hsUE69JgAPvrS=frkXG0m8D-br0CCYBS5Cwn25CZ-DQ@mail.gmail.com' \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mapcdi@me.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).