From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GNZXIwzqgGJElgAAbAwnHQ (envelope-from ) for ; Sun, 15 May 2022 13:54:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IBdGIwzqgGKUUAEAauVa8A (envelope-from ) for ; Sun, 15 May 2022 13:54:52 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7290E2118F for ; Sun, 15 May 2022 13:54:51 +0200 (CEST) Received: from localhost ([::1]:49854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqCpm-00082n-8X for larch@yhetil.org; Sun, 15 May 2022 07:54:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqCpK-00082Z-1H for emacs-orgmode@gnu.org; Sun, 15 May 2022 07:54:22 -0400 Received: from mout02.posteo.de ([185.67.36.66]:53623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqCpI-0001qs-B7 for emacs-orgmode@gnu.org; Sun, 15 May 2022 07:54:21 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 6BBD6240107 for ; Sun, 15 May 2022 13:54:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1652615657; bh=CUJ/I+4PIAskfonYxjgFKvL4Tiyo011e4D2ebM+meBM=; h=From:To:Subject:Date:From; b=mgSOouesjzqKK9JLdpb+HUZBpdQCip3CGf/NW2iE4qNqmDBf/OsuWsDPFL7q1BK0F ubLjklJlMSO0A56YCWqqz+pUscSuhiZAL+OfTP+unIOxhAJRrZTG3RlJKA/X9URQv8 ud0+KR1kZ9J8OpIIA98MgqI+1PyxZFuNpyt1NfKRwmQdWVjY+nciVYBgH90cMOyEWK M9Ys9MZKcb0RDywAlF/peJEHSzOaxDk+UB/SY6s9PN8GG4kyRQtsS1zZDmFHCz/ZlJ 6c9dXpLGe0/WTe25pWyyTYfjqroChsxegqo7sMrXMwk7uiqXRSIBtT4KS7ffw8ujjF QVbEChJKiivcQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4L1LQJ6k8Jz9rxG for ; Sun, 15 May 2022 13:54:16 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: [tip] Export and open a PDF in Android via Termux Date: Sun, 15 May 2022 11:54:19 +0000 Message-ID: <87pmkfnh90.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RAZOR2_CF_RANGE_51_100=1.886, RAZOR2_CHECK=0.922, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652615691; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=POAnBozvU8EymNserbn4j9SSSI0TS/pue/VPJIuUMsE=; b=TtPT4MisUX0k1RAhYTjD3zJsb/n/feDX2wpxeV8u1S+4UdYImrk/21bSVjv2xgxi20dSn2 W8guK0S3qErNhZVFmQJa8Bi1NZOUNnbsBvWFEn/mQFMSK3dSMJWbs1Uxu4gFb0UoIeipzi rr0QpW1XdsBbghKSRcYLDPhjsAkq2yFhmhKlXAyzGFVIxFEUO+8MJPgOCBbmELkZfxY3+5 AlWYZsXlOaYjmyrl0D/nZycs0/GGQ39T2mgRu0tu6Lb4QArSPK3eggGNsgU/q9dY2E7Lwo 1ustTBO5gptzQhGjwf71bmgBhg2yNMfoSFnB1g/3YksWkn7sgKb36nbtNOZa1w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652615691; a=rsa-sha256; cv=none; b=DaByM7SpzZYIoP2qbcNNcfaoe1slWowUd3WvXBEplOfhQspA9r2cpnRBgiMQaghrrt67GS czRYXYl9x06X7QOfX2d6412LK8P1txCSClrqYw/rdpjo0jiR+bVHPe6LJxwV56sFz8kM8f fyz79vCFzIpsuOwErXXPF+wbhF87Oz/VM4CbGPnpjjMFzM17nRoTY4ZLZnoo5nwKlSH9AC 24ML3ds9TE8A3Y0zdbHDJIzzmWMD+FJN/S1qBLHfxwKZBuZDkOkX5Fs8ZVtjBBr0yfuDHQ VGWkGGC2TEg4qd1QwiTRGYfp1ksFO1RPMsUF126LjaDGGooP2YyfWzYqLFfTHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mgSOoues; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=mgSOoues; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7290E2118F X-Spam-Score: -8.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: BgwijJZbuA0N 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