hi, I get an error when compiling the polish refcard on emacs-25, both under Debian Stable and Fedora 24. On both systems I have texlive-full installed, which includes the MeX package. Here's the output: if ! kpsewhich -format=fmt mex > /dev/null && \ ! pdfmex --version > /dev/null 2> /dev/null; then \ echo "No mex format found."; false; \ fi TEXINPUTS=".:" pdftex -output-format=pdf pl-refcard.tex This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2016/dev) (preloaded format=mex) restricted \write18 enabled. entering extended mode (./pl-refcard.tex This is MeX Version 1.05 18 XII 1993 (B. Jackowski & M. Ry\'cko) (./pdflayout.sty (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty) ) (./emacsver.tex) [2 columns per page] [1{/usr/share/texlive/texmf-dist/fonts/ map/pdftex/updmap/pdftex.map}] [2] [3] ! MeX error: Illegal pair of characters /r occured. \P@lerr ...and /\noexpand #1\space \space occured} \endgroup This goes beyond my knowledge of LaTeX. Cheers, Nico