附加参考部分链接

附加参考部分链接

我想在参考文献中添加链接,但链接没有显示在 PDF 中。为什么?

\documentclass[12pt,a4paper]{article}  \documentclass[12pt,a4paper]{article}
\usepackage{amsmath}\usepackage{amssymb}
\usepackage{graphicx}

\usepackage[left=1.25in, right=1.0in, top=1.25in, bottom=1.0in]{geometry}

\newcommand{\piRsquare}{\pi r^2}        

\title{{\bf Your Research Title}}
\author{Your Name }     
\date{December 17, 2013}                    
%
\begin{document} \baselineskip=22pt
\maketitle
%
\begin{abstract}
You have to write the abstract here.
\end{abstract}  
%
\tableofcontents

%
\section{Introduction}
Albert Einstein (/ˈælbərt ˈaɪnstaɪn/; German: [ˈalbɐt ˈaɪnʃtaɪn] ( listen); 14 March 1879 – 18 April 1955) was a German-born theoretical physicist who developed the general theory of relativity, one of the two pillars of modern physics (alongside quantum mechanics).[2][3] While best known for his mass–energy equivalence formula E = mc2 (which has been dubbed "the world's most famous equation"),[4] he received the 1921 Nobel Prize in Physics "for his services to theoretical physics, and especially for his discovery of the law of the photoelectric effect".[5] The latter was pivotal in establishing quantum theory.
Near the beginning of his career, Einstein thought that Newtonian mechanics was no longer enough to reconcile the laws of classical mechanics with the laws of the electromagnetic field. This led to the development of his special theory of relativity. He realized, however, that the principle of relativity could also be extended to gravitational fields, and with his subsequent theory of gravitation in 1916, he published a paper on the general theory of relativity. He continued to deal with problems of statistical mechanics and quantum theory, which led to his explanations of particle theory and the motion of molecules. He also investigated the thermal properties of light which laid the foundation of the photon theory of light. In 1917, Einstein applied the general theory of relativity to model the large-scale structure of the universe.[6]

%
    \begin{thebibliography}{99}
    \bibitem{1} Aiolfi, M., & Favero, C.A. (2002). Model Uncertainty; Thick Modeling and the Predictability of Stock Returns. Bocconi University, Mimeo.

    \bibitem{12}Detry, P.J. en Gregiore, P. (2001). Other evidences of the predictive power of technical analysis: The moving averages rules on European indexes. EFMA Conference: Lugano. \url{<http://ssrn.com/abstract=269802>}.
    \end{thebibliography}
    \end{document}
\end{document}

我在 pdf 输出中没有遇到问题,但我想要 pdf 中的 html 链接。

答案1

使用上述代码,您将收到一条错误消息,指出\url未定义。您需要加载定义该命令的包,例如urlhyperref。后者还将创建可点击的参考、引文和 URL 超链接。

其他几点说明:

  • 在第一个参考书目条目中将替换&\&。& 符号是用于分隔表格中列的活动字符,要&在 PDF 中打印 ,您需要用反斜杠将其转义。

  • 不要使用\bf,该语法已弃用。请使用{\bfseries text}\textbf{text},请参阅\textit我使用或\it\bfseries等有关系吗\bf

  • [1]等是[2]引文吗?在这种情况下,您没有按照预期的方式引用参考书目。如果您写例如

    \bibitem{einstein}
    Albert  (1904), \emph{Relatively clever stuff}
    

    在您的参考书目中,那么您可以用 来引用。您在 中使用的单词与 的论据中的\cite{einstein}单词相同。\cite\bibitem

    这样,您就可以确保引用始终是正确的编号。bibitem 会自动编号,并 \cite打印相应的编号。(需要运行两次编译。)

  • 确实要<>包围该 URL 吗?

下面的代码输出

\documentclass[12pt,a4paper]{article}

\usepackage{url}
% or you can use hyperref, which will also give clickable links in the PDF
%\usepackage{hyperref}

\begin{document}
\cite{aiolfi,detry}

\begin{thebibliography}{99}
    \bibitem{aiolfi} Aiolfi, M., \& Favero, C.A. (2002). Model Uncertainty; Thick Modeling and the Predictability of Stock Returns. Bocconi University, Mimeo.

    \bibitem{detry}Detry, P.J. en Gregiore, P. (2001). Other evidences of the predictive power of technical analysis: The moving averages rules on European indexes. EFMA Conference: Lugano. \url{http://ssrn.com/abstract=269802}.
\end{thebibliography}
\end{document}

相关内容