Re: [O] Bug: bug for org-compile-file on Windows
Hello, Mirko Vukovicwrites: > I was not able to preview latex fragments using > org-toggle-latex-fragment (C-c C-x C-l) > > I traced the problem to the (shell-command ...) in org-compile-file > during the dvipng step. > > The problem was in the formatting of the destination file (the -o switch). > It consists > of the directory and filename. Both were enclosed in double quotes, so > that when concatenated the string looked like this: > \"path\"\"filename\".extension Thanks. However, this issue was fixed a few days ago. The fix should be available in today's Org ELPA, or in the yet to be released Org 9.0.2. Regards, -- Nicolas Goaziou
[O] Bug: bug for org-compile-file on Windows
To: emacs-orgmode@gnu.org Subject: Bug: bug for org-compile-file on Windows [9.0.1 (release_9.0.1-8-g25a97f.dirty @ c:/Users/977315/.emacs.d/elisp/org/)] From: Mirko Vukovic--text follows this line-- Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. I was not able to preview latex fragments using org-toggle-latex-fragment (C-c C-x C-l) I traced the problem to the (shell-command ...) in org-compile-file during the dvipng step. The problem was in the formatting of the destination file (the -o switch). It consists of the directory and filename. Both were enclosed in double quotes, so that when concatenated the string looked like this: \"path\"\"filename\".extension By trial and error in the scratch buffer I was able to confirm that removing the double \" fixed the problem. A quick and dirty fix was to post-process the string to remove the duplicate quoted double quote like so: (shell-command (replace-regexp-in-string "\"\"" "" (format-spec command spec)) log-buf) An elisp wizard will undoubdetly be able to create a more robust solution. Emacs : GNU Emacs 24.5.1 (i686-pc-mingw32) of 2015-04-11 on LEG570 Package: Org mode version 9.0.1 (release_9.0.1-8-g25a97f.dirty @ c:/Users/977315/.emacs.d/elisp/org/) current state: == (setq org-latex-format-headline-function 'org-latex-format-headline-default-function org-pretty-entities t org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-agenda-skip-scheduled-if-done t org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-link-parameters '(("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("id" :follow org-id-open) ...) org-archive-hook '(org-attach-archive-delete-maybe) org-id-method 'org org-refile-targets '(...) org-preview-latex-process-alist '((dvipng :programs ("latex" "dvipng") :description "dvi > png" :message "you need to install the programs: latex and dvipng." :image-input-type "dvi" :image-output-type ...) (dvisvgm :programs ("latex" "dvisvgm") :description "dvi > svg" :post-clean (quote (\.tex \.aux)) :message "you need to install the programs: latex and dvisvgm." :use-xcolor ...) (imagemagick :programs ("latex" "convert") :description "pdf > png" :message "you need to install the programs: latex and imagemagick." :use-xcolor t :image-input-type ...) ) org-modules '(org-habit org-w3m org-bbdb org-bibtex org-docview org-gnus org-info org-irc org-mhe org-rmail) org-cycle-hook '(org-inlinetask-hide-tasks org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-agenda-custom-commands '(("1" "Q1" tags-todo "+important+urgent") ("2" "Q2" tags-todo "+important-urgent") ("3" "Q3" tags-todo "-important+urgent") ("4" "Q3" tags-todo "-important-urgent")) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent org-depend-block-todo) org-babel-pre-tangle-hook '(save-buffer) org-return-follows-link t org-occur-hook '(org-first-headline-recenter) org-font-lock-hook '(org-inlinetask-fontify) org-link-file-path-type 'relative org-trigger-hook '(org-depend-trigger-todo) org-html-format-headline-function 'org-html-format-headline-default-function org-structure-template-alist '(("b" "#+BEGIN_BEAMER\n\n#+END_BEAMER" "") ("s" "#+BEGIN_SRC ?\n\n#+END_SRC" "\n\n") ("e" "#+BEGIN_EXAMPLE\n?\n#+END_EXAMPLE" "\n?\n") ("q" "#+BEGIN_QUOTE\n?\n#+END_QUOTE" "\n?\n") ("v" "#+BEGIN_VERSE\n?\n#+END_VERSE" "\n?\n") ("V" "#+BEGIN_VERBATIM\n?\n#+END_VERBATIM" "\n?\n") ("c" "#+BEGIN_CENTER\n?\n#+END_CENTER" "\n?\n") ("l" "#+BEGIN_LaTeX\n?\n#+END_LaTeX" "\n?\n") ("L" "#+LaTeX: " "?") ("h" "#+BEGIN_HTML\n?\n#+END_HTML" "\n?\n") ...) org-tag-persistent-alist '(("important" . 105) ("urgent" . 117)) org-log-done 'note