LaTeX技巧1latex建立参考文献的超链接LaTeX超级链接那些事儿文档格式.docx
《LaTeX技巧1latex建立参考文献的超链接LaTeX超级链接那些事儿文档格式.docx》由会员分享,可在线阅读,更多相关《LaTeX技巧1latex建立参考文献的超链接LaTeX超级链接那些事儿文档格式.docx(6页珍藏版)》请在冰豆网上搜索。
克服以上问题的方法是,不要使用“hyperref”宏包的默认属性,即使用如下方式引入宏包:
\usepackage[colorlinks,
linkcolor=red,
anchorcolor=blue,
citecolor=green
]{hyperref}
“colorlinks”的意思是将超链接以颜色来标识,而并非使用默认的方框来标识。
linkcolor,
anchorcolor,citecolor分别表示用来标识link,anchor,
cite等各种链接的颜色。
若正式的文档中不想使用彩色的标识,但又希望具有超链接的功能,则将上例中的各种颜色换成“black”即可。
如果您的pdf制作中文书签有乱码如下命令,就OK了
\usepackage[dvipdfm,%pdflatex,pdftex这里决定运行文件的方式不同
pdfstartview=FitH,
CJKbookmarks=true,
bookmarksnumbered=true,
bookmarksopen=true,
colorlinks,%注释掉此项则交叉引用为彩色边框(将colorlinks和pdfborder同时注释掉)
pdfborder=001,%注释掉此项则交叉引用为彩色边框
linkcolor=green,
anchorcolor=green,
]{hyperref}
\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
\addcontentsline{toc}{chapter}{\indexname}
\printindex
\autoref{label}
\url{网址}:
生成网址链接,以等宽字体排版;
\href{网址}{描述}:
生成网址链接,以正常字体显示描述,隐藏网址。
选项中可供设置的常用选项见下表:
extension
text
Setthefileextension(e.g.dvi)
whichwillbeappendedtofilelinkscreatedifyouusethexr
package.
hyperfigures
boolean
backref
FALSE
Adds‘backlink’texttotheendofeachiteminthe
bibliography,asalistofsectionnumbers.Thiscanonlywork
properlyifthereisablanklineaftereach\bibitem.
pagebackref
bibliography,asalistofpagenumbers.
hyperindex
TRUE
Makesthepagenumbersofindexentriesintohyperlinks.Relays
onuniquepageanchors(pageanchor,...)
pageanchorsandplainpages=false.
hyperfootnotes
Makesthefootnotemarksintohyperlinkstothefootnotetext.
Easilybroken...
encap
Setsencapcharacterforhyperindex
linktocpage
makepagenumber,nottext,belinkonTOC,LOFandLOT
breaklinks
allowlinkstobreakoverlinesbymakinglinksovermultiple
linesintoPDFlinkstothesametarget
colorlinks
Colorsthetextoflinksandanchors.Thecolorschosendepend
onthethetypeoflink.Atpresenttheonlytypesoflink
distinguishedarecitations,pagereferences,URLs,local?
le
references,andotherlinks.
linkcolor
color
red
Colorfornormalinternallinks.
anchorcolor
black
Colorforanchortext.
citecolor
green
Colorforbibliographicalcitationsintext.
filecolor
magenta
ColorforURLswhichopenlocal?
les.
menucolor
ColorforAcrobatmenuitems.
runcolor
Colorforrunlinks(launchannotations).
urlcolor
cyan
ColorforlinkedURLs.
frenchlinks
usesmallcapsinsteadofcolorforlinks