Another colorful question...

Jim Diamond JimDiamond at ns.sympatico.ca
Mon Dec 20 02:31:07 CET 2021


Hi Walt,

On Sun, Dec 19, 2021 at 16:02 (-0800), Walt Burkhard wrote:

> I am trying to slightly enhance the TeX command "input color"
> so it will include the  547 color definitions  due to Loreti.

> What I would like is to leave this additional info (say within the
> ../tex-local/.. folder) so various TeX-live updates will continue
> to operate correctly.

> Currently I am using a less than optimal approach in which I
> have modified a TeX-live file not in the ../tex-local/... .  .../texlive/YYYY/tex-dist/tex/latex/graphics-def/dvips.def
> by adding the following line at the end of the file
> \input /usr/local/texlive/texmf-local/tex/plain/local/colordef.tex

Would you consider something like the following as an acceptable solution?

(1) Create a file which contains
        \input color
        \input /usr/local/texlive/texmf-local/tex/plain/local/colordef.tex
(2) Put that file in (say)
        /usr/local/texlive/texmf-local/tex/plain/local/my-color.tex
(3) In your source files, use
        \input my-color
    instead of
        \input color
?

I realize that it would require modifying your source files.


Alternatively, and I haven't tried this, if
        /usr/local/texlive/texmf-local/tex/plain/local/
precedes
        /usr/local/texlive/2021/texmf-dist/tex/plain/graphics-pln/
in however you have your system configured, then you might be able to
put the above file (in (1)) in 
        /usr/local/texlive/texmf-local/tex/plain/local/color.tex

Cheers.
                                Jim


More information about the texhax mailing list.