-
Notifications
You must be signed in to change notification settings - Fork 46
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
Title support for docx export? #3
Comments
As far as I've tested, the newest version of Pandoc (version 1.14.0.4) Could you check if you've installed the newest version? On Mon, Jun 15, 2015 at 2:26 AM, Alan Schmitt notifications@github.com
川幡 太一 (KAWABATA, Taichi) E-mail: kawabata.taichi@gmail.com |
Exact same text file produce following document in my env, Hmm... On Wed, Jun 17, 2015 at 5:13 PM, Alan Schmitt notifications@github.com
川幡 太一 (KAWABATA, Taichi) E-mail: kawabata.taichi@gmail.com |
This is not a doc problem: I have the same issue with exporting to pdf or html5 through pandoc. For the later, looking at the source, I see the title tag with nothing in it. |
I recalled that I did Even though I couldn't find the docx template there, On Wed, Jun 17, 2015 at 9:47 PM, Alan Schmitt notifications@github.com
川幡 太一 (KAWABATA, Taichi) E-mail: kawabata.taichi@gmail.com |
I tried it and it did not change anything. I tried to reproduce the problem directly with pandoc, and here is what I have found: if I only ask for the conversion, I get this.
However, if I add the
Could it be that the option is missing when calling pandoc from ox-pandoc? |
Even though in my environment, specifying "self-contained" or not does not affect the result, may help you. |
It still does not work … and looking at the docs, I see that I tried debugging and the problem happens before: the title and date lines are removed from the generated temporary org file. I see that this happens in |
Would you try if 'M-x org-org-export-to-org' and see if it also removes On Mon, Jun 22, 2015 at 6:47 PM, Alan Schmitt notifications@github.com
川幡 太一 (KAWABATA, Taichi) E-mail: kawabata.taichi@gmail.com |
The |
What would happen if you try invoking emacs with "-q" option (meaning skip In my environment, invoking emacs with "-q" option and loading dash.el, ht.el, and Regards, |
I am seeing the same problem with running in a new emacs with -Q: the |
I've asked for help on the org mailing list, and here is what I found. I can replicate the problem (missing metadata in the temporary org file) using this test exporter: (org-export-define-derived-backend 'mytest 'org
:translate-alist '((template . org-pandoc-template))
:export-block "MYTEST"
:menu-entry '(?t "test" as/org-export-test))
(defun as/org-export-test (&optional a s v b e)
(org-export-to-file 'mytest
(org-export-output-file-name
(concat (make-temp-name ".tmp") ".org") s))) According to this message http://article.gmane.org/gmane.emacs.orgmode/98738 the problem is that the org exporter uses the |
Now I think I understand a problem. It seems ox-org.el distributed by MELPA nor the one with Emacs 24.4 I wonder what would be the best way to solve this problem while keeping On Mon, Jun 29, 2015 at 1:47 AM, Alan Schmitt notifications@github.com
川幡 太一 (KAWABATA, Taichi) E-mail: kawabata.taichi@gmail.com |
I'll ask and will let you know. |
As you see the official org-mode newest package distribution directory That causes the great difference between offical package distribution and (For people who want stability, org-mode equipped in standard Emacs Anyway, I've never noticed this thing and I thought I've been using the On Mon, Jun 29, 2015 at 6:37 PM, Alan Schmitt notifications@github.com
川幡 太一 (KAWABATA, Taichi) E-mail: kawabata.taichi@gmail.com |
Perhaps the quickest hack would be something like: @@ -1168,7 +1168,9 @@ Option table is created in this stage."
(defun org-pandoc-put-options (options) "Put alist OPTIONS to `org-pandoc-option-table'."But that would cause compiler warning for an environment I found that 'org-org-template' is introduced to org-mode HEAD On Tue, Jun 30, 2015 at 12:08 AM, kawabata taichi <kawabata.taichi@gmail.com
川幡 太一 (KAWABATA, Taichi) E-mail: kawabata.taichi@gmail.com |
Your hack works great and solves the problem, thanks. Regarding org and Melpa, there has been a long discussion about this back in March: http://lists.gnu.org/archive/html/emacs-orgmode/2015-03/msg00247.html |
I've uploaded the change to use ox-org template if it exists. |
It does, thanks. |
This exporter is very useful! Is it possible to have the title exported when doing docx export?
The text was updated successfully, but these errors were encountered: