Latex adds hyperlinks and jumps to reference doi

To write a paper in Latex, you need to add a doi number to the paper and set a blue font, you can jump

1. first

Written in the references:

@article{
    
    kong2022polycyclic,
	....
	....
	doi={
    
    https://doi.org/10.1002/anie.202114681} %最后加入doi链接,如果只有doi号就自行前面加上 https://doi.org/
}

2. Go to the page of writing the paper and set a hyperlink

Header add:

\usepackage{
    
    hyperref}
\hypersetup
{
    
    
	colorlinks=true,
	linkcolor=blue,
	filecolor=blue,
	urlcolor=blue,
	citecolor=cyan,
}

colorlinks is to set whether to add color, ture indicates that it is required, and fault indicates that it is not required.

linkcolor, filecolor, urlcolor, citecolor respectively set the color for the formula link, file link, URL link and reference link in the text.

Guess you like

Origin blog.csdn.net/qq_41968196/article/details/130840711