Today, TeX is a big program, LuaTeX, PDFTeX, METAPOST etc. Where is the public accessing source code for hacking LuaTeX or other implementations. For example, I need to embed TeX into C program or creating Ruby object TeX.

  • 1
    The source code for LaTeX and TeX is written in TeX. The original engine was written in Pascal and translated into various other languages (there is a test for validation). You might have better luck running LaTeX as a separate server with a custom driver. – John Kormylo Aug 8 '17 at 12:48
  • I ask luatex != latex my question is where is source code to produce binary using today tools. for example gcc – Marko Lustro Aug 8 '17 at 12:49
  • 3
    Note that TeX90, pdfTeX, XeTeX, etc. are written in WEB (a form of specialised Pascal source), and are nowadays built using WEB2C (part of TeX Live); LuaTeX is natively in C. – Joseph Wright Aug 8 '17 at 13:19
  • texdoc tex, texdoc source2e – musarithmia Aug 8 '17 at 13:54
  • Pls confirm if Duplicate of How to compile the source code of TeX, XeTeX source code and Installing and using MPlib – texenthusiast Aug 8 '17 at 14:04

TeX Live:





  • The LuaTeX repository just screams "we don't want any contributions" – piegames Jan 28 at 14:20



This is a good starting point.



  • Luatex link not workin. SVN repository have password. This is wrong answer – Marko Lustro Aug 8 '17 at 12:47
  • 4
    @MarkoLustro I don't follow how it's wrong: that is the official master repo for LuaTeX. One could get the TeX Live version (tug.org/texlive/svn), which if you are happy with 'reasonable approximation to current release' is OK, but it's not the 'master' source. – Joseph Wright Aug 8 '17 at 12:59
  • Yes this is oficial web but I cant download source code from this web – Marko Lustro Aug 8 '17 at 13:01
  • 3
    Username:anonsvn Password:anonsvn – Neelix Aug 8 '17 at 13:03
  • 3
    A "quick" search does not immediately reveal the username and password. (Thanks, Neelix.) However, is it not the case that luatex is distributed under an open license that requires the source code to be publicly available? Why should there be a username and password, even if known? – user139954 Aug 8 '17 at 15:09

The complete sources from which TeX Live is built are available to browse online on a GitHub mirror (note that this is not the upstream source which is a private SVN).


Therein you can find the source for the different components:

The experimental LuaTeX also has its own GitHub mirror. There you can find the source in the directory source/texk/web2c/luatexdir.

  • broken links for the sub links. – Money Sets You Free Dec 31 '18 at 22:58
  • 1
    @GodMustBeCrazy The branch has been renamed from master to trunk. I fixed the links. – Henri Menke Dec 31 '18 at 23:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.