ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Duplicate names in figure libraries
@ 2006-05-02  4:28 David Arnold
  2006-05-03 16:16 ` Willi Egger
  0 siblings, 1 reply; 4+ messages in thread
From: David Arnold @ 2006-05-02  4:28 UTC (permalink / raw)


Hans et al,

I have two figure libraries, figlibSection1.xml and  
figlibSection2.xml. In the first, I have:

<figure>
<file>sec1rat1.png</file>
<label>rat1</label>
<copyright>College of the Redwoods Mathematics Department</copyright>
<comment></comment>
</figure>

In the second, I have:

<figure>
<file>section2figs-mpgraph.1</file>
<label>rat1</label>
<copyright>College of the Redwoods Mathematics Department</copyright>
<comment></comment>
</figure>

Now, section1.tex does:

\usefigurebase[figures/figlibSection1]

And later:

\startbuffer[figure]
\startcombination[3*1]
   {\externalfigure[rat1][width=.2\textwidth]}{(a)}
   {\externalfigure[rat2][width=.2\textwidth]}{(b)}
   {\externalfigure[rat3][width=.2\textwidth]}{(c)}
\stopcombination
\stopbuffer

\placefigure
[][fig:rat]
{The calculator attempts to draw a continuous function when it  
shouldn't.}
{\getbuffer[figure]}


Section2.tex does:

\usefigurebase[figures/figlibSection2]

And later:

\placefigure
[][fig:rat1]
{The numerator is zero at $x=-2$. This is an $x$-intercept of the  
graph. The denominator is zero at $x=3$. This is a vertical asymptote  
of the graph.}
{\externalfigure[rat1]}

All is fine if I compile section1.tex and section2.tex separately.  
But I have chapter6.tex with:

\startproduct chapter6

\project book

\startbodymatter

\setupheadnumber[chapter][5]

\chapter[chap:6]{Rational Functions}

\component chapter6/section1 %Introducing Rational Functions

\component chapter6/section2  %Zeros and Asymptotes

\stopbodymatter

\stopproduct

When I compile this, the rat1 in section2.tex uses the rat1 meant for  
section1.tex instead. Any I can fix this other than giving unique  
names to everything?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-05-04  6:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-02  4:28 Duplicate names in figure libraries David Arnold
2006-05-03 16:16 ` Willi Egger
2006-05-03 20:27   ` Hans Hagen
2006-05-04  6:19     ` David Arnold

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).