You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to add a text with a hyperlink to my document being generated via pyLaTeX. In LaTeX this would be performed by using:
\href{http://www.sharelatex.com}{Something Linky}
I have found the labelref documentation containing the Marker object as well as the Hyperref Object but i cannot seem to get it working.
from pylatex import Document, Hyperref
doc = Document()
doc.append("Example text a link should go ")
# i was hoping the hyperlink would work like i'm showing below
doc.append(Hyperref("https://jeltef.github.io/PyLaTeX", "here"))
doc.generate_pdf("Example_document", clean_tex=True)
I would like to add a text with a hyperlink to my document being generated via pyLaTeX. In LaTeX this would be performed by using:
\href{http://www.sharelatex.com}{Something Linky}
I have found the labelref documentation containing the Marker object as well as the Hyperref Object but i cannot seem to get it working.
Running the following code produces the a pdf document without errors. image of the document produced
While what i would expect is that the word "here" is a hyperlink and shown in blue.
Is this possible?
The text was updated successfully, but these errors were encountered: