[tex4ht] [bug #450] adding https:// to \url

Karl Berry karl at freefriends.org
Thu Feb 27 23:56:32 CET 2020


                 Summary: adding https:// to \url
                 Project: tex4ht
            Submitted by: karl
            Submitted on: Fri 28 Feb 2020 12:56:32 AM EET
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



Hi Michal - here's a crazy question. For TUGboat, like many other journals, we
now prefer to omit the http[s]:// from urls, so the TeX source just uses
commands like \url{tug.org}.

The result from tex4ht is href="tug.org", that is, a relative (filesystem)

So, my question is, is there any chance of \url looking at its argument and
adding the https:// prefix if no protocol:// is already there?  (In cases
where https:// is not the right thing, I could insert the protocol explicitly.
Not worried about perfection, just wondering about the most common case.)

I know I could fully define the link separately from the displayed text with
\href{...}, but, that's a pain. So, just thought I'd ask. Thanks.


Reply to this item at:


  Message sent via/by Puszcza

More information about the tex4ht mailing list.