yihui/bookdown-crc

\href{} applied to \includegraphics{} doesn't appear to work for pdf

cpsievert opened this issue · 2 comments

To reproduce, try adding a fig.link="https://google.com" to this code chunk (or any chunk that produces an image):

```{r hello, fig.cap='Hello World!', out.width='90%'}

Interestingly, the appropriate \href{} is generated in the resulting tex file (so knitr/bookdown isn't the problem here), but clicking on the image in the pdf does nothing. Any idea why that might be? Perhaps a problem with the krantz.cls file?

yihui commented

You need to put this hack back: e18620b

Ah, yes, thank you!