Friday, November 25, 2011

TeX Live 2009 on iOS

Installing Tex Live 2009 on iOS (iPhone, iPad, iPod)

This guide is based on the
original guide at
A huge thanks for this goes out to Aaron!


Jailbreak required. This guide
assumes you have a jailbroken device. I have
successfully installed it on a 16GB iPad 2 3G running
iOS 4.3.3.

This procedure does involve a few
command line steps, but Aaron has generously provided an easy package on Cydia.

Step 1: Add the repository to Cydia:

Step 2: Install mobileterminal from Cydia

Step 3: Start up mobileterminal and type <login>, which will prompt
you for a username <root> and password <alpine>

Once there, run the following

iphone:~ root# wget

iphone:~ root# apt-key add

iphone:~ root# echo 'deb iphone main' > /etc/apt/sources.list.d/

iphone:~ root# apt-get

Step 4: Go back to Cydia and find TeX Live, which
should appear now.

The iPad
as a Productivity Tool

Texastic is a great app for TeX editing on the itunes store.
You can write up the document in there, use iFile
(also on Cydia) to move the tex
file from Texastic to somewhere easier to find with
terminal such as the Media folder, for example. Then you would use a terminal
program (I used iSSH) to compile the tex file as a pdf


Instructions for iSSH (you could also ignore this and compile tex in mobileterminal)

I used iSSH,
a program on the iTunes store to log into the iPad
(it is basically the same as mobileterminal, except
it has better functionality). In order to use it like mobileterminal,
I recommend the following settings:

Add Configuration

description: loginroot

host: (localhost address)

Login: root

Password: alpine (you can change
this by typing <passwd> in the terminal)

Alternate Configuration

description: loginmobile


Login: mobile

Password: alpine


When in terminal, browse to the
folder that has the .tex file (use command <ls> to view the current directory and ensure that the tex file you wish to compile is there).


-output-file=pdf nameoffile.tex>

This should
compile the document as a PDF, assuming you wrote your latex document properly.

No comments:

Post a Comment