Skip to content

Error in reference linking of code snippet #2085

@kp992

Description

@kp992

Description

In this section of the lecture, the link hovering shows the correct lecture code snippet in the preview. But when I click on the link, it does not take me back to the referred snippet.

Image

I also see this error while building the pdf of the book:

rror: label `<firstloopprog>` does not exist in the document

    ┌─ _build/temp/mystiKB1Q8/quantecon-lecture-python-programming-python-by-example.typ:249:40
    │
249 │ Now let's consider the `for` loop from #link(<firstloopprog>)[the program above], which was
    │                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: label `<firstloopprog>` does not exist in the document
    ┌─ _build/temp/mystiKB1Q8/quantecon-lecture-python-programming-python-by-example.typ:311:52
    │
311 │ But, for the purpose of illustration, let's modify #link(<firstloopprog

Proposed solution

By clicking on the link, I would expect it to scroll to the code snippet.

Additional notes

cc @mmcky

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions