Skip to content

Hooks to set attributes for different parts of the page.  #1416

@Udi-Fogiel

Description

@Udi-Fogiel

Brief outline of the enhancement

I'm not sure if it is already possible but it would be nice to have some hooks
to control the attributes (in the LuaTeX meaning) of different parts of a page,
i.e. page number, headings, footnotes, marginpars etc.

This is a similar concept to \normal color, but \normalcolor is used inside
the page body, having a separate hook for other parts would be nice. Maybe
one hook for all parts which are not the page body will suffice, but of course
will be less configurable.

One use case is a problem I'm facing in Udi-Fogiel/lua-lineno#1
but I don't think this is specific to this case. It's probably common to want different parts
of the page to behave differently, e.g. default colors for footnotes. OpTeX for example
provides \_resetattrs, see pages 114 and 120 of optex-doc.pdf.

I did not add minimal examples as i did not have a good idea for one. You can
explore the examples in the linked issue (the package is not released yet so I thought
adding it in a minimal example will add confusion).

Metadata

Metadata

Labels

Type

No type

Projects

Status

Pool (unscheduled issues)

Relationships

None yet

Development

No branches or pull requests

Issue actions