Bug#813855: rubber: doesn't generate PDF figures when elsarticle.cls is in the local directory

2018-08-02 Thread Nicolas Boulenguez
Package: rubber
Version: 1.4-3
Followup-For: Bug #813855
Control: retitle -1 graphicx module confused if required by a local class

Here is a small reproducer.

The graphicx module is registered once inside c.cls.
It thinks that the main document is c.cls,
and does not manage to guess if foo.eps or foo.pdf is wanted.

foo.fig: (any fig file)
c.cls:
  \LoadClass{article}
  \RequirePackage{graphicx}
doc.tex:
  \documentclass{c}
  \usepackage{graphicx}
  \begin{document}
  \includegraphics{foo}
  \end{document}



Bug#813855: rubber: doesn't generate PDF figures when elsarticle.cls is in the local directory

2016-02-08 Thread Brice Goglin


Le 08/02/2016 10:04, Preuße, Hilmar a écrit :
> 1. Is there specific reason to have a local copy, instead of using
> elsarticle.cls from texlive-publishers?

Hello

I didn't know it was available from a package :) Anyway I tend to always
pick up the latest version online anyway so that editors cannot complain
of a wrong version, and also because I want to save the working versions
in case I have to rebuild 5 years later.

> 2. Is this a regression? i.e. did that work in an earlier version?
>

I can't be sure but I don't remember having such problem last time I
used elsarticle.cls back in 2013.

Brice



Bug#813855: rubber: doesn't generate PDF figures when elsarticle.cls is in the local directory

2016-02-08 Thread Preuße
On 06.02.2016 01:25, Brice Goglin wrote:

Hi,

> When writing a paper that uses elsarticle.cls, rubber doesn't generate
> dependencies (PDF figures passed to includegraphics) when elsarticle.cls
> is in the same directory.
> If elsarticle.cls is moved to another directory and TEXINPUTS points there,
> things work fine.
> 
Just a few questions:

1. Is there specific reason to have a local copy, instead of using
elsarticle.cls from texlive-publishers?
2. Is this a regression? i.e. did that work in an earlier version?

Hilmar
-- 
http://www.hilmar-preusse.de.vu/   #206401 http://counter.li.org



Bug#813855: rubber: doesn't generate PDF figures when elsarticle.cls is in the local directory

2016-02-05 Thread Brice Goglin
Package: rubber
Version: 1.4-2
Severity: normal

Hello,

When writing a paper that uses elsarticle.cls, rubber doesn't generate
dependencies (PDF figures passed to includegraphics) when elsarticle.cls
is in the same directory.
If elsarticle.cls is moved to another directory and TEXINPUTS points there,
things work fine.

If this is a feature, it might be good to have a way to avoid it.
Assuming rubber parses elsarticle.cls when it finds it, we may want to
have a way to tell rubber to not parse it.

I am attaching a small example which fails:
$ tar xfj els.tar.bz2
$ cd els 
$ rubber -dv article.tex 
compiling article.tex...
executing: pdflatex \nonstopmode \input{article.tex}
There were errors compiling article.aux.
article.tex:7: File `foo' not found.
article.tex:7: leading text: \includegraphics{foo}

Now, if I move the cls away, it works:
$ mv elsarticle.cls ..
$ TEXINPUTS=..: rubber -dv article.tex  
running: fig2dev -L pdf foo.fig foo.pdf...
compiling article.tex...
executing: pdflatex \nonstopmode \input{article.tex}
compiling article.tex...
executing: pdflatex \nonstopmode \input{article.tex}

In case it matters, if I don't set TEXINPUTS, foo.pdf is generated
before latex fails because it doesn't find elsarticle.cls.

thanks
Brice




-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 'unstable'), 
(500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages rubber depends on:
pn  python:any  
ii  texlive-latex-base  2015.20151225-1

rubber recommends no packages.

Versions of packages rubber suggests:
ii  imagemagick8:6.8.9.9-6+b1
pn  sam2p  
ii  texlive-binaries   2015.20150524.37493-7+b1
ii  texlive-extra-utils2015.20151225-2
ii  texlive-latex-extra2015.20151225-2
ii  texlive-latex-recommended  2015.20151225-1
pn  texlive-omega  
ii  texlive-pictures   2015.20151225-1
ii  transfig   1:3.2.5.e-4

-- no debconf information


els.tar.bz2
Description: BZip2 compressed data