Git Product home page Git Product logo

Comments (2)

davidcarlisle avatar davidcarlisle commented on June 25, 2024

Moving here as comments in PRs not so easy to reference later if fixed in a separate PR

Currently rolling back luatex prior to 2015 gives

! Undefined control sequence.
\@ifundefined ...e \expandafter \ifx \lastnamedcs 

as unprefixed luatex commands are undefined by the rollback.

We could do

  for _,i in pairs(tex.extraprimitives("luatex")) do
  if not string.match(i,"^U") then
        if not (string.match(i, "^luatex") or i == "lastnamedcs") then
                                                          %^^^^^^^^^^^

so that \lastnamedcs which is used within latexrelease.sty is left defined.

or we could define it under a custom name and then arrange to use that name for all engines within latexrelease (but that seems unnecessarily complicated) or we could remove the whole

  local i
  local t = { }
  for _,i in pairs(tex.extraprimitives("luatex")) do
    if not string.match(i,"^U") then
      if not string.match(i, "^luatex") then
        table.insert(t,i)
      end
    else
      if string.match(i,"^Uchar$") then
        table.insert(t,i)
      end
    end
  end
  for _,i in pairs(t) do
    tex.print(
      "\noexpand\\let\noexpand\\" .. i
        .. "\noexpand\\undefined"
    )
  end

block so leave luatex primitives with both prefixed and unprefixed names in the rollback.

I suspect this last version is most likely to lead to a successful emulation if just the format is rolled back but used in a current tex system with current packages expecting luatex names.

In particular for graphics the first change allows latexrelease to load but then the package errors as

! Undefined control sequence.
l.28       \ifnum\outputmode

If the whole block is removed so \outputmode is defined then this progresses further

The suggested graphics.sty change of using

\DeclareRelease{}{1994-06-01}{graphics-2017-06-25.sty}

Then works with the current lualatex but fails on all engines with -dev as you get

Runaway argument?
"example-image.pdf" \edef \Gin@ext {\Gin@sepdefault \filename@ext }\ifx \ETC

as kernel utf8 filename normalisation it's expecting a catcode 12 .pdf but the rolled back package is using a catcode 11.
but I haven't traced fully yet.

from latex2e.

davidcarlisle avatar davidcarlisle commented on June 25, 2024

actually I think the runaway error is just an artefact of my tests,

from latex2e.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.