[latex3-commits] [git/LaTeX3-latex3-latex3] master: Delay opacity stack set up to AtBeginDvi (392e4548e)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Jan 18 09:06:29 CET 2021


On 17/01/2021 22:46, Frank Mittelbach wrote:
> Am 17.01.21 um 23:24 schrieb Joseph Wright:
>> +    \cs_if_exist:NTF \AtBeginDvi
>> +      { \AtBeginDvi }
>> +      { \use:n }
> 
> this is for use external to LaTeX format? Or is there some other reason? 
> \AtBeginDvi exists forever in latex.fmt

For non-LaTeX use: l3backend has to load with plain/ConTeXt.

> In this case the code is executed only once so I guess it doesn't 
> matter, but somehow as a general principle I think it would be nicer if 
> all such "other format stuff" is isolated and never tested at runtime,
>
> eg for plain or other formats there could be a separate file holding
> 
>   \cs_set_eq:NN \AtBeginDvi \use:n
> 
> so that the runtime is not slowed down
> 
> just a thought (as I said for this case I really doesn't matter)

I can take a look.

In this particular case, Ulrike tells me that testing for AtBeginDvi 
doesn't work anyway ... I'm hoping in any case that once we agree on a 
final home for pdfmanagement, it will be a little easier to deal with 
all of this stuff.

Joseph



More information about the latex3-commits mailing list.