[tex-eplain] eplain and Luatex
Shiv Shankar Dayal
shivshankar.dayal at gmail.com
Tue Sep 24 23:58:28 CEST 2024
I have managed to do it. Following is what it looks like:
% -*- mode: plain-tex; -*-
\protected\def\pdfdest {\pdfextension dest }
\protected\def\pdfoutline {\pdfextension outline}
\protected\def\pdfstartlink {\pdfextension startlink}
\protected\def\pdfendlink {\pdfextension endlink}
\input amstex
\input eplain
\beginpackages
\usepackage{url}[2015/06/27]
\usepackage[dvipsnames]{color}
\usepackage{luatex85}
\endpackages
\enablehyperlinks
Lorem ipsum
\bye
I had to comment out \pagewidth and \pageheight macros from AMS-TeX:
%\def\pagewidth#1{\hsize#1\relax
% \captionwidth@\hsize\advance\captionwidth at -1.5in}
%\def\pageheight#1{\vsize#1\relax}
which harms nothing because these are not used further in AMS-TeX.
On Wed, Sep 25, 2024 at 3:18 AM Shiv Shankar Dayal
<shivshankar.dayal at gmail.com> wrote:
>
> > If I \input amstex after \endpackages, luatex runs without error.
> > Whether it actually does what's needed, I don't know.
> > It seems the problem is about the color package (not surprisingly, since
> > that's what loads the output back end). I could cut your example down to:
> >
> > %error \input amstex
> > \input eplain
> > \beginpackages
> > \usepackage[dvipsnames]{color}
> > \endpackages
> > \input amstex % ok
> >
> > Lorem ipsum
> > \bye
> >
>
> Much thanks. I found that with following I can use most of hyperlinks:
>
> \protected\def\pdfdest {\pdfextension dest }
> \protected\def\pdfoutline {\pdfextension outline}
> \protected\def\pdfstartlink {\pdfextension startlink}
> \protected\def\pdfendlink {\pdfextension endlink}
>
>
> However, AMS-TeX completely messes up the layout. I guess I will have
> to debug it.
>
> --
> Respect,
> Shiv Shankar Dayal
--
Respect,
Shiv Shankar Dayal
More information about the tex-eplain
mailing list.