
找到知网的文献,复制红框中的NoteExpress格式的信息
打开VScode写一个处理脚本:
首先新建一个文本文件,命名为cite.txt,把信息粘贴进来

新建一个运行文件

const fs = require('fs');
const readline = require('readline');
const arr = [];
let rl = readline.createInterface({
input: fs.createReadStream("./cite.txt")
})
rl.on('line', line => {
solution(line);
})
function solution(str){
const arr = str.split(':');
console.log(arr[0].substring(1,arr[0].length -1).toLowerCase(),'=',`{${arr[1].trim()}},`);
}
(安装code runner)点击运行:

Bibtex格式的信息就出来了,(可能需要删减一些信息)然后自行放到Letax中:
