Skip to content

CWEB with OpTeX #105

Answered by olsak
omasanori asked this question in Q&A
Mar 1, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The problem is that plain TeX uses ancient 7bits fonts and cwebmac supposes that these fonts are still used in year 2023.
But this is not true when OpTeX is used.

We can do a "conservative patch" where we load these ancient fonts in the same manner as plain.tex does it. Of course, this solution doesn't co-operate with OpTeX's font selection system. Maybe it doesn't matter, maybe a user only want to return to the year 1980.
Then we can do this:

\font\sevenrm=cmr7
\font\sevensy=cmsy7
\font\teni=cmmi10
\def\pagebody{\_vbox to\_vsize {\_boxmaxdepth=\_maxdepth \_pagecontents}}% \pagebody in plainTeX

\input cwebmac

Hello

\bye

I didn't test any real document. It is very likely that other pro…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@omasanori
Comment options

Answer selected by omasanori
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants