Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Math reference error #300

Open
henry2004y opened this issue Aug 26, 2022 · 2 comments
Open

Math reference error #300

henry2004y opened this issue Aug 26, 2022 · 2 comments

Comments

@henry2004y
Copy link
Contributor

Hi,

The syntax for labeling math is

$$
1 + 1 = 2
$$ {#eq:math}

and the syntax for referencing is @eq:math. This works fine in a single section, but a reference to a equation in another section doesn't work. This can be seen from the urls where references work by appending the label to the section like http://localhost:8004/page1.html#eq:math, where page1 seems to be always the same section as the current one.

I am not sure if references to figures/tables have the same issues.

@rikhuijzer
Copy link
Collaborator

Aah yes. That's a bug. What happens is that Pandoc "sees" the whole website as one big document and generates references and such for that. Next, Books.jl splits this up in separate pages and, hence, changes a lot of links such as references and sections. Apparently, it doesn't fix equations yet. Unfortunately, I don't expect to have time to fix this anytime soon. Hopefully, you or someone else will find this a nice problem to fix.

@henry2004y
Copy link
Contributor Author

It's not urgent. I simply record the issue here and may come back to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants