Now I'd like to port this app to mobile devices. And I just saw that the developers behind Texpad have achieved exactly what I'd like to have:
Looking at the iTunes shop, I see Texpad is about 50MB only, so they really tuned such builtin distribution to fit in a very reduced space.The local typesetter is built upon a Texpad's own LaTeX distribution that runs natively on your iPad, iPod or iPhone. This provides a fast Typesetting option that doesn't need an internet connection'. The local typesetter is also capable of typesetting BibTeX. If a BibTeX file is detected in your project, Texpad will automatically run it (in the sequence LaTeX, BibTeX, LaTeX, LaTeX)
What path should I follow if I'd like to build a similar distribution myself, on both iOS and Android? I've never compiled LaTeX from source, and IIRC it has some difficult steps, so I'm asking here hoping somebody could show what direction I should follow...