I tried to insert a hyperlink with xetex and eplain, and here is what happens.

\input eplain
\input pgfmath


prints this weird error in the log file:

! Undefined control sequence.
\color ...gfsysprotocol@bufferedtrue \pgfsetcolor 
                                                  {.}\expandafter \pgfsys@ou...

\temp ->\color [
\after@hl@getparam ...]{\hl@opt@color }}\fi \temp 
                                                  \fi \fi \hl@driver 
\@hl@getparam ...\@hllabel {#1}\after@hl@getparam 
\@@href ...f@end@ext \hlstart@impl {hrefext}{#1#2}
                                                  \fi \@@@href 
l.4 \href{http://www.google.com}

With "normal" pgf,

\input eplain
\input pgf


the document compiles with this error:

Package pgfbase: Error! Unsupported color model `'. Sorry.

and writes a weird pdf file

enter image description here

(the same happens if I load pgf before eplain)


1 Answer 1


pgfmath loads pgfplain-util.def that wants to emulate xcolor, without really being able to do it if the whole PGF isn't loaded.

You can adapt my solution at Can \usepackage{color} and \input tikz work together in Plain TeX/eplain? by giving control of color back to the color package.

\input eplain

\input pgfmath




enter image description here

  • I suppose that I have to manually change the color everytime if I want, say, cross-references in red and urls in blue? Commented Dec 31, 2013 at 16:20
  • @lvaneesbeeck That's beyond my knowledge of eplain.
    – egreg
    Commented Dec 31, 2013 at 16:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .