\epsdice{3}
~/Library/texfm/tex/latex/epsdice
abgespeichert und dann
sudo latex epsdice.ins sudo texhash
\epsdice{3}
sudo latex epsdice.ins sudo texhash
\documentclass[a4paper, 10pt]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage[applemac]{inputenc}
\usepackage{epsdice}
\usepackage{Sweave}
\begin{document}
\epsdice{3}
\end{document}\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{Sweave}{}
\RequirePackage{ifthen}
\newboolean{Sweave@gin}
\setboolean{Sweave@gin}{true}
\newboolean{Sweave@ae}
\setboolean{Sweave@ae}{true}
\DeclareOption{nogin}{\setboolean{Sweave@gin}{false}}
\DeclareOption{noae}{\setboolean{Sweave@ae}{false}}
\ProcessOptions
\RequirePackage{graphicx,fancyvrb}
\IfFileExists{upquote.sty}{\RequirePackage{upquote}}{}
%in der folgenden Zeile wird eine Länge verändert, die sich auch auf epsdice auswirkt.
\ifthenelse{\boolean{Sweave@gin}}{\setkeys{Gin}{width=0.8\textwidth}}{}%
\ifthenelse{\boolean{Sweave@ae}}{%
\RequirePackage[T1]{fontenc}
\RequirePackage{ae}
}{}%
\DefineVerbatimEnvironment{Sinput}{Verbatim}{fontshape=sl}
\DefineVerbatimEnvironment{Soutput}{Verbatim}{}
\DefineVerbatimEnvironment{Scode}{Verbatim}{fontshape=sl}
\newenvironment{Schunk}{}{}
\newcommand{\Sconcordance}[1]{%
\ifx\pdfoutput\undefined%
\csname newcount\endcsname\pdfoutput\fi%
\ifcase\pdfoutput\special{#1}%
\else\immediate\pdfobj{#1}\fi}Das stammt übrigens aus der Mottenkiste. Mit \pdfoutput herumzupfuschen ist - naja, lassen wir die Kraftausdrücke. Wenn das überhaupt sinnvoll sein soll, dann wohl so:Sweave hat geschrieben:\newcommand{\Sconcordance}[1]{% \ifx\pdfoutput\undefined% \csname newcount\endcsname\pdfoutput\fi% \ifcase\pdfoutput\special{#1}% \else\immediate\pdfobj{#1}\fi}
\RequirePackage{ifpdf}
\newcommand{\Sconcordance}[1]{%
\ifpdf\pdfobj{#1}\else\special{#1}\fi
}