利用Zotero配合坚果云构建跨平台文献数据库1. 软件2. Zotero配合坚果云进行文献同步设置
rmdir C:\\Users\\ljzhu\\Zotero\\storage mklink /d C:\\Users\\jzhu\\Zotero\\storage D:\\我的坚果云\\storage 屏幕显示: C:\\WINDOWS\\system32>rmdir C:\\Users\\ljzhu\\Zotero\\storage C:\\WINDOWS\\system32>mklink /d C:\\Users\\ljzhu\\Zotero\\storage D:\\我的坚果云\\storage 为 C:\\Users\\ljzhu\\Zotero\\storage <<===>> D:\\我的坚果云\\storage 创建的符号链接
这样设置之后,storage文件夹的目录结构如下: ./storage |__<Journal or Publisher> |___<Year> |__<author>_<year>_<title>.pdf 3. 优缺点
4. 文献管理经验4.1. 文献搜集整理
4.2. 文档中插入文献
5. 一些改进5.1. Python代码整理storage文件夹为了方便清理Zotero产生的冗余文件夹,以便通过坚果云查找文件,我写了一个简单的Python脚本来删除这些文件夹: Zotero冗余文件夹示例
./storage/5EML43II |__.zotero-ft-cache |__..zotero-ft-info Remove redunctant folders under Zotero Storage
# -*- coding: utf-8 -*- """Tidy empty folders of storage of zotero @author : Liangjun Zhu """ from __future__ import unicode_literals import os from shutil import rmtree storage_dir = r'D:\我的坚果云\storage' suffix = ['.pdf', '.doc', '.docx', '.xls', '.xlsx', '.ppt', '.pptx', '.tex', '.txt'] deldirs = list() for root, dirs, files in os.walk(storage_dir): # Empty folder if not os.listdir(root): deldirs.append(root) continue # folder without valid files for i in files: for suf in suffix: if i.find(suf) < 0: continue else: break else: # Can not find any useful documents. deldirs.append(root) deldirs = list(set(deldirs)) if storage_dir in deldirs: deldirs.remove(storage_dir) for deldir in deldirs: print('deleting %s...' % deldir) rmtree(deldir)
|