Skip to content
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

[BUG] Export org to latex and opening them doesn't work #149

Closed
1 task done
hmanhng opened this issue Jan 1, 2024 · 3 comments
Closed
1 task done

[BUG] Export org to latex and opening them doesn't work #149

hmanhng opened this issue Jan 1, 2024 · 3 comments
Assignees
Labels
wontfix This will not be worked on

Comments

@hmanhng
Copy link
Contributor

hmanhng commented Jan 1, 2024

Describe the bug
I know this probably shouldn't be asked here but
app-launcher did not find many of my applications on the NixOs system. . Only zathura was not found

What annoys me is when I want to export org to latex and open it. They don't work on my system, Compile to latex is quite slow and doesn't open the .pdf file after compile.

Checkup list

  • You've tested disabling your config.el using MINEMACS_IGNORE_CONFIG_EL=1 emacs?

To Reproduce
Steps to reproduce the behavior:

  1. Open simple org file
  2. export to latex and open with C-c C-e l o
  3. It takes about 15-20 seconds to export a file with only 10 lines
  4. No applications opened with the pdf file

I just changed this in config.el

(with-eval-after-load 'ox-latex
  (setq org-latex-compiler "lualatex"))
  ;; (setq org-file-apps
  ;;       '(("\\.pdf::\\([0-9]+\\)\\'" . "zathura -P %1 %s"))))
;; (setq org-preview-latex-default-process 'dvisvgm)

Additional context
Can you try exporting the org to latex and opening it in your machine?
Does the problem lie with NixOs

@hmanhng hmanhng changed the title [BUG] Emacs không tìm thấy .desktop trên NixOs [BUG] Emacs cannot find .desktop on NixOs Jan 1, 2024
@hmanhng hmanhng changed the title [BUG] Emacs cannot find .desktop on NixOs [BUG] Export org to latex and opening them doesn't work Jan 1, 2024
@abougouffa
Copy link
Owner

Exporting Org to PDFs via LaTeX backend has always been slow for me!

The export and open is not working in my config also, I will investigate this later.

Thanks for the feedback @hmanhng !

@hmanhng
Copy link
Contributor Author

hmanhng commented Jan 1, 2024

C-c C-e l o slowness is probably due to running org-latex-export-to-pdf with async. I tried running this command in Mx which gave it significantly faster speed.

Also I tried

(with-eval-after-load 'org
  (push '("\\.pdf\\'" . "zathura %s") org-file-apps))

eval: (org-open-file "somefile.pdf") works.

@abougouffa
Copy link
Owner

C-c C-e l o slowness is probably due to running org-latex-export-to-pdf with async. I tried running this command in Mx which gave it significantly faster speed.

Yep, it is a known tradeoff, exporting asynchronously is slower but not blocking, while exporting synchronously is faster but blocks Emacs during the export process.

@abougouffa abougouffa self-assigned this Apr 25, 2024
@abougouffa abougouffa added the wontfix This will not be worked on label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants