.png)
Intenté insertar un hipervínculo con xetex y eplain, y esto es lo que sucede.
\input eplain
\enablehyperlinks
\input pgfmath
\href{http://www.google.com}{google}
\bye
imprime este extraño error en el archivo de registro:
! Undefined control sequence.
\color ...gfsysprotocol@bufferedtrue \pgfsetcolor
{.}\expandafter \pgfsys@ou...
\temp ->\color [
cmyk]{0.28,1,1,0.35}
\after@hl@getparam ...]{\hl@opt@color }}\fi \temp
\fi \fi \hl@driver
\@hl@getparam ...\@hllabel {#1}\after@hl@getparam
\ignorespaces
\@@href ...f@end@ext \hlstart@impl {hrefext}{#1#2}
\fi \@@@href
l.4 \href{http://www.google.com}
{google}
Con pgf "normal",
\input eplain
\enablehyperlinks
\input pgf
\href{http://www.google.com}{google}
\bye
el documento se compila con este error:
Package pgfbase: Error! Unsupported color model `'. Sorry.
y escribe un archivo pdf extraño
(lo mismo sucede si cargo pgf antes de eplain)
Respuesta1
pgfmath
cargas pgfplain-util.def
que quiere emular xcolor
, sin poder hacerlo realmente si no está cargado todo el PGF.
Puedes adaptar mi solución en¿Pueden \usepackage{color} y \input tikz trabajar juntos en Plain TeX/eplain?devolviendo el control del color al color
paquete.
\input eplain
\beginpackages
\usepackage{url}
\usepackage{color}
\endpackages
\let\eplaincolor\color
\let\eplaindefinecolor\definecolor
\input pgfmath
\let\color\eplaincolor
\let\definecolor\eplaindefinecolor
\enablehyperlinks
\definecolor{urlcolor}{rgb}{.2,.4,.6}
\hlopts{colormodel=,color=urlcolor}
\href{http://www.google.com}{google}
\url{http://tex.stackexchange.com}
\bye