5

I'm wondering where to find updated patch files, in particular lstpatch.sty verson 1.4?

It seems many packages doesn't come with the file, and my updated TexShop keep asking for the latest version (1.4).

11
  • 3
    TeXShop is your editor, so it doesn't really ask for any files. So what do you mean by saying that TeXShop keeps asking for it? Is there a message in the log or the console? The listings package only loads lstpatch.sty if the file exists; I don't think there is a lstpatch.sty. It will only exist for small patches in between versions of the package. If there are no such patches, the file won't be present.
    – Alan Munn
    Apr 10, 2011 at 14:48
  • The latest known lstpatch.sty from the original author is of version 1.3b and is available here: atscire.de/index.php?nav=download&file=lstpatch.sty. But it is already in the current listings.sty. this one has the version 1.4 and is available from CTAN.
    – user2478
    Apr 10, 2011 at 15:10
  • @Herbert so with an updated TeXLive you don't need the 1.3b file at all.
    – Alan Munn
    Apr 10, 2011 at 15:20
  • I use the 'lstpatch.sty' as an external file called by 'my.cls' to check bugs. I saw the presence of a similar file in my local directory '/usr/..listings.cfg))(./lstpatch.sty' that comes with TexLive. The message from the console is that This is a patch for listings 1.3, but you're using version 1.4. Patch is not loaded. Since TexLive updates regularly, do you think that it loaded the latest file that is now conflicting with my externally called file? I just realised that there is no harm in the conflict as the latest file is chosen.
    – BrettHarry
    Apr 10, 2011 at 15:33
  • @Alan, I tend to agree with Herbert.
    – BrettHarry
    Apr 10, 2011 at 15:36

1 Answer 1

3

The listings package only loads lstpatch.sty if the file exists; it will only exist for small patches in between versions of the package. If there are no such patches, the file won't be present. With the current version of listings (1.4 at time of this answer) (which, since you're using a Mac I assume you have as part of the MacTeX distribution) you don't need lstpatch.sty v. 1.3b. If your class file is loading it, it's doing it incorrectly; it should load it with \InputIfFileExists, since it is only needed when there are interim patches relative to the current version.

(By the way, TeXShop is an editor, so it doesn't really "ask" for any files; it just reports errors or warnings from the latex compilation itself.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .