emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [tip] Export and open a PDF in Android via Termux
@ 2022-05-15 11:54 Juan Manuel Macías
  2022-05-16  8:04 ` Eric S Fraga
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Juan Manuel Macías @ 2022-05-15 11:54 UTC (permalink / raw)
  To: orgmode

Hi all,

I have recently installed TeX live on Android inside Termux:

$ pkg install texlive-installer

(https://wiki.termux.com/wiki/TeX_Live)

And I've managed to open a PDF exported from Org using an external
android viewer (mupdf, downloaded from f-droid). The Termux command is
termux-open. You need to add:

(setq org-file-apps
      '((auto-mode . emacs)
 (directory . emacs)
 ("\\.mm\\'" . default)
 ("\\.x?html?\\'" . default)
 ("\\.pdf\\'" . "termux-open %s")))

It is necessary also to uncomment the line 'allow-external-apps = true' in '~/.termux/termux.properties'.

And to open the PDF from AUCTeX:

(setq TeX-view-program-list '(("termux" "termux-open %o")))

(setq TeX-view-program-selection
'(((output-dvi has-no-display-manager)
  "dvi2tty")
 ((output-dvi style-pstricks)
  "dvips and gv")
 (output-dvi "xdvi")
 (output-pdf "termux")
 (output-html "xdg-open")))

A screencast: https://imgur.com/a/iBvwDTo

Best regards,

Juan Manuel 



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-05-19 18:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-15 11:54 [tip] Export and open a PDF in Android via Termux Juan Manuel Macías
2022-05-16  8:04 ` Eric S Fraga
2022-05-16 12:35 ` Ihor Radchenko
2022-05-16 15:00 ` Max Nikulin
2022-05-16 16:05   ` Juan Manuel Macías
2022-05-17 16:22     ` Max Nikulin
2022-05-17 17:56       ` Juan Manuel Macías
2022-05-18 16:14         ` Max Nikulin
2022-05-19  9:40         ` Eric S Fraga
2022-05-19 18:01           ` Juan Manuel Macías

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).