Hot answers tagged

48

TeX was rewritten in Pascal. Actually, using a literate programming system called WEB, invented by Knuth himself. This system uses Pascal for the programming and it uses TeX for the documentation. The source code of TeX was published as a book: http://www.amazon.com/Computers-Typesetting-B-TeX-Program/dp/0201134373.


41

TeX is written in WEB (a literate programming language created by D. E. Knuth). Originally, WEB source was translated into Pascal (a subset of Pascal) via tangle to produce executable and translated into TeX via weave to produce documentation of the code. Both programs have themselves been written in WEB. Today, TeXLive uses web2c to translate directly WEB ...


19

It is definitely not 0xFF, but “Control-L” or ASCII 0x0C (decimal 12), called “form feed” (this is why your viewer shows it as FF). As you probably know, Knuth started using computers when they weren't like the ones we use today. When the teletype was the only interface, character Control-L was used to tell the teletype “advance to the end of the form”, so ...


12

Check Taco's CXTeX; "A hand-converted C version of TeX". I think one can throw some C++ syntactic sugar on top of it, but IMO that is as far as you can go without rethinking the whole TeX structure.


10

If you built TeX Live with the included Build script, the converted files should be under Work/texk/web2c/; there you will find tex0.c, mf0.c etc. To build only TeX and MetaFont, you can pass something like --disable-all-pkgs --enable-tex --enable-mf --without-mf-x-toolkit --without-x to configure (see README.config for general build option documentation) ...


9

It's an old control character for a page break (form feed), used long time ago for marking the new page for printers. It's 0x0C in HEX, also represented as Control + L. WinEdt shows it as ^L - underlined L. Notepad++ show it as FF.


9

Have a look at the source code for LuaTeX: It contains no Pascal code anymore. All of it has been converted by hand to C.


7

As Patrick pointed out, HTML is what you are looking for, it provides the features you need: Standard coding pattern (if I interpret that correctly) Works well on the WWW Works on almost all available platforms No need to recompile TeX was never designed for producing content for on screen reading, it was designed to generate pages to print books. PDF ...


6

I recently created a (Windows) build of Web2c.exe using Microsoft's Visual Studio and posted some notes describing the process on my blog. To date, I've built tangle and weave from their .web and .ch files: next step TeX! Those notes don't cover every step, but they might help if you want to have a go yourself, whether you are using Windows or Linux. You can ...


5

pdf2htmlEX can convert PDF to HTML without losing format.


5

Firstly: LuaTeX is a descendant of CXTeX. Why do I say this? I cannot read Dutch, but I notice certain similarities between these two papers both by Taco Hoekwater: De CXTeX distributie (MAPS 30, Voorjar (Spring) 2004) and LuaTEX says goodbye to Pascal (MAPS 39, EuroTeX 2009). :-) So when the latter paper says: In the winter of 2008–2009, we invested a ...


4

You're increase of the pool size lead to additional memory requirements. So you do not need any other changes to eTeX, you have to increase the provided memory. In your Javascript versions, the amount of memory is set in the "compiler". For your settings you would need 32906 pages of memory, but there is an impmentation limit at 32767 pages. Luckily you can ...


3

Do not really understand all parts of your question. tex4ht can be used to convert (La)TeX to MathML. Read more at: http://www.tug.org/applications/tex4ht/mn-commands.html#QQ1-9-37 There was similar question here: Convert Latex to MathJax-HTML about converting LaTeX to MathML and even loading mathjax scripts. Not every (La)TeX construction can be easily ...


3

I haven't seen any cweb for a long time but... There is a latex-cweb package for using LaTeX with CWEB, or there is the plain/miniltx collection that allows you to use \includegraphics from plain, or you can perhaps process the plain TeX output in latex using the plain package.


3

Unlike tex.web which was from the beginning intended by Knuth for producing both a documented book of the source code listing (Computers & Typesetting Volume B, TeX: The Program) and the actual program of TeX, the file pdftex.web is simply a changed tex.web that was done with the primary goal of producing a working and usable pdfTeX program, with no ...


2

The tool is tangle try: tangle inputfile changefile outputfile poolfile If not available with standard distributions, try ctangle. Also instructive is to read webman. Good reference here.


2

An old question without an answer; maybe you solved the problem already. But as it is not closed yet I want to share my ideas. The question is not very clear. As stated in the comments (1) the answer may look at the output, i.e., you want to have LaTeX code instead of TeX code as the result of the weave process, or you want (2) to write LaTeX code instead ...


2

I'm currently developing a free open source tool that can convert LaTeX to a single HTML file. Its called PDBF (https://github.com/uds-datalab/PDBF) and runs on win/linux/mac. Instructions: Make sure you have a Java Runtime (version >= 1.7) installed Download latest version of PDBF: https://github.com/uds-datalab/PDBF/archive/gh-pages.zip Unpack archive ...


2

Use @/ to add a manual line break in the cweave output: { @<print hello world@>@/ return 0; } produces


1

With ACM-Reference-Format.bst you can add the date of access of an URL to the lastaccessed field (only for @misc entries, though). \documentclass[format=acmlarge, review=false, screen=true]{acmart} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @misc{elk, author = {Anne Elk}, title = {A Theory on Brontosauruses}, year ...


1

To be honest, the best I did was to convert the Latex file to pdf. Then the best and easiest thing to do is to convert the pdf to HTML5 using https://www.idrsolutions.com/online-pdf-to-html5-converter/ This was the best and easiest possible method one may do to preserve all the structure of the latex file.


1

To answer my own question: I found a program called tie in CTAN, which you can use to fully merge change files into the original WEB file. Once you've done this you can use weave to convert to a .tex, .pdf file of the combined code.


Only top voted, non community-wiki answers of a minimum length are eligible