-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OPTIONS only read from buffer, not SETUPFILE include #31
Comments
Nick Matthews ***@***.***> writes:
I have a simple org file that has a SETUPFILE option to point to a
common include file I use for multiple org documents. When I use other
org exports, these fields are read properly. However, ox-pandoc does
not seem to read the `#+OPTIONS: ^:nil` line unless it is in the org
file itself.
ox-pandoc itself does read the OPTIONS line. However, pandoc does not
understand #+SETUPFILE keyword.
To fix the problem, we need to implement a custom keyword transcoder
that will manually parse #+SETUPFILE keyword and replace it with the
necessary options that pandoc will be able to understand.
…--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
|
Thank you for the report and test-case, and thanks Ihor for the feedback on this and other issues; it's much appreciated. This also reminds me I should use As Ihor suggests, there are two possible solutions here:
I have a couple of issues on the list that need better handling of keywords so I will try and see if (1) could work. |
Alex Fenton ***@***.***> writes:
1) make ox-pandoc inline the options from the `SETUPFILE` so pandoc reads them normally
Talking about (1)...
It might be even better to inline export-related Elisp variables - that
way not only #+SETUPFILE will work, but also #7, #+BIND, etc.
…--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
|
I have a simple org file that has a SETUPFILE option to point to a common include file I use for multiple org documents.
When I use other org exports, these fields are read properly. However, ox-pandoc does not seem to read the
#+OPTIONS: ^:nil
line unless it is in the org file itself.I've included a simple example. When you attempt to export via ox-pandoc, the line is subscripted.
headers.tar.gz
The text was updated successfully, but these errors were encountered: