包含 pdf 文档中链接的针织块的图形标题



我有一本包含以下代码的小书本':

A concept map is a diagram that shows 'ideas' and the relationship between those ideas. An example of a concept map is shown in Figure @ref(fig:exampleCM).

```{r exampleCM, fig.show='hold', fig.cap='An example concept map --- Source: [Wikipedia](https://upload.wikimedia.org/wikipedia/commons/d/df/Conceptmap.png "Concept Map from Wikipedia")', echo=FALSE}                                  
knitr::include_graphics('images/ConceptMap.png')                                                                                                            
```                                                                                                                                                         

如果我将书渲染为 HTML,一切都按预期工作。标题包括指向维基媒体/维基百科的超链接。即,标题如下所示:

E.1:概念图示例 — 来源:维基百科

如果我将书呈现为 PDF,PDF 中的标题如下所示:

E.1:概念图示例 -- 来源:[维基百科](https://upload.wikimedia.org/wikipedia/commons/d/df/Concep "来自维基百科的概念图"(

由于某种原因,似乎没有渲染降价。生成的 LaTeX 文件如下所示:

A concept map is a diagram that shows `ideas' and the relationship between those ideas. An example of a concept map is shown in Figure ref{fig:exampleCM}.
begin{figure}
includegraphics[width=12.33in]{images/ConceptMap} caption{An example concept map --- Source: [Wikipedia](https://upload.wikimedia.org/wikipedia/commons/d/df/Conceptmap.png "Concept Map from Wikipedia")}label{fig:exampleCM}
end{figure}

我想知道我该如何解决这个问题。

谢一辉上面的评论起到了作用。

感谢您提醒我有关文本引用的信息。

最新更新