* how do you get an OPTIONS value during export?
@ 2017-08-08 20:11 John Kitchin
2017-08-09 14:55 ` Rasmus
2017-08-09 15:03 ` Nick Dokos
0 siblings, 2 replies; 3+ messages in thread
From: John Kitchin @ 2017-08-08 20:11 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 789 bytes --]
Hi,
In my ipynb exporter, I generate md strings for cells using something like
(org-export-string-as
s
'md t '(:with-toc nil :with-tags nil))
This works unless there is a broken link:
https://github.com/jkitchin/ox-ipynb/issues/2#issuecomment-321061051
I figured out I can make it work with :with-broken-links mark, but that
might overrule what is in an #+OPTIONS line.
So, my question is how do I get the value of what :with-broken-links should
be that has the right prececedence, i.e. OPTIONS
> org-export-with-broken-links, during the export?
Thanks,
John
-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
[-- Attachment #2: Type: text/html, Size: 2932 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how do you get an OPTIONS value during export?
2017-08-08 20:11 how do you get an OPTIONS value during export? John Kitchin
@ 2017-08-09 14:55 ` Rasmus
2017-08-09 15:03 ` Nick Dokos
1 sibling, 0 replies; 3+ messages in thread
From: Rasmus @ 2017-08-09 14:55 UTC (permalink / raw)
To: emacs-orgmode
Hi John,
John Kitchin <jkitchin@andrew.cmu.edu> writes:
> In my ipynb exporter, I generate md strings for cells using something like
>
> (org-export-string-as
> s
> 'md t '(:with-toc nil :with-tags nil))
>
> This works unless there is a broken link:
>
> https://github.com/jkitchin/ox-ipynb/issues/2#issuecomment-321061051
>
> I figured out I can make it work with :with-broken-links mark, but that
> might overrule what is in an #+OPTIONS line.
>
> So, my question is how do I get the value of what :with-broken-links should
> be that has the right prececedence, i.e. OPTIONS
> org-export-with-broken-links, during the export?
Assuming you have access to the settings, typically called ‘info’ in ox,
it should be easy,
(plist-get info :with-broken-links)
See ‘org-export-as’ in ox.el for how it’s populated.
For a user-function see ‘org-export-get-environment’. In an export
backend, it should not be necessary as you should have the info-plist
already. For usage of ‘org-export-get-environment’ see ox-publish.el.
Hope it helps,
Rasmus
--
And when I’m finished thinking, I have to die a lot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how do you get an OPTIONS value during export?
2017-08-08 20:11 how do you get an OPTIONS value during export? John Kitchin
2017-08-09 14:55 ` Rasmus
@ 2017-08-09 15:03 ` Nick Dokos
1 sibling, 0 replies; 3+ messages in thread
From: Nick Dokos @ 2017-08-09 15:03 UTC (permalink / raw)
To: emacs-orgmode
John Kitchin <jkitchin@andrew.cmu.edu> writes:
> Hi,
>
> In my ipynb exporter, I generate md strings for cells using something like
>
> (org-export-string-as
> s
> 'md t '(:with-toc nil :with-tags nil))
>
> This works unless there is a broken link:
>
> https://github.com/jkitchin/ox-ipynb/issues/2#issuecomment-321061051
>
> I figured out I can make it work with :with-broken-links mark, but that might overrule what is in an #+OPTIONS line.
>
> So, my question is how do I get the value of what :with-broken-links should be that has the right prececedence, i.e. OPTIONS > org-export-with-broken-links, during the export?
>
I'm probably being dense, but I don't understand the question. Isn't
the point to overrule what the #+OPTIONS line says (for this particular
string) by adding '( ... :with-broken links mark) to the list?
--
Nick
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-09 15:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-08 20:11 how do you get an OPTIONS value during export? John Kitchin
2017-08-09 14:55 ` Rasmus
2017-08-09 15:03 ` Nick Dokos
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).