extract latex header
common: log: add support for package errors
merge headers
migrate everything to merged header
remove old headers