-
Notifications
You must be signed in to change notification settings - Fork 9
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
Referencing is using "link" instead of "ref" #20
Comments
Hi, thank you! It should be using the #import "@preview/lemmify:0.1.5": default-theorems
#let (theorem, rules: thm-rules) = default-theorems("thm-group")
#show: thm-rules
#show ref: text.with(red)
#theorem[Test] <thm>
@thm
I'm not sure what you mean, can you give an example? |
Sure! The following renders "Section 1" in red, but "Theorem 1" in blue: #import "@preview/lemmify:0.1.5": default-theorems
#let (theorem, rules: thm-rules) = default-theorems("thm-group")
#show: thm-rules
#show ref: text.with(red)
#show link: text.with(blue)
= Introduction
<introduction>
#theorem[Test] <thm>
@thm
@introduction |
Ok so I looked into it and unfortunately I don't think there is much that can be done about this. The problem is that the |
Perhaps we should take this issue to the maintainers of |
Thanks for the great lib! I am using it a lot for my personal notes and for writing preliminary versions of papers.
That said, I was trying to customize the styling of a template, and realized that referencing for theorems is using the
link
function instead of theref
function with a custom kind. This makes these references follow thelink
show rules instead of theref
ones, and so in template customization either we get links with this custom style, or theorem references that do not match the style of the normal text.I think I figured it out how to do this without changing
lemmify
by customizing theref-styling
configuration, but I think this changing this inside the core lib might be useful to others. What do you think?The text was updated successfully, but these errors were encountered: