LaTeX hyperref包在几个方面让我感到困惑。这是我的特别问题。
在我的文档中,命令
\footnote{
\url{http://www.boston.com/news/science/articles/2010/04/25/new_atlas_shows_the_state_of_nature_as_well_as_the_nature_of_states/}
}运行得很好- pdflatex只生成有效的链接。
但是这些命令
\newcommand{\webref}[1]{\footnote{\url{#1}}}
\webref{http://www.boston.com/news/science/articles/2010/04/25/new_atlas_shows_the_state_of_nature_as_well_as_the_nature_of_states/
}生成链接
file:///C|/eb/qrbook/%20http://www.boston.com/news/science/articles/2010/04/25/new_atlas_shows_the_state_of_nature_as_well_as_the_nature_of_states/谁能告诉我额外的"file://...“”在哪里?来自于,如何摆脱它?
发布于 2011-08-25 05:31:42
胡乱猜测:你确定你不会在任何地方引入任何无关的空间吗?如果我在#1之前引入换行符,我可以重现这种行为。(专业提示:在多行命令中,将%放在最后一个字符之后,这样LaTeX就不会处理换行符。)
https://stackoverflow.com/questions/3451056
复制相似问题