From owner-freebsd-ports@FreeBSD.ORG Tue Apr 18 16:18:10 2006 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB05716A40B for ; Tue, 18 Apr 2006 16:18:10 +0000 (UTC) (envelope-from dis5149@cs.rit.edu) Received: from pony-express.cs.rit.edu (pony-express.cs.rit.edu [129.21.30.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6AE843D49 for ; Tue, 18 Apr 2006 16:18:02 +0000 (GMT) (envelope-from dis5149@cs.rit.edu) Received: (qmail 20347 invoked by uid 56003); 18 Apr 2006 16:18:01 -0000 Received: from 67.187.106.106 by pony-express (envelope-from , uid 20003) with qmail-scanner-1.25st (clamdscan: 0.87/1184. spamassassin: 3.0.3. perlscan: 1.25st. Clear:RC:1(67.187.106.106):SA:0(-1.1/5.0):. Processed in 0.74258 secs); 18 Apr 2006 16:18:01 -0000 X-Spam-Status: No, hits=-1.1 required=5.0 X-Spam-Report: SA TESTS -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.3 MAILTO_TO_SPAM_ADDR URI: Includes a link to a likely spammer email Received: from c-67-187-106-106.hsd1.tx.comcast.net (HELO ?192.168.1.25?) (dis5149@67.187.106.106) by mailhost.cs.rit.edu with ESMTPA; 18 Apr 2006 16:18:00 -0000 Message-ID: <44451137.1060306@cs.rit.edu> Date: Tue, 18 Apr 2006 11:17:59 -0500 From: Dmitriy Shnayder User-Agent: Thunderbird 1.5 (X11/20060403) MIME-Version: 1.0 To: Fernan Aguero References: <444464EB.5020702@cs.rit.edu> <20060418122631.GA80953@iib.unsam.edu.ar> In-Reply-To: <20060418122631.GA80953@iib.unsam.edu.ar> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org Subject: Re: FreeBSD Port: latexmk-307a X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2006 16:18:11 -0000 Fernan Aguero wrote: > +----[ Dmitriy Shnayder (18.Apr.2006 01:06): > | > | When I use the algorithms LaTeX package [1] in a LaTeX document and run > | latexmk to generate a PDF file, the program works. If I place a list of > | algorithms into my document's table of contents, this generates a .loa > | file. When I then tell latexmk to clean up files with "latexmk -c" or > | "latexmk -C" this file remains. > > Dmitriy, > > first of all I would say that this is not a question that is > specific to the FreeBSD port but to latexmk in general. So > you should try and ask the author of the software or a > latexmk specific forum. > > Nevertheless, let me say that this IMO is the right thing to > do. latexmk cannot and should not care about the myriad of > latex packages available on CTAN and try to include the > files they might generate in its cleanup routines. > > That's why the author included the ability to configure > latexmk using rc files. Read the man page. > > | I would like you to change latexmk and introduce a simple fix for this > | problem. In the cleanup_basic subroutine, add the following line: > | > | unlink("$root_filename.loa"); > > This is not necessary, as you can set either > > [ I have not tested this. Caveat emptor ] > $clean_ext = ".loa" or > $clean_full_ext = ".loa" > > in your .latexmkrc file and latexmk will then unlink them as > necessary. Again, this is all in the documentation of > latexmk. > > Hope this helps, > > Fernan Fernan, Thank you for your help. I read the man page and created a .latexmkrc file as you suggested, and now the file goes away when I type "latexmk -c". The right configuration file syntax is $clean_ext = "loa" -- Dmitriy Shnayder