.png)
Я попробовал вставить гиперссылку с помощью xetex и eplain, и вот что получилось.
\input eplain
\enablehyperlinks
\input pgfmath
\href{http://www.google.com}{google}
\bye
выводит эту странную ошибку в файл журнала:
! 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}
С «нормальным» pgf,
\input eplain
\enablehyperlinks
\input pgf
\href{http://www.google.com}{google}
\bye
документ компилируется с этой ошибкой:
Package pgfbase: Error! Unsupported color model `'. Sorry.
и пишет странный pdf-файл
(то же самое происходит, если я загружаю pgf перед eplain)
решение1
pgfmath
загружает pgfplain-util.def
, что хочет эмулировать xcolor
, но на самом деле не может этого сделать, если не загружен весь PGF.
Вы можете адаптировать мое решение по адресуМогут ли \usepackage{color} и \input tikz работать вместе в Plain TeX/eplain?вернув контроль над цветом упаковке color
.
\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