summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/generic/colorprofiles/FOGRA39L_coated.iccprofile.xml (renamed from Master/texmf-dist/tex/generic/colorprofiles/FOGRA39L_coated.iccprofile.xml)0
-rw-r--r--Master/texmf-dist/doc/generic/colorprofiles/README19
-rw-r--r--Master/texmf-dist/tex/generic/colorprofiles/colorprofiles.sty60
-rw-r--r--Master/texmf-dist/tex/generic/colorprofiles/colorprofiles.tex50
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds2
5 files changed, 128 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/generic/colorprofiles/FOGRA39L_coated.iccprofile.xml b/Master/texmf-dist/doc/generic/colorprofiles/FOGRA39L_coated.iccprofile.xml
index 3d709e3e4fd..3d709e3e4fd 100644
--- a/Master/texmf-dist/tex/generic/colorprofiles/FOGRA39L_coated.iccprofile.xml
+++ b/Master/texmf-dist/doc/generic/colorprofiles/FOGRA39L_coated.iccprofile.xml
diff --git a/Master/texmf-dist/doc/generic/colorprofiles/README b/Master/texmf-dist/doc/generic/colorprofiles/README
index 676118998ae..d69ed4e32cd 100644
--- a/Master/texmf-dist/doc/generic/colorprofiles/README
+++ b/Master/texmf-dist/doc/generic/colorprofiles/README
@@ -1,15 +1,30 @@
colorprofiles
=============
-Version: 20181009
+Version: 20181022
This package collects free ICC profiles that can be used by
-color profile aware applications/tools like the pdfx package.
+color profile aware applications/tools like the pdfx package,
+as well as TeX and LaTeX packages to access them.
Package maintainer
------------------
Norbert Preining <norbert@preining.info>
+colorprofiles.{tex,sty}
+-----------------------
+Copyright (c) 2018 Ross Moore <ross.moore@mq.edu.au>
+
+This file may be distributed and/or modified under the conditions
+of the LaTeX Project Public License, either version 1.2 of this
+license or (at your option) any later version. The latest version
+of this license is in:
+
+ http://www.latex-project.org/lppl.txt
+
+and version 1.2 or later is part of all distributions of LaTeX
+version 1999/12/01 or later.
+
sRGB.icc
--------
diff --git a/Master/texmf-dist/tex/generic/colorprofiles/colorprofiles.sty b/Master/texmf-dist/tex/generic/colorprofiles/colorprofiles.sty
new file mode 100644
index 00000000000..dea8f9a7a53
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/colorprofiles/colorprofiles.sty
@@ -0,0 +1,60 @@
+%%
+%% This is file `colorprofiles.sty',
+%%
+%% Copyright (c) 2018 Ross Moore <ross.moore@mq.edu.au>
+%%
+%% AIM: ensure that the information for default Color Profiles are recorded,
+%% if those Profiles are indeed available.
+%%
+%% This file may be distributed and/or modified under the conditions
+%% of the LaTeX Project Public License, either version 1.2 of this
+%% license or (at your option) any later version. The latest version
+%% of this license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.2 or later is part of all distributions of LaTeX
+%% version 1999/12/01 or later.
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{colorprofiles}
+ [2018/10/20 v1.0.0 color profiles for PDF/X and PDF/A support]
+%
+\begingroup
+
+\def\colorprofile@file{colorprofiles}
+\InputIfFileExists{\colorprofile@file.tex}{}%
+ {\PackageWarning{colorprofiles}{The file \colorprofile@file.tex is not available.}
+ \endinput
+ }%
+ \newcommand*\colorpro@FileNotFound[1]{%
+ \PackageWarning{colorprofiles}%
+ {The file #1 was not found. Please get it from CTAN or elsewhere.}%
+ }
+ %% when the default Color Profile is available the following
+ %% control sequences will have sensible global expansions:
+ %% \colorpro@rgb@{profile,identifier,info,registry}
+ %% otherwise all are set globally to \relax .
+ %%
+ %% Similarly for CMYK these are set globally:
+%% \colorpro@cmyk@{profile,intent,identifier,registry}
+ %% else all are set globally to \relax .
+ %
+ \def\colorpro@rgb@clear{%
+ \colorpro@FileNotFound\colorpro@rgb@profile
+ \global\let\colorpro@rgb@profile\relax
+ \global\let\colorpro@rgb@identifier\relax
+ \global\let\colorpro@rgb@info\relax
+ \global\let\colorpro@rgb@registry\relax
+ }
+ \def\colorpro@cmyk@clear{%
+ \colorpro@FileNotFound\colorpro@cmyk@profile
+ \global\let\colorpro@cmyk@profile\relax
+ \global\let\colorpro@cmyk@intent\relax
+ \global\let\colorpro@cmyk@identifier\relax
+ \global\let\colorpro@cmyk@registry\relax
+ }
+ \IfFileExists{colorpro@rgb@profile}{}{\colorpro@rgb@clear}
+ \IfFileExists{colorpro@cmyk@profile}{}{\colorpro@cmyk@clear}
+\endgroup
+\endinput
diff --git a/Master/texmf-dist/tex/generic/colorprofiles/colorprofiles.tex b/Master/texmf-dist/tex/generic/colorprofiles/colorprofiles.tex
new file mode 100644
index 00000000000..fa65c9d78ac
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/colorprofiles/colorprofiles.tex
@@ -0,0 +1,50 @@
+%%
+%% This is file `colorprofiles.tex'.
+%%
+%% Copyright (c) 2018 Ross Moore <ross.moore@mq.edu.au>
+%%
+%% AIM: ensure that the information for default Color Profiles are recorded,
+%% if those Profiles are indeed available.
+%%
+%% This file may be distributed and/or modified under the conditions
+%% of the LaTeX Project Public License, either version 1.2 of this
+%% license or (at your option) any later version. The latest version
+%% of this license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.2 or later is part of all distributions of LaTeX
+%% version 1999/12/01 or later.
+%%
+{
+% ensure the correct catcodes for characters appearing in the info strings
+ \catcode`\@ 11 \catcode`\_ 11 \catcode `\/ 11 \catcode `\= 11
+%% RGB Profile specification, used as default for PDF/A
+%% these strings are the same as, or deducible from, the contents of the profile
+%%
+ \gdef\colorpro@rgb@profile{sRGB.icc}% valid file name
+ \gdef\colorpro@rgb@identifier{IEC sRGB}% RGB intent
+ \gdef\colorpro@rgb@info{IEC 61966-2.1 Default RGB colour space - sRGB}% text string
+ \gdef\colorpro@rgb@registry{http://www.iec.ch}% valid URL
+%
+%% CMYK Profile specification, used as default for PDF/X
+%% these strings are the same as, or deducible from, the contents of the profile
+%%
+ \gdef\colorpro@cmyk@profile{FOGRA39L_coated.icc}% valid file name
+ \gdef\colorpro@cmyk@intent{FOGRA39L Coated}% color intent
+ \gdef\colorpro@cmyk@identifier{%
+ Offset printing, according to ISO 12647-2:2004/Amd 1, OFCOM, %
+ paper type 1 or 2 = coated art, 115 g/m2, tone value increase curves A (CMY) and B (K)%
+ }% text string identifier
+ \gdef\colorpro@cmyk@registry{http://www.fogra.org}% valid URL
+%
+%% RRM 20181020 : at some point we will also need a Gray profile
+%%
+%% Gray Profile specification, used as default for PDF/E when not RGB
+%% these strings are the same as, or deducible from, the contents of the profile
+% \gdef\colorpro@gray@profile{Gray_linear.icc}% valid file name
+
+}% end of \catcode s
+
+\endinput
+
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index d71a3ff36c7..9e6aa452b4d 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -1641,7 +1641,7 @@ $standardtex
'clock', '\.sty|clock\.tex',
'cmap', '\.cmap|' . $standardtex,
'codepage', '\.sty|\.tex',
- 'colorprofiles', '\.icc',
+ 'colorprofiles', '\.(icc|sty|tex)$',
'colortab', 'colortab\.tex|' . $standardtex,
'components-of-TeX', 'NULL',
'concepts', 'concepts\.sty',