Questions tagged [web]

WEB is a computer programming system created by Donald E. Knuth. TeX and Metafont are written in WEB. This tag covers WEB and related tools (CWEB, web2c).

Filter by
Sorted by
Tagged with
0 votes
0 answers
53 views

Latex Table in Wordpress

I want to display a Latex table on wordpress page. I am using following code for this, but the code is showing one empty cell of the left hand side column at the end of/bottom, \begin{tabular}{ | c | ...
Ajit's user avatar
  • 1
4 votes
0 answers
163 views

How to create docker environment for Pascal to WASM compiler web2js?

What is web2js? This is a Pascal compiler that targets WebAssembly, designed specifically to compile TeX so it can be run inside the browser. More specifically, this repository includes a TeX engine ...
Nosuke23's user avatar
2 votes
1 answer
242 views

The hash function used by new_trie_op

In §944 of TeX, The Program (Volume B of Computers & Typesetting) DEK describes the hash function used by new_trie_op in order to store hyphenation tables efficiently. Quoting him: The hash ...
yannis's user avatar
  • 1,952
4 votes
2 answers
448 views

Can someone explain what is labxx in the source code of tex

As shown above, I saw many labXXX in the source code of tex and pdftex. I'm really confused about them and there is no comments at all. Is there any doc that demonstrate the meaning of every labXXX? ...
潇洒张's user avatar
  • 481
21 votes
2 answers
3k views

How many lines of code does the original TeX contain?

I am currently implementing a non-trivial software component (not related to typesetting), and would like to compare it to other components both from the same field and from other fields, including ...
juhist's user avatar
  • 323
6 votes
1 answer
314 views

Testing TeXLive 2019 (MacTeX) with TRIP.TEX

While browsing through Don Knuth's publications on TeX, I was referred to the file tripman.pdf on my MacTeX distribution. As TeXnicians may know, this file explains the purpose of the TRIP test and ...
ThePhantomE's user avatar
0 votes
1 answer
147 views

Example of "babel-\[email protected]" i.e. "babel-*.cfg"? Typical content? Where do I have to store "babel-latex.cfg" so "kpsewhich" can find it?

An e-TeX generated with Jim Fowler's WEB/TeX Pascal to WebAssembly Compiler web2js should dump a LaTeX format from latex.ltx and stumbles over the babel-latex.cfg, see ShreevatsaR's instructions to ...
CarpeDiemKopi's user avatar
4 votes
0 answers
149 views

Is there a specialized literate programming web-file editor that supports navigating in a Knuth's web file e.g. "tex.web"?

What do I mean by that? displaying starred and unstarred sections of cursor position displaying title of starred section displaying See also sections if exists displaying This code is used in ...
CarpeDiemKopi's user avatar
0 votes
0 answers
42 views

Where to find Kevin Borden's WEB structure viewer web-view and Texbraces from David Ness?

Does anybody know how to get these programs / source codes? At TeXbraces, I'm referring to Diagnosing TeX Errors with a Preprocessor
CarpeDiemKopi's user avatar
0 votes
1 answer
897 views

TeX initex error "TeX capacity exceeded, sorry [pool size=8563]" while constant pool_size is set to 350000. What can I do?

Attention: This TeX is generated by web2js Jim Fowler's WEB/TeX Pascal to WebAssembly compiler. This is a follow-up question to Is it possible to output a WEB constant with a TeX (or WEB) command?. ...
CarpeDiemKopi's user avatar
0 votes
1 answer
91 views

Is it possible to output a WEB constant with a TeX (or WEB) command?

tex.web defines several constants which are changed at compile time. How can I get the values of the current TeX or eTeX instance? I'm about to put a TeX or eTeX generated by web2js Jim Fowler's ...
CarpeDiemKopi's user avatar
0 votes
1 answer
42 views

How can I output another page "** I'm the new first page**" in/with pdfwebmac.tex (or webmac.tex) before the document?

I got it here: pdfwebmac.tex It's the hyperlink version of webmac. In principle, the question should also apply to webmac. My Tex Live 2019 distribution only contained the webmac. With weave tex.web ...
CarpeDiemKopi's user avatar
2 votes
0 answers
45 views

How to add a second table of content to "tex.pdf" with a LaTeX package by using the "contents.tex" generated by 'pdfwebmac'?

This is a follow up question to How to change table of content layout for a pdf document created from a web source file? I input the following commands: weave tex.web pdftex tex.tex and create ...
CarpeDiemKopi's user avatar
9 votes
1 answer
243 views

Where to find an interactive PDF or HTML version of the tex.web documentation?

I have problems with the memory management of an eTeX created with Jim Fowler's TeX's pascal to javascript compiler web2js as soon as I want to dump the eTeX format etex.src with more than only "...
CarpeDiemKopi's user avatar
8 votes
3 answers
694 views

Rather simple, instructional, educational and illustrative web program source codes in Knuth's WEB literal programming language?

Can someone please provide (or write) such programs in DEK's WEB? I want them to test Jim Fowler`s WEB/TeX's pascal to javascript compiler web2js and I think such a collection is also a good ...
CarpeDiemKopi's user avatar
3 votes
1 answer
188 views

How to prepare a chg file, tie and tangle: tex.web tex.ch etex.ch and etex.sys to a new etex.web?

I need the following changes for tex.web in tex.ch. The section begins line 707. The actual change concerns the last two lines. @ The ASCII code is ``standard'' only to a certain extent, since many ...
CarpeDiemKopi's user avatar
6 votes
2 answers
2k views

How to make an e-TeX WebAssembly with Jim Fowler's WEB/TeX pascal to WASM compiler web2js?

I have a TeX Live 2019 distribution installed on Windows 10 and want to run a preloaded LaTeX based on e-TeX (with these packages among others: Calculator, Calculus, TikZ, CircuiTikZ) under ...
CarpeDiemKopi's user avatar
1 vote
1 answer
66 views

Cweb: why are my chunk names not inserted with a newline?

I am using cweb from TeX Live as installed with macports, and I am using the LaTeX document class cweb. When I insert a named chunk in my code, as such \documentclass{cweb} \begin{document} @ ...
Johann Oskarsson's user avatar
4 votes
1 answer
265 views

How to run CXTeX?

In the spirit of questions like this, I'm trying to build a C version of TeX-the-program; specifically Taco's CXTeX (part of MetaTeX). On Ubuntu 14 I can get it to compile, which results in a binary ...
étale-cohomology's user avatar
6 votes
0 answers
701 views

Which language would Knuth use to (re-)write TeX today? [closed]

[ yes, this is "primarily opinion based;" VTC if you must ] In Literate Programming Knuth wrote: ... I chose PASCAL as the programming language ... ; it is not my favorite language for system ...
Ðаn's user avatar
  • 285
17 votes
2 answers
3k views

Why using character ^^ff before every chapter in the TeXBook source

When viewing the source code of the TeXBook, I find that there is a character ^^ff before every chapter in it. I am wondering why using this ^^ff character which seems useless? The following ...
Z.H.'s user avatar
  • 3,318
6 votes
1 answer
510 views

Is there an implementation of WEB/NOWEB for LaTeX?

The WEB system is great, but it's a little cumbersome sometimes and very much rigid in its design. Is there a LaTeX document class for WEB-style documents? I'd like to program in other languages than ...
Sean Allred's user avatar
  • 27.3k
1 vote
1 answer
105 views

Adding picture to a CWEB document

The CWEB docs make no mention of how to include pictures. The tools I'm familiar with for including or generating graphics are designed for use in LaTeX, but CWEB outputs plain TeX. Pointers to ...
Llaves's user avatar
  • 155
4 votes
1 answer
103 views

How to use tangle to merge to get a single merged file from original source and change files

I'm trying to read and understand the TeX source, but it is difficult to keep track of when I should be reading code from the original file and when I should be reading code from the change file. I ...
user1043479's user avatar
2 votes
1 answer
195 views

Tool for merging WEB file with its change file

Is there any tool that can take a sample.web and sample.ch file and produce a merged.web file as output?
codefx's user avatar
  • 587
57 votes
2 answers
9k views

What language is TeX implemented in?

I read on Wikipedia that the first version of TeX was written in SAIL. However, does anyone know what language later versions (i.e the current one) are implemented in?
CodyBugstein's user avatar
10 votes
2 answers
2k views

About web2c, c code conversion

I'd like to convert some Tex-and-friends code to C, so that I can play with modifying it. As I understand it, the process is: (1) The tangle utility converts foo.web to a foo.p (Pascal) file, and ...
bubba's user avatar
  • 2,452
1 vote
0 answers
115 views

TeX typesetting algorithms for web sites [duplicate]

Possible Duplicate: Tex like formatting on blog posts I wonder if there are any solutions for using TeX typesetting algorithms for web sites publishing to make pages as beautiful and readable as ...
rkiyanchuk's user avatar
2 votes
1 answer
181 views

Producing Generic or Portable TEX Source Codes Using - the World Wide Web- Standards [closed]

Is it possible to write or produce a(n) -ultimate- standard coding pattern for TEX source codes those might work well enough across the "World Wide Web" on almost every each of platforms available, ...
Kerim Atasoy's user avatar
7 votes
2 answers
2k views

rewrite tex.web in C++? [closed]

A few weeks ago I read this (now here) article about some difficultites bring TeX to the iPad. It made me wonder: why not rewrite TeX.web in C++11? The codebase itself is now quite stable, and (...
Ðаn's user avatar
  • 285
13 votes
2 answers
755 views

How can I make a PDF of the source of pdftex?

I got the files tex.web and pdftex.web from the texlive svn repo. I ran weave tex.web pdftex tex.tex which produced a file tex.pdf with a nicely typeset, cross-referenced listing of the WEB source ...
Judah Jacobson's user avatar
8 votes
1 answer
433 views

What macros are defined in a Web2c format file?

Web2c defines its format style using Pascal strings, so there are no separator characters between csnames. Is there a straightforward way of listing all csnames bound in a .fmt file?
Charles Stewart's user avatar