latex建立参考文献的超链接 生成书签

本文档介绍了如何在 LaTeX 中使用 `hyperref` 包创建参考文献的超链接和书签,解决中文书签乱码问题。通过设置不同参数,可以调整链接的颜色和样式,同时提供了多种链接命令的示例,如 `href`, `url`, `autoref` 等。此外,还给出了两个参考链接以获取更多详细信息。" 101537309,8669224,Qt项目大全:自定义控件+输入法+大屏系统+视频监控+楼宇管理,"['Qt', '图形界面开发', '嵌入式系统', '输入法开发', '数据可视化']

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

\usepackage[dvipdfm,colorlinks,
            linkcolor=blue,

            anchorcolor=blue,

            citecolor=blue]{hyperref}


如果您的pdf制作中文书签有乱码如下命令,就OK了

\usepackage[dvipdfm,  %pdflatex,pdftex这里决定运行文件的方式不同
            pdfstartview=FitH,
            CJKbookmarks=true,
            bookmarksnumbered=true,
            bookmarksopen=true,
            colorlinks, %注释掉此项则交叉引用为彩色边框(将colorlinks和pdfborder同时注释掉)
            pdfborder=001,   %注释掉此项则交叉引用为彩色边框
            linkcolor=green,
            anchorcolor=green,
            citecolor=green
            ]{hyperref}
  

若正式的文档中不想使用彩色的标识,但又希望具有超链接的功能,则将上例中的各种颜色换成“black”即可。
\href{URL}{text}
\url{URL}
\nolinkurl{URL}
\hyperbaseurl{URL}
\hyperimage{imageURL}{text}
\hyperdef{category}{name}{text}
\hyperref{URL}{category}{name}{text}
\hyperref[label]{text}
\hyperlink{name}{text}
\hypertarget{name}{text}
\phantomsection
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{\indexname}
\printindex
\autoref{label}

  • \url{网址}:生成网址链接,以等宽字体排版;
  • \href{网址}{描述}:生成网址链接,以正常字体显示描述,隐藏网址。

选项中可供设置的常用选项见下表:

extension text   Set the file extension (e.g. dvi) which will be appended to file links created if you use the xr package.
hyperfigures boolean    
backref boolean FALSE Adds ‘backlink’ text to the end of each item in the bibliography, as a list of section numbers. This can only work properly if there is a blank line after each \bibitem.
pagebackref boolean FALSE Adds ‘backlink’ text to the end of each item in the bibliography, as a list of page numbers.
hyperindex boolean TRUE Makes the page numbers of index entries into hyperlinks. Relays on unique page anchors (pageanchor, ...)
pageanchors and plainpages=false.      
hyperfootnotes boolean TRUE Makes the footnote marks into hyperlinks to the footnote text. Easily broken ...
encap     Sets encap character for hyperindex
linktocpage boolean FALSE make page number, not text, be link on TOC, LOF and LOT
breaklinks boolean FALSE allow links to break over lines by making links over multiple lines into PDF links to the same target
colorlinks boolean FALSE Colors the text of links and anchors. The colors chosen depend on the the type of link. At present the only types of link distinguished are citations, page references, URLs, local file references, and other links.
linkcolor color red Color for normal internal links.
anchorcolor color black Color for anchor text.
citecolor color green Color for bibliographical citations in text.
filecolor color magenta Color for URLs which open local files.
menucolor color red Color for Acrobat menu items.
runcolor color filecolor Color for run links (launch annotations).
urlcolor color cyan Color for linked URLs.
frenchlinks boolean FALSE use small caps instead of color for links
原创加整理:

详细信息,可参考:

http://www.tug.org/applications/hyperref/manual.html#x1-150005

http://blog.sina.com.cn/s/blog_5e16f1770100fkcz.html


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值