Hi,
I'm not sure if this is a little bug, or if I just don't understand something. Either way I'd love to be enlightened :-)
I'm using PreText 2.30.2 on Ubuntu Linux and I have the following in my publication.ptx: <cross-references knowled="cross-page" />
I believe that in html this setting causes an <xref> to generate a link if the referenced object is "close by" and a knowl if it is "far away." This has been my consistent experience until this evening. It appears when I put an <xref> into an <introduction> a knowl will be emitted regardless of how close the referenced object is. Here is some sample output generated by the MWE.ptx at the bottom of this note. Notice that a knowl has been generated even though Theorem 1.0.1 is immediately above the <xref>.
If I kill the <introduction> and put the <xref> in a section then I get the following output. Notice that I now have the link I was expecting.
Like I said, I dunno if this is a bug or just a lack of understanding on my part but I'd like to know either way. If it helps here is the link to the location in my real analysis book where I spotted the issue and from whence I distilled the MWE below: https://ecb5.github.io/SecondEd2/BackToFourier.html
-- Bud
<?xml version="1.0" encoding="UTF-8" ?>
<pretext xmlns:xi="http://www.w3.org/2001/XInclude"
xml:lang="en-US">
<book xml:id="ASORA">
<title>
book
</title>
<chapter xmlns:xi="http://www.w3.org/2001/XInclude"
xml:id="BackToFourier">
<title>Back to the Real Numbers</title>
<!-- <introduction> -->
<!-- <section> -->
<!-- <title> -->
<!-- A section -->
<!-- </title> -->
<introduction xml:id="SECTIONRiseSetTheory">
<theorem xml:id="thm_Cantor_1870">
<title>Cantor, (1870)</title>
<idx>
<h>Cantor, Georg</h>
<h> uniqueness of Fourier series</h>
<h>second theorem</h></idx>
<idx>
<h>Fourier Series</h>
<h>Cantor<rsq/>s second theorem on
uniqueness</h>
</idx>
<statement>
<p>
If the trigonometric series
<me>
\sum_{n=0}^\infty\left[c_n\cos (2n\pi x)+d_n\sin
(2n\pi x)\right] = 0
</me>,
for all <m>x\in\RR</m> then all of its
coefficients vanish.
</p>
</statement>
</theorem>
<p>
He then generalized <xref
ref="thm_Cantor_1870"></xref> as
follows:
</p>
</introduction>
<!-- </section> -->
<section>
<title>
Another section
</title>
<p>
another section
</p>
</section>
</chapter>
</book>
</pretext>
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/MTAwMDAzOC5iZWV6ZXI.1764174061%40pnsh.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/MTAwMDA0Mi5iZWV6ZXI.1764190182%40pnsh.
Hi Rob,
The conversation may have moved beyond this but just in case not . . .
At <chunking level="2" /> I get this output:
At
At <chunking level="1" /> I get this:
I hope this is useful.
Rob, You seemed to suggest that my usage of <introduction> is inconsistent with your intentions. Can you elaborate? It might be that my incomplete understanding is the real culprit here.
Also, could someone explain what a chunking level is as if I'm 8 years old? The name is obviously descriptive and I think I have a sense of the meaning, but something more precise would probably be helpful.
Thanks,
-- Bud
I also get the output I expect with <chunking level="2"/>.
I assumed that was the default (dunno why) but apparently not, eh?
-- Bud
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/a3990b17-1353-4c30-9be0-ffd61cbc5f48%40gmail.com.
As expected. Thanks Andrew.
Here's another datum on this topic: When the <xref> is inside an <introduction> and <chunking level="2" /> is set explicitly, everything works as expected. I get a link to the theorem, but when I comment out <chunking level="2" /> in publication.ptx, and let the default behavior take over then I get a knowl.
Here's the weird part: This is only true in the complete book. I can't replicate it in the MWE I distilled from the book.
Obviously this fixes my immediate problem, but if it would be useful for me to distill out another MWE, one that preserves this behavior, I'd be happy to do that. Just let me know.
-- Bud
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/CACm44N_6g_4PQ3KeExLLxtAxrPA%2BwJ%2BrstbjDBULHN1wVdzLdw%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/0e7bd5fb-74d0-493c-a467-09d5f987c20d%40gmail.com.