Don’t embed hyperlinks during latex file generation.

Should fix #3830
Merge pull request #3900 from dimazest/latexpdf

[MRG+1] Don’t embed hyperlinks during latex file generation.