Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

If we compile

\documentclass[a4paper]{article}
\usepackage[pdftex]{hyperref}
\usepackage{pstricks,auto-pst-pdf}
\begin{document}
\tableofcontents
\section{Curves}
\begin{postscript}
\begin{pspicture}
\psccurve[showpoints=true](1,1)(2,2)(2,1)(1,2)
\end{pspicture}
\end{postscript}
\end{document}

using latexmk via pdflatex -shell-escape, latexmk gives the following message.

Rule 'pdflatex': Rules & subrules not known to be previously run:
   pdflatex
Rule 'pdflatex': The following rules & subrules became out-of-date:
      'pdflatex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex -shell-escape -synctex=1  -recorder  "a.tex"'
------------
Latexmk: applying rule 'pdflatex'...
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
 \write18 enabled.
entering extended mode
(./a.tex
LaTeX2e <2011/06/27>
...
(/home/jasperloy/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/home/jasperloy/texlive/texmf-dist/tex/latex/base/size10.clo))
(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/home/jasperloy/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/home/jasperloy/texlive/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver: hpdftex.

(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
(/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/home/jasperloy/texlive/texmf-dist/tex/latex/pstricks/pstricks.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex
(/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/home/jasperloy/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex)))
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv))
`PSTricks' v2.29  <2012/06/04> (tvz)
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.con))
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex)
(/home/jasperloy/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/color.cfg)
(/home/jasperloy/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def)))
(/home/jasperloy/texlive/texmf-dist/tex/latex/auto-pst-pdf/auto-pst-pdf.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/catchfile.sty)
(./a.w18)) 
-------------------------------------------------
auto-pst-pdf: Auxiliary LaTeX compilation
-------------------------------------------------
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
entering extended mode
This is dvips(k) 5.992 Copyright 2012 Radical Eye Software (www.radicaleye.com)
' TeX output 2012.08.20:0705' -> a-autopp.ps
</home/jasperloy/texlive/texmf/dvips/base/tex.pro>
</home/jasperloy/texlive/texmf/dvips/config/alt-rule.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pstricks.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-algparser.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-tools.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-dots.pro>
</home/jasperloy/texlive/texmf/dvips/base/special.pro>. [1] 
PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.
==> 1 page written on `a-pics.pdf'.
-------------------------------------------------
auto-pst-pdf: End auxiliary LaTeX compilation
-------------------------------------------------
 (/home/jasperloy/texlive/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)))
(/home/jasperloy/texlive/texmf-dist/tex/latex/preview/preview.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/dvips.def)
(/home/jasperloy/texlive/texmf-dist/tex/latex/environ/environ.sty))) (./a.aux)
(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(/home/jasperloy/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
Preview: Fontsize 10pt
Preview: PDFoutput 1
<a-pics.pdf, id=5, page=1, 43.16125pt x 33.12375pt> <use a-pics.pdf, page 1>
[1
Non-PDF special ignored!
Non-PDF special ignored!{/home/jasperloy/texlive/texmf-var/fonts/map/pdftex/upd
map/pdftex.map} <./a-pics.pdf>] (./a.aux)

Package rerunfilecheck Warning: File `a.out' has changed.
(rerunfilecheck)                Rerun to get outlines right
(rerunfilecheck)                or use package `bookmark'.

 )</home/jasperloy/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb
></home/jasperloy/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on a.pdf (1 page, 18591 bytes).
SyncTeX written on a.synctex.gz.
Transcript written on a.log.
Latexmk: References changed.
Latexmk: Log file says output to 'a.pdf'
Rule 'pdflatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
      'a.aux'
      'a.out'
------------
Run number 2 of rule 'pdflatex'
------------
------------
Running 'pdflatex -shell-escape -synctex=1  -recorder  "a.tex"'
------------
Latexmk: applying rule 'pdflatex'...
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
 \write18 enabled.
entering extended mode
(./a.tex
LaTeX2e <2011/06/27>
...
(/home/jasperloy/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/home/jasperloy/texlive/texmf-dist/tex/latex/base/size10.clo))
(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/home/jasperloy/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/home/jasperloy/texlive/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver: hpdftex.

(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
(/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/home/jasperloy/texlive/texmf-dist/tex/latex/pstricks/pstricks.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex
(/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/home/jasperloy/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex)))
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv))
`PSTricks' v2.29  <2012/06/04> (tvz)
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.con))
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex)
(/home/jasperloy/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/color.cfg)
(/home/jasperloy/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def)))
(/home/jasperloy/texlive/texmf-dist/tex/latex/auto-pst-pdf/auto-pst-pdf.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/catchfile.sty)
(./a.w18)) 
-------------------------------------------------
auto-pst-pdf: Auxiliary LaTeX compilation
-------------------------------------------------
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
entering extended mode
This is dvips(k) 5.992 Copyright 2012 Radical Eye Software (www.radicaleye.com)
' TeX output 2012.08.20:0705' -> a-autopp.ps
</home/jasperloy/texlive/texmf/dvips/base/tex.pro>
</home/jasperloy/texlive/texmf/dvips/config/alt-rule.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pstricks.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-algparser.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-tools.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-dots.pro>
</home/jasperloy/texlive/texmf/dvips/base/special.pro>. [1] 
PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.
==> 1 page written on `a-pics.pdf'.
-------------------------------------------------
auto-pst-pdf: End auxiliary LaTeX compilation
-------------------------------------------------
 (/home/jasperloy/texlive/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)))
(/home/jasperloy/texlive/texmf-dist/tex/latex/preview/preview.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/dvips.def)
(/home/jasperloy/texlive/texmf-dist/tex/latex/environ/environ.sty))) (./a.aux)
(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./a.out) (./a.out)
(/home/jasperloy/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
Preview: Fontsize 10pt
Preview: PDFoutput 1
(./a.toc) <a-pics.pdf, id=10, page=1, 43.16125pt x 33.12375pt>
<use a-pics.pdf, page 1> [1
Non-PDF special ignored!
Non-PDF special ignored!{/home/jasperloy/texlive/texmf-var/fonts/map/pdftex/upd
map/pdftex.map} <./a-pics.pdf>] (./a.aux) )</home/jasperloy/texlive/texmf-dist/
fonts/type1/public/amsfonts/cm/cmbx10.pfb></home/jasperloy/texlive/texmf-dist/f
onts/type1/public/amsfonts/cm/cmbx12.pfb></home/jasperloy/texlive/texmf-dist/fo
nts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on a.pdf (1 page, 28614 bytes).
SyncTeX written on a.synctex.gz.
Transcript written on a.log.
Latexmk: Log file says output to 'a.pdf'
Rule 'pdflatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
      'a-pics.pdf'
      'a.toc'
------------
Run number 3 of rule 'pdflatex'
------------
------------
Running 'pdflatex -shell-escape -synctex=1  -recorder  "a.tex"'
------------
Latexmk: applying rule 'pdflatex'...
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
 \write18 enabled.
entering extended mode
(./a.tex
LaTeX2e <2011/06/27>
...
(/home/jasperloy/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/home/jasperloy/texlive/texmf-dist/tex/latex/base/size10.clo))
(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/home/jasperloy/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/home/jasperloy/texlive/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver: hpdftex.

(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
(/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/home/jasperloy/texlive/texmf-dist/tex/latex/pstricks/pstricks.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex
(/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/home/jasperloy/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex)))
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv))
`PSTricks' v2.29  <2012/06/04> (tvz)
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.con))
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex)
(/home/jasperloy/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/color.cfg)
(/home/jasperloy/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def)))
(/home/jasperloy/texlive/texmf-dist/tex/latex/auto-pst-pdf/auto-pst-pdf.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/catchfile.sty)
(./a.w18)) 
-------------------------------------------------
auto-pst-pdf: Auxiliary LaTeX compilation
-------------------------------------------------
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
entering extended mode
This is dvips(k) 5.992 Copyright 2012 Radical Eye Software (www.radicaleye.com)
' TeX output 2012.08.20:0705' -> a-autopp.ps
</home/jasperloy/texlive/texmf/dvips/base/tex.pro>
</home/jasperloy/texlive/texmf/dvips/config/alt-rule.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pstricks.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-algparser.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-tools.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-dots.pro>
</home/jasperloy/texlive/texmf/dvips/base/special.pro>. [1] 
PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.
==> 1 page written on `a-pics.pdf'.
-------------------------------------------------
auto-pst-pdf: End auxiliary LaTeX compilation
-------------------------------------------------
 (/home/jasperloy/texlive/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)))
(/home/jasperloy/texlive/texmf-dist/tex/latex/preview/preview.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/dvips.def)
(/home/jasperloy/texlive/texmf-dist/tex/latex/environ/environ.sty))) (./a.aux)
(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./a.out) (./a.out)
(/home/jasperloy/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
Preview: Fontsize 10pt
Preview: PDFoutput 1
(./a.toc) <a-pics.pdf, id=10, page=1, 43.16125pt x 33.12375pt>
<use a-pics.pdf, page 1> [1
Non-PDF special ignored!
Non-PDF special ignored!{/home/jasperloy/texlive/texmf-var/fonts/map/pdftex/upd
map/pdftex.map} <./a-pics.pdf>] (./a.aux) )</home/jasperloy/texlive/texmf-dist/
fonts/type1/public/amsfonts/cm/cmbx10.pfb></home/jasperloy/texlive/texmf-dist/f
onts/type1/public/amsfonts/cm/cmbx12.pfb></home/jasperloy/texlive/texmf-dist/fo
nts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on a.pdf (1 page, 28617 bytes).
SyncTeX written on a.synctex.gz.
Transcript written on a.log.
Latexmk: Log file says output to 'a.pdf'
Rule 'pdflatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
      'a-pics.pdf'
------------
Run number 4 of rule 'pdflatex'
------------
------------
Running 'pdflatex -shell-escape -synctex=1  -recorder  "a.tex"'
------------
Latexmk: applying rule 'pdflatex'...
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
 \write18 enabled.
entering extended mode
(./a.tex
LaTeX2e <2011/06/27>
...
(/home/jasperloy/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/home/jasperloy/texlive/texmf-dist/tex/latex/base/size10.clo))
(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/home/jasperloy/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/home/jasperloy/texlive/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver: hpdftex.

(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
(/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/home/jasperloy/texlive/texmf-dist/tex/latex/pstricks/pstricks.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex
(/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/home/jasperloy/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex)))
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv))
`PSTricks' v2.29  <2012/06/04> (tvz)
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.con))
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex)
(/home/jasperloy/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/color.cfg)
(/home/jasperloy/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def)))
(/home/jasperloy/texlive/texmf-dist/tex/latex/auto-pst-pdf/auto-pst-pdf.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/catchfile.sty)
(./a.w18)) 
-------------------------------------------------
auto-pst-pdf: Auxiliary LaTeX compilation
-------------------------------------------------
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
entering extended mode
This is dvips(k) 5.992 Copyright 2012 Radical Eye Software (www.radicaleye.com)
' TeX output 2012.08.20:0705' -> a-autopp.ps
</home/jasperloy/texlive/texmf/dvips/base/tex.pro>
</home/jasperloy/texlive/texmf/dvips/config/alt-rule.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pstricks.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-algparser.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-tools.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-dots.pro>
</home/jasperloy/texlive/texmf/dvips/base/special.pro>. [1] 
PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.
==> 1 page written on `a-pics.pdf'.
-------------------------------------------------
auto-pst-pdf: End auxiliary LaTeX compilation
-------------------------------------------------
 (/home/jasperloy/texlive/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)))
(/home/jasperloy/texlive/texmf-dist/tex/latex/preview/preview.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/dvips.def)
(/home/jasperloy/texlive/texmf-dist/tex/latex/environ/environ.sty))) (./a.aux)
(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./a.out) (./a.out)
(/home/jasperloy/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
Preview: Fontsize 10pt
Preview: PDFoutput 1
(./a.toc) <a-pics.pdf, id=10, page=1, 43.16125pt x 33.12375pt>
<use a-pics.pdf, page 1> [1
Non-PDF special ignored!
Non-PDF special ignored!{/home/jasperloy/texlive/texmf-var/fonts/map/pdftex/upd
map/pdftex.map} <./a-pics.pdf>] (./a.aux) )</home/jasperloy/texlive/texmf-dist/
fonts/type1/public/amsfonts/cm/cmbx10.pfb></home/jasperloy/texlive/texmf-dist/f
onts/type1/public/amsfonts/cm/cmbx12.pfb></home/jasperloy/texlive/texmf-dist/fo
nts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on a.pdf (1 page, 28619 bytes).
SyncTeX written on a.synctex.gz.
Transcript written on a.log.
Latexmk: Log file says output to 'a.pdf'
Rule 'pdflatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
      'a-pics.pdf'
------------
Run number 5 of rule 'pdflatex'
------------
------------
Running 'pdflatex -shell-escape -synctex=1  -recorder  "a.tex"'
------------
Latexmk: applying rule 'pdflatex'...
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
 \write18 enabled.
entering extended mode
(./a.tex
LaTeX2e <2011/06/27>
...
(/home/jasperloy/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/home/jasperloy/texlive/texmf-dist/tex/latex/base/size10.clo))
(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/home/jasperloy/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/home/jasperloy/texlive/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver: hpdftex.

(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
(/home/jasperloy/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/home/jasperloy/texlive/texmf-dist/tex/latex/pstricks/pstricks.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.tex
(/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/home/jasperloy/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex)))
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv))
`PSTricks' v2.29  <2012/06/04> (tvz)
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pstricks.con))
(/home/jasperloy/texlive/texmf-dist/tex/generic/pstricks/pst-fp.tex)
(/home/jasperloy/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/color.cfg)
(/home/jasperloy/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def)))
(/home/jasperloy/texlive/texmf-dist/tex/latex/auto-pst-pdf/auto-pst-pdf.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/catchfile.sty)
(./a.w18)) 
-------------------------------------------------
auto-pst-pdf: Auxiliary LaTeX compilation
-------------------------------------------------
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
entering extended mode
This is dvips(k) 5.992 Copyright 2012 Radical Eye Software (www.radicaleye.com)
' TeX output 2012.08.20:0705' -> a-autopp.ps
</home/jasperloy/texlive/texmf/dvips/base/tex.pro>
</home/jasperloy/texlive/texmf/dvips/config/alt-rule.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pstricks.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-algparser.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-tools.pro>
</home/jasperloy/texlive/texmf-dist/dvips/pstricks/pst-dots.pro>
</home/jasperloy/texlive/texmf/dvips/base/special.pro>. [1] 
PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.
==> 1 page written on `a-pics.pdf'.
-------------------------------------------------
auto-pst-pdf: End auxiliary LaTeX compilation
-------------------------------------------------
 (/home/jasperloy/texlive/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)))
(/home/jasperloy/texlive/texmf-dist/tex/latex/preview/preview.sty)
(/home/jasperloy/texlive/texmf-dist/tex/latex/graphics/dvips.def)
(/home/jasperloy/texlive/texmf-dist/tex/latex/environ/environ.sty))) (./a.aux)
(/home/jasperloy/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(/home/jasperloy/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./a.out) (./a.out)
(/home/jasperloy/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
Preview: Fontsize 10pt
Preview: PDFoutput 1
(./a.toc) <a-pics.pdf, id=10, page=1, 43.16125pt x 33.12375pt>
<use a-pics.pdf, page 1> [1
Non-PDF special ignored!
Non-PDF special ignored!{/home/jasperloy/texlive/texmf-var/fonts/map/pdftex/upd
map/pdftex.map} <./a-pics.pdf>] (./a.aux) )</home/jasperloy/texlive/texmf-dist/
fonts/type1/public/amsfonts/cm/cmbx10.pfb></home/jasperloy/texlive/texmf-dist/f
onts/type1/public/amsfonts/cm/cmbx12.pfb></home/jasperloy/texlive/texmf-dist/fo
nts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on a.pdf (1 page, 28613 bytes).
SyncTeX written on a.synctex.gz.
Transcript written on a.log.
Latexmk: Log file says output to 'a.pdf'
Rule 'pdflatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
      'a-pics.pdf'
Latexmk: Maximum runs of pdflatex reached without getting stable files
     Use the -f option to force complete processing.
Latexmk: Did not finish processing file:
   'pdflatex' needed too many passes
Latexmk: Use the -f option to force complete processing.
Latexmk: applying rule 'pdflatex'...
Latexmk: Errors, so I did not complete making targets

Note the output has been truncated to fit maximum question length.

I suspect this is because hyperref makes latexmk do extra checks, which then detects that new pictures are generated by auto-pst-pdf with each run, so although the end result may be right, the error messages are given. Is there any way to fix this?

share|improve this question
    
what happens if you load hyperref last? –  cmhughes Aug 20 '12 at 0:22
    
Is it just a question of reaching the maximum number of runs? What if you increase the $max_repeat parameter, eg through latexmk -e '$max_repeat = 20;'? –  cyberSingularity Aug 20 '12 at 9:04
    
Ahh, yes, I see, sorry. Every run regenerates the a-pics.pdf, and latexmk then sees that it has changed and wants to do it again! I don't think hyperref is relevant here? I'll have a look and see if latexmk lets you specify files that can be safely ignored in the re-run checks. –  cyberSingularity Aug 20 '12 at 11:47
add comment

1 Answer 1

up vote 14 down vote accepted

The reason latexmk keeps re-running is because the generated a-pics.pdf file keeps changing on every run. There are lines in the PDF file with creation dates, modification dates and IDs that keep changing. There are two possible solutions.

  1. Tell latexmk to ignore a-pics.pdf completely from its dependency database. I do not know how to do this.
  2. Tell latexmk not to consider changes to the creation date etc to indicate that the file itself has changed. This you can do as follows: get latexmk to execute the perl code $hash_calc_ignore_pattern{'pdf'} = '^/(CreationDate|ModDate|ID) ';. For example, on the command line for your example:

    latexmk -e "\$hash_calc_ignore_pattern{'pdf'} = '^/(CreationDate|ModDate|ID) ';" -pdf -pdflatex="pdflatex --shell-escape  %O  %S" a
    

    (where a is the name of your job).

    Alternatively, you could add this to a .latexmkrc resource file.

Note that method 2 will result in one unnecessary re-run, but at least it should no longer cause an infinite loop!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.