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?
Hi David, unless Hans releases some magic, there is no way than to have different labels in both files. Willi David Arnold wrote:
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? _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Willi Egger wrote:
Hi David,
unless Hans releases some magic, there is no way than to have different labels in both files.
we can consider adding a rl:collectionsomename element so that one has to use somename:somelabel to locate a graphic Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans et al, I'm afraid I don't know enough xml to understand this. How would something lik this change with your suggested strategy? <figure> <file>sec4twoa.png</file> <label>sec4twoa</label> <copyright>College of the Redwoods Mathematics Department</copyright> <comment></comment> </figure> Here's why I asked. You have a team working on Chapter 5, which has sections 1-7. Let's say each person volunteers to write a section. Unless they agree on a naming strategy beforehand, there could be duplicate names in the figure library files. And then you could have several chapters with more sections. On May 3, 2006, at 1:27 PM, Hans Hagen wrote:
Willi Egger wrote:
Hi David,
unless Hans releases some magic, there is no way than to have different labels in both files.
we can consider adding a rl:collectionsomename element so that one has to use somename:somelabel to locate a graphic
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
participants (3)
-
David Arnold
-
Hans Hagen
-
Willi Egger