Ah, I understand now. I remember trying to do this as well but I'm not
sure it's possible.

I just tried manually playing around a bit with scribble structs but
couldnt figure it out. Best I could do was redirecting a seclink, or
changing the toc contents of an element.

But there doesnt seem to be any way to change the toc contents of a
part (someone correct me if I'm wrong).

Here's my code in case it's helpful.

#lang scribble/manual
@(require scribble/core
          scribble/html-properties
          net/url)
@title{asdf}
@section[#:style (make-style #f (list (make-part-link-redirect
(string->url "http://google.com";)))) #:tag "a"]{A}
@section{@seclink["a"]{link to sec A (goes to google)}}

@(make-toc-target2-element #f "stuff" '(element "stf")
@hyperlink["http://google.com"]{link to "stuff" (try to redirect to
google but doesnt work)"})

On Sat, Mar 4, 2017 at 2:38 PM, David Van Horn <dvanh...@cs.umd.edu> wrote:
> The latex analogy of what I'd like is something like:
>
> \addcontentsline{toc}{section}{\href{google.com}{The Google}}
>
> On Sat, Mar 4, 2017 at 2:30 PM, David Van Horn <dvanh...@cs.umd.edu> wrote:
>> Thanks, this does make the section heading a link, but in the table of
>> contents or in the left hand navigation bar, the link is to the
>> (empty) section, not the URL.  What I'd like is for the navigation
>> links to go to the URL.
>>
>> David
>>
>>
>> On Sat, Mar 4, 2017 at 2:06 PM, Stephen Chang <stch...@ccs.neu.edu> wrote:
>>> Does `hyperlink` do what you want?
>>>
>>> eg
>>>
>>> @section{@hyperlink["http://google.com"]{The Google}}
>>>
>>> On Sat, Mar 4, 2017 at 1:49 PM, David Van Horn <dvanh...@cs.umd.edu> wrote:
>>>> I'm using scribble to make a web page and I'd like a section-like
>>>> heading that is just a link to an external URL, but I don't see how to
>>>> do this.  Is it possible?
>>>>
>>>> David
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google Groups 
>>>> "Racket Users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>>> email to racket-users+unsubscr...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to