From c6f9f73f3f49ca340092356d6e725f356b0ab84e Mon Sep 17 00:00:00 2001 From: Tobias Pape Date: Mon, 15 Feb 2021 02:28:11 +0100 Subject: [PATCH] Allow ICC profiles to be found in texmf Using `kpse` to find a file (which _includes_ the cwd) allows to use globally available ICC profiles, such as from [the `colorprofiles` package](https://ctan.org/tex-archive/support/colorprofiles) --- colorspace.sty | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colorspace.sty b/colorspace.sty index 40e2948..f474261 100644 --- a/colorspace.sty +++ b/colorspace.sty @@ -498,7 +498,7 @@ % read the icc file and extract the space it applies to \ifx\pdffiledump\@undefined \directlua{ - local icc = io.open([[#2]], "r") + local icc = io.open(kpse.find_file([[#2]]), "r") if icc then icc:seek("set", 16) tex.print([[\noexpand\csname @namedef\endcsname{spc@tempa}{]]