Skip to content

Instantly share code, notes, and snippets.

Created February 18, 2013 12:52
Show Gist options
  • Save anonymous/4977150 to your computer and use it in GitHub Desktop.
Save anonymous/4977150 to your computer and use it in GitHub Desktop.
LaTeX: To utilize PGF's position marking on e-pTeX
% pxpgfmark.sty
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{pxpgfmark}[2013/02/18 v0.1]
\@ifpackageloaded{pgfcore}{}{%else
\PackageError{pxpgfmark}{Package 'pgfcore' must be loaded}\@ehc}
\def\pxqmk@tempa{pgfsys-dvipdfmx.def}
\ifx\pgfsysdriver\pxqmk@tempa
\@tempswatrue
\ifx\pdfsavepos\@undefined \@tempswafalse \fi
\ifx\pdflastxpos\@undefined \@tempswafalse \fi
\ifx\pdflastypos\@undefined \@tempswafalse \fi
\ifx\pgf@sys@pdf@dvi@tracker\@undefined \@tempswafalse \fi
\if@tempswa
\pgf@sys@pdf@dvi@tracker
\PackageInfo{pxpgfmark}{Position marking enabled}
\fi
\fi
%% EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment