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.
Asked
Active
Viewed 5,634 times
32
-
1The 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 08 '17 at 12:48
-
5Note 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 08 '17 at 13:19
-
Pls confirm if Duplicate of How to compile the source code of TeX, XeTeX source code and Installing and using MPlib – texenthusiast Aug 08 '17 at 14:04
-
While not exactly answering the question, there is also C/WEB programs in TeX Live 2023 (also found in https://ctan.math.illinois.edu/info/knuth-hint/) which contains the typesetted changes. – user202729 Feb 03 '24 at 20:17
3 Answers
29
TeX Live:
- WWW: https://www.tug.org/texlive/
- SVN: svn://tug.org/texlive/
- SVN web interface (ViewVC): https://tug.org/svn/texlive/
- Mirror: https://github.com/TeX-Live/texlive-source
XeTeX:
- WWW: https://xetex.sourceforge.net/
- Git: https://git.code.sf.net/p/xetex/code
- Git web interface: https://sourceforge.net/p/xetex/code
LuaTeX
- WWW: http://www.luatex.org
- Main Git repo: https://gitlab.lisn.upsaclay.fr/texlive/luatex
- Git mirror: https://github.com/TeX-Live/luatex
MetaPost
- WWW: https://www.tug.org/metapost.html
- SVN: https://serveur-svn.lri.fr/svn/modhel/metapost (
anonsvn/anonsvn)
pdfTeX
- WWW: https://www.tug.org/applications/pdftex/
- SVN: svn://tug.org/pdftex
- SVN web interface (ViewVC): https://tug.org/svn/pdftex/
0xC0000022L
- 985
Mojca Miklavec
- 1,771
11
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).
https://github.com/TeX-Live/texlive-source
Therein you can find the source for the different components:
TeX:
texk/web2c/tex.webpdfTeX:
texk/web2c/pdftexdirLuaTeX:
texk/web2c/luatexdirXeTeX:
texk/web2c/xetexdir
The experimental LuaTeX also has its own GitHub mirror. There you can find the source in the directory source/texk/web2c/luatexdir.
Henri Menke
- 109,596
-
-
2@GodMustBeCrazy The branch has been renamed from
mastertotrunk. I fixed the links. – Henri Menke Dec 31 '18 at 23:27 -
Either not, or no longer a private SVN, I reckon: https://tug.org/svn/texlive/ – 0xC0000022L May 11 '23 at 20:13
9
Neelix
- 466
-
Luatex link not workin. SVN repository have password. This is wrong answer – Marko Lustro Aug 08 '17 at 12:47
-
6@MarkoLustro I don't follow how it's wrong: that is the official master repo for LuaTeX. One could get the TeX Live version (https://www.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 08 '17 at 12:59
-
Yes this is oficial web but I cant download source code from this web – Marko Lustro Aug 08 '17 at 13:01
-
A quick google search will tell you user name and passwort – samcarter_is_at_topanswers.xyz Aug 08 '17 at 13:02
-
-
4
-
4A "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? – Aug 08 '17 at 15:09
-
1It is not that uncommon to require a publicly available username and password for a free repo. However, if 'ask for it' in @JosephWright 's sense means 'email somebody or fill in a form or ....' then that might be problematic for some free licences. But unless they're releasing binaries of the master, it is unlikely to violate anything, so long as source of the releases is easily available. Few (no?) licences say you have to release code for stuff you don't distribute. – cfr Sep 05 '18 at 22:16