From: John Hendy <jw.hendy@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Including setupfile settings during subtree export (new exporter)
Date: Fri, 22 Mar 2013 12:12:39 -0500 [thread overview]
Message-ID: <CA+M2ft9CJ9_B4+yMo3P2JVTrBSbG+EcCKdFWZaV=7Af78bwRaQ@mail.gmail.com> (raw)
In-Reply-To: <87obebwj3s.fsf@gmail.com>
On Fri, Mar 22, 2013 at 10:27 AM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
> Hello,
>
> John Hendy <jw.hendy@gmail.com> writes:
>
>> In the past, exporting a subtree seemed to pull options from my
>> #+setupfile line.
>
> And it should still do.
>
>> I've updated the line to the proper new syntax (#+include:
>> "/path/to/setupfile.org"), but subtree export doesn't seem to be using
>> the options set there (using =C-c C-e C-s l p= for LaTeX/PDF export).
>>
>> I tried using =#+include: "file"= as well as =#+setupfile: file=
>> inside the subtree properties drawer without success.
>
> Inside the property drawer? A property drawer can only contain node
> properties, e.g.:
>
> :PROP: value
Yeah, I didn't really know... was just going by this recent post which
featured that, so since it was fresh in my mind, I tried:
- http://www.mail-archive.com/emacs-orgmode@gnu.org/msg68321.html
>
>> If I mark the same subtree with :export: tag (no other trees are
>> marked), it works properly and uses my setupfile options.
>>
>> Any suggestions? If this was an oversight, my vote would be that a
>> buffer-set setupfile would apply to subtree exports unless overridden
>> by a property-drawer setting (even though I don't currently know that
>> the property draw setting is for a setupfile).
>
> I think I need an ECM to understand the problem you're describing.
Sure. Try this:
#+begin_src setupfile
#+AUTHOR: John Henderson
#+latex_header: \usepackage[hmargin=2.5cm,vmargin=2.5cm]{geometry}
#+latex_header: \usepackage{mathpazo}
#+end_src
#+begin_src test-setupfile.org
#+include: "/path/to/setupfile"
* Heading 1
Some text in the form of a longer paragraph to test the margin
settings using the
=geometry= package. Some text in the form of a longer paragraph to
test the margin settings using the
=geometry= package. Some text in the form of a longer paragraph to
test the margin settings using the
=geometry= package.
List:
- item 1
- item 2
- item 3
#+end_src
#+begin_src minimal-config
;; set load paths
;; set load dirs and global config options
(add-to-list 'load-path "~/.elisp/org.git/contrib/lisp/")
(add-to-list 'load-path "~/.elisp/org.git/lisp/")
(require 'ox-latex)
#+end_src
Procedure:
- emacs -Q
- M-x load-file minimal-config
- C-x C-f setupfile-test.org
- Now compare the results of =C-c C-e l p= vs. (while on * Heading 1)
=C-c C-e C-s l p=.
Best regards,
John
>
>
> Regards,
>
> --
> Nicolas Goaziou
next prev parent reply other threads:[~2013-03-22 17:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-22 15:19 Including setupfile settings during subtree export (new exporter) John Hendy
2013-03-22 15:27 ` Nicolas Goaziou
2013-03-22 17:12 ` John Hendy [this message]
2013-03-23 20:24 ` Nicolas Goaziou
2013-03-23 20:37 ` John Hendy
2013-03-23 20:49 ` Nicolas Goaziou
2013-03-23 21:10 ` John Hendy
2013-03-23 22:08 ` Nicolas Goaziou
2013-03-23 22:18 ` John Hendy
2013-03-23 22:37 ` Nicolas Goaziou
2013-03-24 12:13 ` Mike McLean
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+M2ft9CJ9_B4+yMo3P2JVTrBSbG+EcCKdFWZaV=7Af78bwRaQ@mail.gmail.com' \
--to=jw.hendy@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=n.goaziou@gmail.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).