knitcitations2 function