-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
footnote trouble with email in return-address #14
Comments
Reproducible example, please, or the bug report may not exist... |
alright, based on the linl-skeleton:
|
Oh, I see now. That may be a pandoc interaction. I guess we can add 'allow for email address' as a feature request. I suspect it may be easiest to make it a new frontmatter idem rather than shoehorning it into address. But I just guessing at this point... |
that would be cool, thanks. yep, the first half (converting |
That latter one has a toggle. You could turn that off for a start. |
Tested and verified. Just add
to your front-mastter. Now the link is part from the from address just as you specified. We could close this, or keep it open as a 'wishlist' for a from-email field. May as well go with it and make the email a wee bit more visually distinctive. Thoughts, @aaronwolen ? |
just tried it. It works for the email but kills the other link in the example above |
That's an interesting problem. I agree it should be possible to include an email address and use the links as footnotes option but I'm not sure how best to make that happen. One option would be to move the line redefining ...
\opening{$opening$}
\renewcommand{\href}[2]{#2\footnote{\url{#1}}}
... It's not pretty but it works. The question is would the change have any unintended side effects. Let's leave this open for now. |
We need a better long term solution but in the mean time we can workaround this by disabling Pandoc's output:
linl::linl:
md_extensions: "-autolink_bare_uris" |
The Actually, I would prefer to put it into the linl function in R/linl.R, for instance in line 64:
|
Sometimes it seems useful to include an email address in the return-address block (maybe to suggest a way for faster exchange of messages or ...).
linl seems to get confused if an email address is added to the return-address. It marks the email address with a superscript 1 indicating a footnote but does not print a footnote (eg. email_in_return_address.pdf)
As far as I understood the process: pandoc's "markdown to latex" converts all email address to \href{mailto:...}{\nolinkurl{...}} and the linl template.tex tries to do footnotes instead of hotlinks.
I think there is no need for a footnote in case of email addresses but couldn't come up with a solution. I guess even the mailto and nolinkurl stuff could be done away with but have no clue how communicate this to pandoc
The text was updated successfully, but these errors were encountered: