Skip to content

Commit

Permalink
CWEB 4.0 natively supports XeTeX.
Browse files Browse the repository at this point in the history
  • Loading branch information
ascherer committed Feb 5, 2021
1 parent db812da commit 63d46ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cwebmac.tex
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
% standard macros for CWEB listings (in addition to plain.tex)
% Version 3.70 --- July 2017
% Version 4.0 --- February 2021
\ifx\renewenvironment\undefined\else\endinput\fi % LaTeX will use other macros
\xdef\fmtversion{\fmtversion+CWEB3.70}
\chardef\cwebversion=3 \chardef\cwebrevision=70
\xdef\fmtversion{\fmtversion+CWEB4.0}
\chardef\cwebversion=4 \chardef\cwebrevision=0
\newif\ifpdf
\ifx\pdf+\pdftrue\fi
% Uncomment the following line if you want PDF goodies to be the default
%\ifx\pdf-\else\pdftrue\fi
\def\pdflinkcolor{0 0 1} % the RGB values for hyperlink color
\ifx\undefined\XeTeXrevision\else\pdftrue\fi % XeTeX produces PDF output
\newif\ifpdftex
\ifx\pdfoutput\undefined \pdftexfalse \else\ifnum\pdfoutput=0 \pdftexfalse
%\else \pdftextrue \pdfoutput=1 \input pdfcolor \let\setcolor\pdfsetcolor \fi\fi
Expand Down
2 changes: 2 additions & 0 deletions cwebman.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,8 @@
Alternatively, thanks to H\`an Th\^e\kern-.3em\raise.3ex\hbox{\'{}} Th\`anh
and Andreas Scherer, you can generate \.{cob.pdf} in one step by simply
saying `\.{pdftex}~\.{cob}'.
A third way to create PDF output from \.{CWEB} input is to say
`\.{xetex}~\.{cob}'.

A more elaborate system called \.{CTWILL}, which extends the usual cross
references of \.{CWEAVE} by preparing links from the uses of identifiers
Expand Down

0 comments on commit 63d46ba

Please sign in to comment.