我目前正在用markdown编写一个文档,并且想从我的文本中对图像进行引用。如何使用pandoc对降价数字进行引用?
this is my text, I want a reference to my image1 [here]. blablabla
![image1](img/image1.png)
我想这样做参考,因为我降价转换为PDF格式后,图像得到安置在一两页后的文件没有任何意义。
UPDATE:
我试过在that postRyan's answer,我不能让它工作。 显然代码:
[image]: image.png "Image Title"
![Alt text][image]
A reference to the [image](#image).
应出示:
\begin{figure}[htbp]
\centering
\includegraphics[keepaspectratio,width=\textwidth,height=0.75\textheight]{i mage.png}
\caption{Alt text}
\label{image}
\end{figure}
A reference to the image (\autoref{image}).
相反,我得到:
\begin{figure}[htbp]
\centering
\includegraphics{image.png}
\caption{Alt text}
\end{figure}
A reference to the \href{\#image}{image}.
我注意到两个问题:
\label{image}
没有按” t出现:不参考被创建。(\autoref{image})
变成\href{\#image}{image}
:未检测到交叉参考。
然后,当我将它转换为pdf时,它显然不链接到图像。有一个链接,但它不链接到任何东西。
任何帮助将不胜感激!
您是否尝试过http://groups.google.com/group/pandoc-discuss/msg/4a42442657a96414中提及的方法? – 2012-02-24 16:47:01
我测试过了,它不会产生autoref。怪异的...... – 2012-02-27 09:34:19
也许你应该编辑你的问题,包括你的尝试,你得到了什么,你想要什么(以便它会更容易帮助你)。 – 2012-02-27 10:01:11