Re: [racket] Scribble secref unlinked in PDF output

2013-12-06 Thread Sam Tobin-Hochstadt
I just spent a small amount of time looking into doing this for bibliography links (generated by `scriblib/autobib`), but it seems like it's harder. In particular (a) there aren't any macros controlling this in the LaTeX output, and (b) I can't find the rendering code for `link-element` at all. Th

Re: [racket] Scribble secref unlinked in PDF output

2013-12-05 Thread Tim Jervis
Thanks - works just fine! On 5 Dec 2013, at 14:33, Matthew Flatt wrote: > Scribble runs Latex multiple times to produce PDF. > > The problem is that \label{} was being used in a context where > \refstepcounter{} wasn't used to set the target of the label. (Thanks > to Robby for sending me on th

Re: [racket] Scribble secref unlinked in PDF output

2013-12-05 Thread Matthew Flatt
Scribble runs Latex multiple times to produce PDF. The problem is that \label{} was being used in a context where \refstepcounter{} wasn't used to set the target of the label. (Thanks to Robby for sending me on the right path.) I've pushed a repair. At Thu, 5 Dec 2013 09:10:30 -0500, Sam Tobin-H

Re: [racket] Scribble secref unlinked in PDF output

2013-12-05 Thread Sam Tobin-Hochstadt
Could this be a situation where TeX needs to be run multiple times to get the correct result? I believe that Scribble currently runs TeX only once. Sam On Thu, Dec 5, 2013 at 8:45 AM, Tim Jervis wrote: > Hi Matthew, > > Perhaps it is related to how figures are moved about during rendering. > >

Re: [racket] Scribble secref unlinked in PDF output

2013-12-05 Thread Tim Jervis
Hi Matthew, Perhaps it is related to how figures are moved about during rendering. I'm attaching an example source file, test.scrbl, and the PDF output after running "scribble --pdf test.scrbl". test.scrbl Description: Binary data test.pdf Description: Adobe PDF document When I open the

Re: [racket] Scribble secref unlinked in PDF output

2013-12-05 Thread Matthew Flatt
I wonder whether it's a limitation of \hyperref and figures. When the link goes to the wrong place, does it go to the place where the figure would be in the source of the document, as opposed to where it's moved to in the output? At Thu, 5 Dec 2013 09:24:53 +, Tim Jervis wrote: > Thanks Matthe

Re: [racket] Scribble secref unlinked in PDF output

2013-12-05 Thread Tim Jervis
Thanks Matthew. As it happens I did get so far as to adjust the \FigureRef macro as you have in your change, but the results on some of my PDF outputs have the links going to the wrong pages. For example, I have a PDF with a link on page 5 of 115 to a figure on page 6 of 116. However, a hover o

Re: [racket] Scribble secref unlinked in PDF output

2013-12-04 Thread Matthew Flatt
Yes, it's about the same, where it's just a matter of adjusting the \FigureRef Latex macro. I've pushed the change. At Thu, 5 Dec 2013 01:50:53 +, Tim Jervis wrote: > Dear Matthew, > > Is there a similarly easy change to tweak the Figure package to do the same > thing for references to figu

Re: [racket] Scribble secref unlinked in PDF output

2013-12-04 Thread Tim Jervis
Dear Matthew, Is there a similarly easy change to tweak the Figure package to do the same thing for references to figures? I've started to hack away but I have not got to the bottom of decoding the link mechanism. Kind regards, Tim On 3 Nov 2013, at 17:11, Matthew Flatt wrote: > I've cha

Re: [racket] Scribble secref unlinked in PDF output

2013-11-04 Thread Tim Jervis
Thanks Matthew, works great. Kind regards, Tim On 3 Nov 2013, at 17:11, Matthew Flatt wrote: > I've change Scribble to hyperlink section references by default in > LaTeX/PDF output. > > The change turned out to be easy, due to improvements back in July that > deliver a LaTeX-level label to macr

Re: [racket] Scribble secref unlinked in PDF output

2013-11-03 Thread Matthew Flatt
I've change Scribble to hyperlink section references by default in LaTeX/PDF output. The change turned out to be easy, due to improvements back in July that deliver a LaTeX-level label to macros that render section links (when the referenced section is within the same document). At Wed, 23 Oct 20