I used VerbTeX app in my Android phone. But this app does not support XeLaTeX and requires an internet connection to be used.
Is there any distribution of TeX for Android?
How I can install TeX on my Android phone?
I used VerbTeX app in my Android phone. But this app does not support XeLaTeX and requires an internet connection to be used.
Is there any distribution of TeX for Android?
How I can install TeX on my Android phone?
Just have a look here: TexPortal. This is an App for Android which runs fine on my Nexus 7 without the need for rooting my device (this was important for me). If you download all the packages you don't need an internet connection to compile the documents. Most of the time I use it just for short letters, but for testing I compiled my diploma and my master thesis with this App without any trouble.
I am the author of TeXLive for Android.
I have provided an .apk
file for Android, but I have not added XeTeX
to my app, due to the large size of the xetex binary.
You can get XeTeX
from here: http://texlive-for-android.googlecode.com/files/tl4a-2013-06-18.tar.xz.
I am now testing my GUI of tlmgr, which is written completely in Java.
The next version of my App will add biber
and Vim 7.4
in 2014.
A TeX editor for my App is now under development.
/sdcard/texlive/texmf.cnf
they could share? Also what part exactly of the texlive distribution should be copied into /sdcard/texlive
? Perhaps someone could share the output of ls /sdcard/texlive
from a working installation?
Commented
Jun 29, 2013 at 12:48
texmf.cnf
which have already installed in your computer. And then move this texmf.cnf
to /sdcard/texlive
. On my computer, this texmf.cnf
file can be found in C:\texlive\2013\texmf-dist\web2c\texmf.cnf
. What you should do is changing the value of TEXMFROOT
. Please read the comments in the texmf.cnf
carefully.
error: only position independent executables (PIE) are supported.
If you have some time, please, recompile the app with PIE support. This way it will work on Android 5.
Commented
Dec 19, 2014 at 17:39
There is work to implement TeXLive 2012 for Android. The development site provides information on progress as well as access to downloads. The code is still experimental but might be worth a try. Otherwise the existing solutons are similar to VerbTeX and may involve web-based LaTeX processing.
Just providing a little more detailed howto for this... I just installed texlive 2013 on my Asus TF201 and I am now able to generate PDF using beamer
, tikz
, pgfplots
, bibtex
, etc. on my tablet :)
In a few steps:
/sdcard/texlive
texmf.cnf
from /sdcard/texlive/texmf-dist/web2c
to /sdcard/texlive
/sdcard/texlive
latex
, pdflatex
, bibtex
, etc.)pdflatex -ini -output-directory=/sdcard/texlive -jobname=pdflatex latex.ltx
(latex.ltx
is situated in the folder texlive/texmf-dist/tex/latex/base, with a texmf.cnf file as above, TL4A finds it). You can then generate pdfs with pdflatex -fmt=/sdcard/texlive/pdflatex.fmt -output-format=pdf -output-directory=/sdcard/some_path /sdcard/path_to_texfile
It's also possible to install texlive through the Linux terminal emulator app Termux. The app is available for Android 5.0 and newer on both Google Play and F-Droid.
Writing .tex files and compiling them works just as on a normal linux distribution, editors such as vim and emacs are available.
It's open source as well, check out the github repos.
The geek solution is to install Jack Palevich's Android terminal emulator and then Kevin Boone's Kbox2, then you can install a LaTeX
distribution, I personally made my own by extracting only essential packages from TeXLive
archives on ctan.org
and picking the pdftex
binary that comes with texportal. I don't know if TeXLive
for android is based on the same trick. It works great for me but only in urgency case because I have no computer at home, only a cheap tablet (mpman mp888)... and of course no root needed to all this. Maybe vim can make the workflow better than editing with droidedit and switch to the terminal to compile (it is what i'm doing)
I spent some time figuring this out...
My approach:
VerbTeX Pro
for editing latex documents, which gives a nice android-friendly UI.openbox
and tightvncserver
as a UI which can be viewed in VNC reader
for automatic compilation and preview.
Briefly, I installed texlive-full
in here and I'm using latexmk
to automatically recompile my pdf when I save changes in VertTeX Pro
.
The resulting pdf will be automatically updated if your previewing it in evince
.The end result is that every time I press save in VerbTeX Pro
, I can just Alt Tab
to VNCViewer
which will already be showing a preview of the latest changes I made.
I'm not sure how nice this is on a phone, but on a tablet with keyboard, its quite convenient.
The guide on how to do this is a bit long for an answer here... so you can check my blog here if you want all the details on how to set this up.
With some options in latexmk
, I'm sure you can compile with XeLaTeX.