yochju / latex-makefile

Automatically exported from code.google.com/p/latex-makefile
Other
0 stars 0 forks source link

Delete head.tmp and body.tmp #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
dvips can generate temporary files head.tmp and body.tmp. I'm not sure but
I think they are created only if there are hyperlinks involved. Anyway,
both of them need to be removed together with the temporaries.

Original issue reported on code.google.com by fdemes...@gmail.com on 8 Nov 2009 at 10:16

GoogleCodeExporter commented 9 years ago
I'd be glad to include this, but I'd be even happier if I could reproduce it 
first :)  Do you 
have a minimal example that causes these files to be generated?

Original comment by shiblon on 12 Nov 2009 at 1:58

GoogleCodeExporter commented 9 years ago
Ok, mmh, it looks like I have difficulties with reproducing it with the current
version of the Makefile since you removed the -z option from dvips since I last
updated this project. Yet, I still think these files should be removed since 
they are
produced if TeX users change the dvips options or run dvips by hand.

The code of test.tex is below.

$ make test.dvi
(...)
$ dvips -z test.dvi
This is dvips(k) 5.97 Copyright 2008 Radical Eye Software (www.radicaleye.com)
' TeX output 2009.11.12:0845' -> test.ps
</usr/local/texlive/2008/texmf/dvips/base/tex.pro>
</usr/local/texlive/2008/texmf/dvips/base/texps.pro>
</usr/local/texlive/2008/texmf/dvips/base/special.pro>
</usr/local/texlive/2008/texmf/dvips/base/hps.pro>.
</usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr10.pfb>
</usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmbx12.pfb>[1]
<./head.tmp><./body.tmp>

----------------------------------------------------------
\documentclass{article}
\usepackage{hyperref}

\begin{document}
\section{a}
\label{mysec}
\ref{mysec}
\end{document}

Original comment by fdemes...@gmail.com on 12 Nov 2009 at 7:47

GoogleCodeExporter commented 9 years ago
I can see that it would be annoying to have them around, so I'm looking for an 
opinion, 
now.  How often would you guess this is going to bite someone?  Are there 
common use 
cases for changing the dvips parameters manually to cause these files to be 
generated?

Original comment by shiblon on 15 Nov 2009 at 3:28

GoogleCodeExporter commented 9 years ago
These are temp file by nature (body.tmp and head.tmp). I think it cannot really 
hurt
anybody to remove them, they're temporaries dammit :)

Now I don't remember how and when these files got generated in my directory but 
I
swear that I didn't look for it to happen (typically I didn't run dvips -z), it 
was
produced as a byproduct of something else either in the Makefile (earlier 
versions)
or something like pdflatex.

Also, note that it is fairly common in other latex makefiles:
http://www.google.fr/search?hl=en&safe=off&client=firefox-a&rls=org.mozilla%3Aen
-US%3Aofficial&hs=Ct2&q=body.tmp+head.tmp+latex&btnG=Search&aq=f&oq=

Original comment by fdemes...@gmail.com on 15 Nov 2009 at 4:14

GoogleCodeExporter commented 9 years ago
Check out r9646769d9844 and let me know if that does it for you :)

Original comment by shiblon on 15 Nov 2009 at 4:35

GoogleCodeExporter commented 9 years ago
Verified, works perfectly.

Original comment by fdemes...@gmail.com on 15 Nov 2009 at 5:09

GoogleCodeExporter commented 9 years ago
Marking bug verified.  I'll upload a new version once another blocking issue 
has been 
addressed.  Meanwhile, you can just use the revision referenced above :)

Original comment by shiblon on 17 Nov 2009 at 6:01