[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libpaper stuff



Hi,

to be more specific ...


On 03/19/2012 11:19 AM, Norbert Preining wrote:
- we do not rebuild formats! In TLPaper.pm there is
announce_execute_action(...) of two types, we have
to check if:
$::files_changed == 1 -> run mktexlsr
$::regenerate_all_formats == 1 -> do that ...

I have for now edited tl-paper.pl to simply call
  `mktexlsr`;
and
  `fmtutil-sys --refresh`;
if the resp. variables are set. But of course this
is a pain. We should do the equivalent of the tex-common
dh-installtex postinst-tex snippet, that is check for
libkpathsea being configured, mktexlsr being available,
create a tmp file etc etc etc.

Now it works in a running system, I have tried it with
both letter and a4, and the generated pdf files actually
end up being paper or a4.

Maybe someone can transfer the relevant parts of the
postinst-tex shell code (tex-common/branches/v3/scripts/postinst-tex)
to the perl code, or does anyone have a better idea???

For lsr we can call the trigger action with update-texmf-config lsr,
but that does not work for formats, since we do not create
formats in a triggered way.

Best

Norbert


Reply to: