Using \href{mailto:x@y.z}{x@y.z} I am able to render my email as a clickable text. Is there a way to add email as a part of \author{} field, and have \maketitle generate a link that will call an email client when clicked? I am using KOMA-Script. MWE:

  urlbordercolor={0.9 0.5 0.1},
  pdfborderstyle={/S/D/W 1}

\titlehead{\centering x\\y\\z}
\subject{my subject}
\title{my title}

Also, any comments on the preamble regarding (improper) use of packages are welcome. Thanks!

  • 1
    Welcome, get rid of the pdftex option.
    – Johannes_B
    Mar 26 '17 at 13:31
  • 1
    Can't you just add that \href stuff into \author?
    – Johannes_B
    Mar 26 '17 at 13:32
  • Welcome! Have you tried to use your proposed \href command instead of the textual email address in the \author command? When I view the resulting pdf, my viewer tries to open an email client when I click on the email address.
    – gernot
    Mar 26 '17 at 13:33
  • \author{author1\\ \href{mailto:x@y.z}{x@y.z}} is ugly style but seems to work fine. Can you elaborate what difficulties your are facing? Mar 26 '17 at 13:36
  • 1

As gernot and samcarter suggested \author{author1\\ \href{mailto:x@y.z}{x@y.z}} solves the issue. Thank you!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.