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

render "\url" statements as hyperlinks #258

Closed
IAXES opened this issue Jul 26, 2021 · 2 comments · Fixed by #259
Closed

render "\url" statements as hyperlinks #258

IAXES opened this issue Jul 26, 2021 · 2 comments · Fixed by #259
Assignees
Labels

Comments

@IAXES
Copy link

IAXES commented Jul 26, 2021

Good day,

I have a large number of references to online resources in a document I'm compiling. The entries themselves are of the following form:

@Misc{giassa-1,                                                                  
    title = {{Cloud Native DevOps: Migrating from Monolithic Development}}, 
    note = {\url{https://github.com/IAXES/pronk8s}, accessed 2021-07-05},   
    author = {Matthew Giassa}                                               
}                                                                               

However, the data within the \url portion, while it does render, it appears to just render as plain text (i.e. the \url portion appears to be stripped out; pictured below). Is there a way to enable hyperlink / \url functionality?

image

While browsing through the documentation, I found a link that seems to indicate this functionality is supported, but I'm not familiar with what is needed to enable this functionality. Also, with the latest version being 2.3.1a0, but the latest available version I can pull via pip3 on Ubuntu 20.04 being 2.3.0, I wanted to ask if I just need to manually build/deploy 2.3.1a0 and I'll automatically have this functionality.

Thank you for your time and assistance, and thanks for building + maintaining this awesome tool!

@mcmtroffaes
Copy link
Owner

mcmtroffaes commented Jul 27, 2021

Thanks for reporting. This should work out of the box... I'm not sure why it's not working. I'll investigate in more detail as soon as I find some time.

EDIT: As a workaround, you could also use the url={...} bibtex field.

@mcmtroffaes
Copy link
Owner

I've figured out the problem. pybtex has changed the way it is parsing fields, and this is breaking the conversion. I think it's probably better to fix this on the pybtex end; it has a hyperref node already which sphinxcontrib-bibtex could simply pick up.

mcmtroffaes added a commit that referenced this issue Jul 28, 2021
@mcmtroffaes mcmtroffaes changed the title Question: rendering "\url" statements as hyperlinks in LaTeX PDF and HTML outputs render "\url" statements as hyperlinks Jul 28, 2021
@mcmtroffaes mcmtroffaes self-assigned this Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants