[XeTeX] epsdice package.

Ulrike Fischer news3 at nililand.de
Fri Jul 15 10:14:20 CEST 2011


Am Thu, 14 Jul 2011 18:57:48 -0400 schrieb Michael Joyner:

> I am trying to use the epsdice package from inside LyX, and when I switch to
> using xelatex as the formatting engine, the package malfunctions.
> 
> Instead of drawing a single die, it draws all 12 possible combinations of
> dice on two lines. :(
> 
> Is there a working dice or dominoes or "grouped dots" package for xelatex ?

epsdice uses one graphic which shows all dice faces and clips it as
needed. As the log informs you clipping support is (yet) not
implemented in the xetex driver of the graphicx package. 

You can clip with tikz, but it need a bit of fiddling with the
values:

\documentclass{book}
\usepackage{graphicx,tikz}

\begin{document}

a\begin{tikzpicture}[scale=0.22]
    \clip (4pt,5pt) rectangle (45.5pt,46.5pt);
    \node [transform shape,above right] {\includegraphics{dice}};
\end{tikzpicture}b%

a\begin{tikzpicture}[scale=0.22]
    \clip (4pt,52pt) rectangle (45.5pt,98.5pt);
    \node [transform shape,above right] {\includegraphics{dice}};
\end{tikzpicture}b%

\end{document}

But I would probably look for a normal font or pdf graphics of each
face or draw the faces directly with tikz instead. 


-- 
Ulrike Fischer 



More information about the XeTeX mailing list