From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Subject: Re: figure directory is sort of searched
Date: Tue, 23 May 2006 18:21:01 +0100 [thread overview]
Message-ID: <E1FiaZ3-00089p-00@skye.ra.phy.cam.ac.uk> (raw)
In-Reply-To: Your message of "Sat, 20 May 2006 01:07:29 EDT." <E1FhJgX-0004wl-4q@approximate.corpus.cam.ac.uk>
> The figure searching code gets confused if a file of the same
> basename (but in a different directory) has already been loaded.
Looking a bit into this, it seems that the decision about whether a
figure is already loaded is made in core-fig.tex, in
\def\calculateexternalfigure[#1][#2][#3][#4][#5][#6]%
...
\ifcase\figurestatus
\let\@@efframe\v!on
\let\@@efobject\v!no
\showmessage\m!figures1\@@effilename
\or
\showmessage\m!figures2\@@effullname
\or
\showmessage\m!figures3{\@@effullname,\@@eflenttype}%
\or
\showmessage\m!figures4\@@effullname
\or
\showmessage\m!figures5{\@@effullname,\@@efloadname}%
\or % no message
\doifnot\@@efsymbol\v!yes{\showmessage\m!figures8\@@effullname}%
\fi
...
The "no message" comment suggests that when \figurestatus isn't set,
the message shown is figures8, which is
8: figureobject -- is reused
But I couldn't figure out who sets \figurestatus and where the
judgement of 'already loaded' is made. The comment at the beginning
of the above \def ("this whole mess needs a clean up anyway") scared
me away :-)
-Sanjoy
`Never underestimate the evil of which men of power are capable.'
--Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
next prev parent reply other threads:[~2006-05-23 17:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-20 5:07 Sanjoy Mahajan
2006-05-23 17:21 ` Sanjoy Mahajan [this message]
2006-08-15 3:50 Sanjoy Mahajan
2006-08-15 8:20 ` Taco Hoekwater
2006-08-15 17:38 ` Sanjoy Mahajan
2006-08-16 17:02 ` Mojca Miklavec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1FiaZ3-00089p-00@skye.ra.phy.cam.ac.uk \
--to=sanjoy@mrao.cam.ac.uk \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).