From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Jambunathan K <kjambunathan@gmail.com>
Cc: James Harkins <jamshark70@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: ODT preferred format option per-file?
Date: Sun, 02 Sep 2012 11:25:38 +0200 [thread overview]
Message-ID: <87r4qkbwtp.fsf@gmail.com> (raw)
In-Reply-To: <87sjb1fuq5.fsf@gmail.com> (Jambunathan K.'s message of "Sun, 02 Sep 2012 00:15:06 +0530")
Hello,
Jambunathan K <kjambunathan@gmail.com> writes:
> James Harkins <jamshark70@gmail.com> writes:
>
>> I have one particular org file that I would like to export to PDF by
>> way of ODT. (I already set up outline styling in LibreOffice and I
>> would like to use that, instead of trying to reconfigure a similar
>> look in LaTeX. For fun, I did try the LaTeX pdf export and the output
>> format is not what I need for this case.)
>>
>> But I may want to export other org files to ODT *without* converting them to PDF.
>>
>> http://orgmode.org/manual/Extending-ODT-export.html
>>
>> This says I can customize the org-export-odt-preferred-output-format
>> variable. This works beautifully, but it's a global setting that will
>> apply to every ODT export.
>>
>> So my question is -- is there any export option for the preferred
>> format, per file? Something like:
>>
>> #+ODT_PREFERRED_FORMAT: pdf
>>
>> I couldn't find any documentation in the ODT export section of the
>> manual for an option like this.
>>
>> Alternately, I suppose I could write a lisp function that would set
>> the variable and call the export, but that would definitely be a hack.
>
> Old exporter
> ============
>
> If you are using org-odt.el, then you can use file local variables. I
> have pushed a fix which makes string values of this variable safe.
>
> M-x add-file-local-variable RET org-export-odt-preferred-output-format
> RET "pdf" RET
>
> Or
>
> Add the following to your Org file. Remember to re-visit the file to
> activate the newly installed value.
>
> # Local Variables:
> # org-export-odt-preferred-output-format: "pdf"
> # End:
>
>
> New exporter
> ============
>
> The above local variable trick will fail in case of org-e-odt.el. When
> I get some time I will introduce a per-buffer keyword for this variable.
Note that Org provides a BIND mechanism for such cases.
So, adding:
#+BIND: org-e-export-opt-preferred-output-format "pdf"
somewhere in the buffer should be enough.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2012-09-02 9:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-31 4:53 ODT preferred format option per-file? James Harkins
2012-09-01 18:45 ` Jambunathan K
2012-09-01 20:40 ` Jambunathan K
2012-09-02 8:43 ` Bastien
2012-09-02 9:25 ` Nicolas Goaziou [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-09-02 8:57 James Harkins
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r4qkbwtp.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jamshark70@gmail.com \
--cc=kjambunathan@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.