ruckertm / HINT

Sources and Documentation for the HINT project
http://hint.userweb.mwn.de/
Other
7 stars 1 forks source link

Include link text in `hyper@linkurl` for `hyperref` driver #20

Open bentitmus opened 2 months ago

bentitmus commented 2 months ago

There is a blank implementation for hyper@linkurl which means that adding a \href to a document will display nothing. I realise that it might not be possible to create the proper link in the HINT file format, but would it be possible to include the link text (#1) so that the document reads properly even without a functioning link.

I don't really know what I'm doing, but I guess that changing hilatex/base/hhitex.def so:

\def\hyper@linkurl#1#2{}%

reads something like

\def\hyper@linkurl#1#2{#1}%

might fix it. It also looks like the same fix might be needed for hyper@linkfile and possibly elsewhere.

Example

\href{https://github.com}{GitHub}