Id's & crosslinks

8 views
Skip to first unread message

Yves Hanoulle

unread,
Apr 19, 2019, 7:20:16 AM4/19/19
to lea...@googlegroups.com
I'm confused about Id's & crosslinks

That used to work with me, yet when I recompile my bbook, it has now stopped working..

I'm trying to follow what is written here

I have [een lijst met materiaal](#materiaallijst)
as crosslink
And this as ID
# [Materiaallijst]{#materiaallijst} >> this now does not generate an error when creating the preview, yet it does not work (this used to work) when I use
# [Materiaallijst]{id: #materiaallijst}
I do get an error that the id is not defined, and it also does not work.

I assume it's a stupid mistake, I don't see it...
--
Yves Hanoulle - 0476 43 38 32

        Johanna Rothman

        unread,
        Apr 19, 2019, 12:55:19 PM4/19/19
        to lea...@googlegroups.com
        Yves, 

        Here’s what I do, first for cross links and then ids:

        1. Define the cross link like this:

         ## Title of link   {#idoftitle}

        2. When I want to use it, I use it like this:
         blah blah [Title of link](#idoftitle)

        I use ids  for images.

        1. Define the id.:
        {id=name-of-image}
        ![Name the image so people can read it](path to image)

        2. When I want to use it, I use it like this:

        blah blah blah [Name the image so people can read it](#name-of-image)

        I found the documentation unclear. I discovered what worked for me. I wonder if Ted Young helped me at the time? I no longer remember.

        Johanna

        --
        You received this message because you are subscribed to the Google Groups "leanpub" group.
        To unsubscribe from this group and stop receiving emails from it, send an email to leanpub+u...@googlegroups.com.
        To post to this group, send email to lea...@googlegroups.com.
        Visit this group at https://groups.google.com/group/leanpub.
        To view this discussion on the web visit https://groups.google.com/d/msgid/leanpub/CAJWRDbrHM9E0sctWprvpG5jN-XnZT%2BZf92g%3DMm5DT5HdFCY2XA%40mail.gmail.com.
        For more options, visit https://groups.google.com/d/optout.

        --
        Rothman Consulting Group, Inc.     781-641-4046
        Speaker, Author, Consultant - Managing Product Development
        ==========================================
        New book:  From Chaos to Successful Distributed Agile Teams
        Pragmatic Manager newsletter: https://www.jrothman.com/pragmaticmanager/


        Yves Hanoulle

        unread,
        Apr 20, 2019, 9:25:27 AM4/20/19
        to lea...@googlegroups.com
        yep I use 1 & 2 also like that
        it no longer works on my preview pdf :-(  

        Op vr 19 apr. 2019 om 18:55 schreef Johanna Rothman <j...@jrothman.com>:

        For more options, visit https://groups.google.com/d/optout.


        --

        -- 

        Yves Hanoulle 
        Current community projects that need YOUR help:
          • CoachRetreat in your country >> mail me

          Len Epp

          unread,
          Apr 30, 2019, 5:40:09 PM4/30/19
          to lea...@googlegroups.com
          Hi Yves,

          I think the issue here is that a crosslink for a chapter heading is a matter of "Defining an id on a Block Element" rather than "Defining an id on a Span Element".

          So, for a crosslink to a chapter heading, instead of doing something like this:

          # Materiaallijst {#materiaallijst}

          ... you do this:

          {#materiaallijst}
          # Materiaallijst

          The crosslink to the chapter heading, if it were in a sentence, would look like this:

          Here is [a crosslink](#materiaallijst).

          I just tried this exact way of doing things in a test copy of your manuscript and it worked.

          Sorry this isn't clearer! We'll make a Help Center article that will help authors who run into this issue in the future: http://help.leanpub.com/author-help/crosslinks-to-chapter-headings-arent-working-in-my-markua-book-what-should-i-be-doing.

          Kind Regards,

          Len


          For more options, visit https://groups.google.com/d/optout.


          --
          Len Epp
          Co-founder, Leanpub
          @lenepp

          Yves Hanoulle

          unread,
          Apr 30, 2019, 5:53:15 PM4/30/19
          to lea...@googlegroups.com
          super
          that is indeed the trick. 
          It's fixed now. I never tried that.
          thanks Len
          y

          Op di 30 apr. 2019 om 23:40 schreef Len Epp <l...@leanpub.com>:

          For more options, visit https://groups.google.com/d/optout.
          Reply all
          Reply to author
          Forward
          0 new messages