16

Is there any way to underline links with pandoc?

[Geogebra](http://google.com)

I get this

enter image description here

but I prefer __Geogebra__ (__ means underline)

1 Answers1

15

The following document, when converted with pandoc generated underlined links in the resultant PDF. However, as noted in the comments to the linked question here Underlined links with hyperref possible? not all viewers can display the underlined links properly. On my machine (a Mac) only Adobe Reader displays the underlining correctly; both Skim and Preview show a box around the link instead of underlining.

Markdown document

  ---
  header-includes:
    - \hypersetup{colorlinks=false,
              allbordercolors={0 0 0},
              pdfborderstyle={/S/U/W 1}}
  ---

A frame title

Output PDF (Acrobat)

Acrobat Reader image of output

Alan Munn
  • 218,180
  • 1
    I want to include this code in my beamer template which I get from pandoc -D beamer. How can I include in my beamer template if beamer templates does not include usepackage{hyperref}? I want permanent solution – somenxavier Jul 15 '16 at 11:52
  • Just add them as you would any other LaTeX code to the template. Since beamer loads hyperref your beamer template will "understand" the \hypersetup command as it does in this document. – Alan Munn Jul 15 '16 at 12:15
  • I wanted to underline links in a straight Markdown to PDF pandoc conversion, and including this header worked. – François Leblanc Jun 29 '18 at 13:37