├── BackupSync.md
├── LICENSE
├── README.md
├── README_cn.md
├── citationstyles
├── README.md
├── fix_csl_gbt7714.md
└── format.md
├── docear
└── README.md
├── histcite
├── README.md
├── win.md
└── wine.md
├── jabref
└── README.org
├── latex
├── spacemacs
│ └── Initial_guide.md
└── vscode
│ └── Initial_guide.md
├── noteexpress
└── README.md
├── org-ref
├── README.org
└── orgexample.org
├── revocation.md
├── summary.md
└── zotero
├── custom_translator.md
├── extensions
├── bbt.md
├── prevent_duplicates.md
├── zotfile.md
└── zutilo.md
├── fight2018.md
├── figs
├── cancel_auto_snapshot.png
├── cancel_sync_attachments.png
├── install_plugin.png
├── sync_root_folder.png
└── zotfile_settings.png
├── mobile_usage_android.md
├── remove_'empty'_folder.md
├── remove_unmaintained_files.md
├── startup.md
└── sync.md
/BackupSync.md:
--------------------------------------------------------------------------------
1 | 常用文献库备份与同步
2 |
3 | 大多数文献管理软件的文献库都是以单个文件配合附件文件夹存在的,只要备份这个文件及文件夹,也就相当于备份了文献库。
4 |
5 | 同时,大多数软件都有导出与备份功能。部分软件提供了云同步服务。
6 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 specter119
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 文献管理软件
2 |
3 | 本 Repo 的目的是,收集当前的文献管理相关软件的一些用法,征集相关软件的安装配置使用技巧。
4 | 软件按其英文名称排序,首行叙述皆取自官网或官方插件叙述,不代表作者立场。
5 |
6 |
8 |
9 | ## 引文分析
10 |
11 | |
| HistCite is a software package used for bibliometric analysis and information visualization. |
12 | |--:|:--|
13 | | Price | Free of charge |
14 | | Platform | Windows |
15 | | Open source | 否 |
16 | | Sync | 否 |
17 | | Useful urls | [Offical Site](http://interest.science.thomsonreuters.com/forms/HistCite/) |
18 |
19 | [sci2](https://sci2.cns.iu.edu/)
20 |
21 | ## 文献管理
22 |
23 | ### 独立软件
24 |
25 | |
| Your reference management, knowledge organization, and task planning solution. |
26 | |--:|:--|
27 | | Price | 否 |v
28 | | Platform | Windows |
29 | | Open source | 否 |
30 | | Sync | ? |
31 | | Useful urls | [Offical Site](https://www.citavi.com/en/features.html) |
32 |
33 | |
| Docear is a unique solution to academic literature management, i.e. it helps you organizing, creating, and discovering academic literature. |
34 | |--:|:--|
35 | | Price | Free of charge |
36 | | Platform | Windows, Mac, Linux |
37 | | Open source | 否 |
38 | | Sync | ? |
39 | | Useful urls | [Offical Site](http://www.docear.org/) |
40 |
41 | 在文献管理之余还提供了思维导图作为科研过程的辅助工具。
42 |
43 | |
| Organize and work with all your documents — bookmarks, email messages, text files, images, PDFs — in one place, regardless where they originated. |
44 | |--:|:--|
45 | | Price | 否 |
46 | | Platform | Mac |
47 | | Open source | 是 |
48 | | Sync | ? |
49 | | Useful urls | [Offical Site](http://www.devontechnologies.com/) |
50 |
51 | |
|EndNote is the industry standard software tool for publishing and managing bibliographies, citations and references on the Windows and Macintosh desktop.|
52 | |--:|:--|
53 | | Price | 否,某些单位购买了集团权限(如中科院)。 |
54 | | Platform | Windows, Mac |
55 | | Open source | 否 |
56 | | Sync | ? |
57 | | Useful urls | [Offical Site](http://endnote.com/) / [Training](http://endnote.com/training) |
58 |
59 | EndNote 是一代经典之作,它可能是数据库导出格式支援最好的文献管理软件。它支持在外文数据库中进行全文下载。它也是惟一被 Mac 办公套件官方支持的文献管理软件。
60 |
61 | |
| CNKI E-Study is one of the best softwares on managing the references in China, which integrates setting the download, reading and management. |
62 | |--:|:--|
63 | | Price | Free of charge |
64 | | Platform | Windows |
65 | | Open source | 否 |
66 | | Sync | ? |
67 | | Useful urls | [Offical Site](http://elearning.cnki.net) |
68 |
69 | |
| Mendeley is a reference manager and academic social network that can help you organize your research, collaborate with others online, and discover the latest research. |
70 | |--:|:--|
71 | | Price | Free of charge |
72 | | Platform | Windows, Mac, iOS, Android |
73 | | Open source | 否 |
74 | | Sync | 是,但服务器欠佳 |
75 | | Useful urls | [Offical Site](https://www.mendeley.com/) |
76 |
77 | Mendeley 特色是可以提供机构内相关学者的研究进展,或是针对部分文献的相关文献推荐。
78 | 支持对英文 PDF 文献的元数据识别。
79 |
80 | |
| NoteExpress provides you a flexible, powerful and complete solution to efficiently manage your references, publications, and research documents. |
81 | |--:|:--|
82 | | Price | 否,大多高校已购集团版。 |
83 | | Platform | Windows |
84 | | Open source | 否 |
85 | | Sync | ? |
86 | | Useful urls | [Offical Site](http://www.inoteexpress.com/) / [Wiki](http://www.inoteexpress.com/wiki/index.php) |
87 |
88 | NoteExpress 内支持较多的中外文数据库中进行在线检索和全文下载,建议完整查看首页培训视频后再使用。
89 |
90 | |
| Bring your papers to life. Read, manage & discover new literature like never before. |
91 | |--:|:--|
92 | | Price | Free of charge |
93 | | Platform | Windows, Mac, Linux, iOS, Android |
94 | | Open source | 是 |
95 | | Sync | 否 |
96 | | Useful urls | [Offical Site](https://www.readcube.com/) |
97 |
98 | [Scrivener](https://www.literatureandlatte.com/scrivener.php)
99 |
100 | |
| Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources. |
101 | |--:|:--|
102 | | Price | Free of charge |
103 | | Platform | Windows, Mac, Linux |
104 | | Open source | 是 |
105 | | Sync | 题录 Sync,附件 Sync300MbPrice,可通过插件实现网盘 Sync 。2025年5月[坚果云官方推出了 Zotero 同步支持](https://mp.weixin.qq.com/s/xPVvlD19nLYEikwDyzqKFw) ,可以避免WebDav协议的限制。|
106 | | Useful urls | [Offical Site](https://www.zotero.org/) |
107 |
108 | Open source 全 Platform 文献管理软件,拥有丰富的扩展插件及各种引文风格。
109 |
110 | ### 服务/插件
111 |
112 | |
| org-mode modules for citations, cross-references, bibliographies in org-mode and useful bibtex tools to go with it. |
113 | |--:|:--|
114 | | Price | Free of charge |
115 | | 软件/网站 | Emacs |
116 | | Open source | 是 |
117 | | Useful urls | [Offical Site](https://github.com/jkitchin/org-ref) |
118 |
119 | |
| No-fuss reference management for the web. Manage your research library right in your browser. |
120 | |--:|:--|
121 | | Price | 否 (30天 Price 试用) 学术版每月3美元,商业版每月10美元 |
122 | | 软件/网站 | GoogleDoc |
123 | | Open source | 否 |
124 | | Useful urls | [Offical Site](https://paperpile.com/) |
125 |
--------------------------------------------------------------------------------
/README_cn.md:
--------------------------------------------------------------------------------
1 | # 文献管理软件
2 |
3 | 本 Repo 的目的是,收集当前的文献管理相关软件的一些用法,征集相关软件的安装配置使用技巧。
4 | 软件按其英文名称排序,首行叙述皆取自官网或官方插件叙述,不代表作者立场。
5 |
6 | ## 引文分析
7 |
8 | |
| HistCite is a software package used for bibliometric analysis and information visualization. |
9 | |--:|:--|
10 | | 免费 | 是 |
11 | | 平台 | Windows |
12 | | 开源 | 否 |
13 | | 同步 | 否 |
14 | | 链接 | [主页](http://interest.science.thomsonreuters.com/forms/HistCite/) |
15 |
16 | [sci2](https://sci2.cns.iu.edu/)
17 |
18 | ## 文献管理
19 |
20 | ### Standalone
21 |
22 | |
| Your reference management, knowledge organization, and task planning solution. |
23 | |--:|:--|
24 | | 免费 | 否 |v
25 | | 平台 | Windows |
26 | | 开源 | 否 |
27 | | 同步 | ? |
28 | | 链接 | [主页](https://www.softhead-citavi.com/features) |
29 |
30 | |
| Docear is a unique solution to academic literature management, i.e. it helps you organizing, creating, and discovering academic literature. |
31 | |--:|:--|
32 | | 免费 | 是 |
33 | | 平台 | Windows, Mac, Linux |
34 | | 开源 | 否 |
35 | | 同步 | ? |
36 | | 链接 | [主页](http://www.docear.org/) |
37 |
38 | 在文献管理之余还提供了思维导图作为科研过程的辅助工具。
39 |
40 | |
| Organize and work with all your documents — bookmarks, email messages, text files, images, PDFs — in one place, regardless where they originated. |
41 | |--:|:--|
42 | | 免费 | 否 |
43 | | 平台 | Mac |
44 | | 开源 | 是 |
45 | | 同步 | ? |
46 | | 链接 | [主页](http://www.devontechnologies.com/) |
47 |
48 | |
|EndNote is the industry standard software tool for publishing and managing bibliographies, citations and references on the Windows and Macintosh desktop.|
49 | |--:|:--|
50 | | 免费 | 否,某些单位购买了集团权限(如中科院)。 |
51 | | 平台 | Windows, Mac |
52 | | 开源 | 否 |
53 | | 同步 | 支持题录和附件([仅支持一个数据库和一个账号](https://www.howsci.com/endnote-sync.html)) |
54 | | 链接 | [主页](http://endnote.com/) / [Training](http://endnote.com/training) |
55 |
56 | EndNote 是一代经典之作,它可能是数据库导出格式支援最好的文献管理软件。它支持在外文数据库中进行全文下载。它也是惟一被 Mac 办公套件官方支持的文献管理软件。
57 |
58 | |
| CNKI E-Study is one of the best softwares on managing the references in China, which integrates setting the download, reading and management. |
59 | |--:|:--|
60 | | 免费 | 是 |
61 | | 平台 | Windows |
62 | | 开源 | 否 |
63 | | 同步 | 免费,支持题录和附件同步(10G) |
64 | | 链接 | [主页](http://elearning.cnki.net) |
65 |
66 | |
| Mendeley is a reference manager and academic social network that can help you organize your research, collaborate with others online, and discover the latest research. |
67 | |--:|:--|
68 | | 免费 | 是 |
69 | | 平台 | Windows, Mac, iOS, Android |
70 | | 开源 | 否 |
71 | | 同步 | 是,但服务器欠佳 |
72 | | 链接 | [主页](https://www.mendeley.com/) |
73 |
74 | Mendeley 特色是可以提供机构内相关学者的研究进展,或是针对部分文献的相关文献推荐。
75 | 支持对英文 PDF 文献的元数据识别。
76 |
77 | |
| NoteExpress provides you a flexible, powerful and complete solution to efficiently manage your references, publications, and research documents. |
78 | |--:|:--|
79 | | 免费 | 否,大多高校已购集团版。 |
80 | | 平台 | Windows |
81 | | 开源 | 否 |
82 | | 同步 | 登陆个人版账户可同步文献题录 |
83 | | 链接 | [主页](http://www.inoteexpress.com/) / [Wiki](http://www.inoteexpress.com/wiki/index.php) |
84 |
85 | NoteExpress 内支持较多的中外文数据库中进行在线检索和全文下载,建议完整查看首页培训视频后再使用。
86 |
87 | |
| Bring your papers to life. Read, manage & discover new literature like never before. |
88 | |--:|:--|
89 | | 免费 | 是 |
90 | | 平台 | Windows, Mac, Linux, iOS, Android |
91 | | 开源 | 是 |
92 | | 同步 | 否 |
93 | | 链接 | [主页](https://www.readcube.com/) |
94 |
95 | [Scrivener](https://www.literatureandlatte.com/scrivener.php)
96 |
97 | |
| Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources. |
98 | |--:|:--|
99 | | 免费 | 是 |
100 | | 平台 | Windows, Mac, Linux |
101 | | 开源 | 是 |
102 | | 同步 | 题录同步,附件同步300Mb 免费,可通过插件实现网盘同步。2025年5月[坚果云官方推出了 Zotero 同步支持](https://mp.weixin.qq.com/s/xPVvlD19nLYEikwDyzqKFw) ,可以避免WebDav协议的限制。 |
103 | | 链接 | [主页](https://www.zotero.org/) |
104 |
105 | 开源全平台文献管理软件,拥有丰富的扩展插件及各种引文风格。
106 |
107 | ### 服务/插件
108 |
109 | |
| org-mode modules for citations, cross-references, bibliographies in org-mode and useful bibtex tools to go with it. |
110 | |--:|:--|
111 | | 免费 | 是 |
112 | | 软件/网站 | Emacs |
113 | | 开源 | 是 |
114 | | 链接 | [主页](https://github.com/jkitchin/org-ref) |
115 |
116 | |
| No-fuss reference management for the web. Manage your research library right in your browser. |
117 | |--:|:--|
118 | | 免费 | 否 (30天免费试用) 学术版每月3美元,商业版每月10美元 |
119 | | 软件/网站 | GoogleDoc |
120 | | 开源 | 否 |
121 | | 链接 | [主页](https://paperpile.com/) |
122 |
--------------------------------------------------------------------------------
/citationstyles/README.md:
--------------------------------------------------------------------------------
1 | citation
2 |
--------------------------------------------------------------------------------
/citationstyles/fix_csl_gbt7714.md:
--------------------------------------------------------------------------------
1 | # 自定义宏批量修改 csl 生成参考文献书目的错误
2 |
3 | 鉴于 csl 还没有想好怎么支持多语言(见 [csl/schema#63](https://github.com/citation-style-language/schema/issues/63)),但 GB/T 7714-{1987,2005,2015} 都有多语言的需求,导致现在 csl 没法生成完全正确的参考文献书目。生成中错误较显著的,就是多英文作者(多于4位)省略以“等”结尾,实际应为“et al.”
4 |
5 | > 实际问题还有很多,比如图书的版本,默认还是会写作“第 n 版”,同样与英文书不符。
6 | >
7 | > 但是相对而言,作者比较好匹配,行首+中英文紧邻使错误尤为突出。
8 | >
9 | > 同时,GB/T 7714-{1987,2005} 的 csl,完成度还不够高(csl 自述及研究过的同学反馈),且最新版本 GB/T 7714-2015 (其实三个版本差距都不大) 还没有相匹配的 csl。真正一个完成度更高的 GB/T 7714-2015,需要正则修改的可能更多,也更难。
10 | >
11 | > GB/T 7714 里面一些规定也不合理,比如英文作者完全大写,最终效果也很丑。
12 |
13 | ## 1. 新建自定义宏
14 |
15 | 首先,先调出“开发工具”标签页。
16 |
17 | [windows word 开发工具](https://support.office.com/zh-cn/article/%E6%98%BE%E7%A4%BA-%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7-%E9%80%89%E9%A1%B9%E5%8D%A1-e1192344-5e56-4d45-931b-e5fd9bea2d45)
18 | [mac word 开发工具](https://support.office.com/zh-cn/article/%E5%9C%A8-word-2016-for-mac-%E4%B8%AD%E6%98%BE%E7%A4%BA-%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7-%E9%80%89%E9%A1%B9%E5%8D%A1-0c0778a2-fa91-4b75-9164-0685ae00e9b4)
19 |
20 | 然后,新建宏。
21 |
22 | [新建或编辑宏](https://support.office.com/zh-cn/article/%E5%88%9B%E5%BB%BA%E6%88%96%E8%BF%90%E8%A1%8C%E5%AE%8F-c6b99036-905c-49a6-818a-dfb98b7c3c9c)
23 |
24 | 宏内容见下,且同步发布于 [GitGist/fix_csl_gbt7714](https://gist.github.com/specter119/ea9440c8573aa0df266ea87745226d37) 。
25 |
26 | ```vb
27 | Sub deng2etal()
28 | '
29 | ' deng2etal macro
30 | ' English 等 -> english, et al
31 | '
32 | With Selection.Find
33 | .Forward = True
34 | .ClearFormatting
35 | .Text = "(<[A-z]@)等"
36 | With .Replacement
37 | .ClearFormatting
38 | .Text = "\1, et al"
39 | End With
40 | .Wrap = wdFindStop
41 | .Execute Replace:=wdReplaceAll, MatchWildcards:=True
42 | End With
43 | End Sub
44 | ```
45 |
46 | 写宏参考 [知乎 @johnmy 相关问题回答][^johnmy] 写成,请务必不要修改 csl 的默认语言,以便生成书目均为“等”。
47 |
48 | > 删除了之前版本包含的`etal2deng`,因为 csl 需要修改,且宏保存运行时可能出问题。
49 | >
50 | > 正则匹配中文看到了2个说法,[一-龥](见[Pinyin News 博文][^pinyin.info])和[⺀-■](见[super user][^super_user]),在本人电脑上就出现了保存后 vba 再次打开就无法正常显示部分字符,且无法正常解析运行。
51 | >
52 | > 如果确实需要使用 `deng2etal`的功能,请尝试使用替换,以下2个方案应都可行(复制“”内的内容)。
53 | > 1. "([⺀-■]@)([, ]*)et al" -> "\1\2等"
54 | > 1. "([一-龥]@)([, ]*)et al" -> "\1\2等"
55 | >
56 | > 如前文所言,即使运行了,还是书目会有其他个别错误,暂时没有把这个宏做的很长很丰富的计划。
57 |
58 | ## 2. 生成快速访问工具栏按钮
59 |
60 | [为宏添加按钮](https://support.office.com/zh-cn/article/%E5%B0%86%E5%AE%8F%E5%88%86%E9%85%8D%E7%BB%99%E6%8C%89%E9%92%AE-728c83ec-61d0-40bd-b6ba-927f84eb5d2c#OfficeVersion=macOS)
61 |
62 | ## 3. 用法
63 |
64 | 如果没有选择区域,本文的宏会对光标后到文末进行替换,所以,替换前应选中所有书目或者将光标定位到“参考文献”标题位置。
65 | 点一下刚刚配置的快速访问工具栏按钮,即可。
66 |
67 | ## 参考
68 |
69 | [^johnmy]: [Zotero 如何设置引文列表中的“等”和“et al”混排?- johnmy 的回答 - 知乎](https://www.zhihu.com/question/39156067/answer/145700137)
70 | [^pinyin.info]: [How to find Chinese characters in an MS Word document](http://pinyin.info/news/2016/how-to-find-chinese-characters-in-an-ms-word-document/)
71 | [^super_user]: [Visual Studio - Search through code for Chinese text](https://superuser.com/questions/983441/visual-studio-search-through-code-for-chinese-text)
72 |
--------------------------------------------------------------------------------
/citationstyles/format.md:
--------------------------------------------------------------------------------
1 | # 四步实现自定义 Zotero 参考文献格式
2 |
3 |
4 |
5 |
6 | * [1. 区分 citation 与 bibliography](#1-区分-citation-与-bibliography)
7 | * [2. 参考文献索引的格式化](#2-参考文献索引的格式化)
8 | * [3. 参考文献书目的格式化](#3-参考文献书目的格式化)
9 | * [3.1 Zotero 的题目(title)字段](#31-zotero-的题目title字段)
10 | * [3.2 CSL 文件的使用及修改](#32-csl-文件的使用及修改)
11 | * [3.3 Word 插件中使用书目编辑器](#33-word-插件中使用书目编辑器)
12 | * [3.4 Word 中的"书目"样式](#34-word-中的书目样式)
13 | * [3.5 补缺的黑科技](#35-补缺的黑科技)
14 |
15 |
16 |
17 | > 基于 CSL 语言的参考文献管理软件,对参考文献书目格式的控制方法。本文所述同样适用于 Mendeley, Docear 等软件,但具体功能实现方式略有差异,需读者自行摸索。
18 |
19 | 对大多数人而言,"插文献"是使用文献管理软件的主要乃至唯一的作用,那"插文献"究竟指什么呢?
20 |
21 | 用**简洁,单一**的方式,满足学位论文,期刊杂志,出版书籍中,**种类繁复,格式复杂的参考文献及书目的要求**。
22 |
23 | 本文以 Zotero 为例,介绍了现在"流行的"文献管理软件,自定义 Microsoft-Word(后简称 Word ) 中参考文献书目及索引格式的方法,作用范围及顺序。本文中,简述了 citation 格式调整技巧,按照其人们日常的使用习惯及作用顺序,介绍了自定义 bibliography 的四种方法,也就是题目中所指『四步』。而 bibliograhpy 的第5部分,针对当前基于 CSL 工具无法处理好"et al."和"等",提出了一些补救的方法,其中包括[自定义宏批量修改 CSL 生成参考文献书目的错误](fix_csl_gbt7714.md)。
24 |
25 | > "流行的"指的是以 Citation Style Language (CSL)为基础的一类参考文献软件,相对经典的 EndNote 而言,Zotero, Mendeley, Docear 等软件均属于此类。
26 | > Citation Style Language 是一种基于 XML 的广泛使用的开源语言,用于定义 citation 和 bibliography 的格式。
27 | > CSL 主页
28 | > Zotero citation styles 介绍
29 |
30 |
31 | ## 1. 区分 citation 与 bibliography
32 |
33 | > 两个单词差这么多,居然要我分清?!
34 |
35 | 看英文单词,他们长得完全不一样,但在中文语境中,一般都会被称为『参考文献』。为了区分二者,在后文中做出如下规定:
36 |
37 | 称 citation 为**参考文献索引**,或简称**索引**。它就是正文中的[1~3,5]或者 somebody (year)这样的东西。
38 |
39 | > 索引,告诉读者正文的那些内容引用了哪些文献,即交代内容与引文的对应关系。
40 |
41 | 称 bibliography 为**参考文献书目**,或简称**书目**。它就是正文后,"References"或者"参考文献"部分的内容。这部分一般包括了被引文献的作者,年,期刊或出版社,[DOI](https://www.doi.org/),[ISBN](https://zh.wikipedia.org/zh-cn/%E5%9B%BD%E9%99%85%E6%A0%87%E5%87%86%E4%B9%A6%E5%8F%B7)以及卷,期,页码等信息。
42 |
43 | > 书目对被引文献做出了足够详尽的描述,能够帮助读者精确的锁定被引文献。
44 |
45 | ## 2. 参考文献索引的格式化
46 |
47 | 常见索引只有两种格式:数字 (number) 与作者-年代 (author-year),这也是 CSL 的一种分类的方式。
48 |
49 | 但是,对于作者年代格式,需要多交代一句,一般使用作者年格式的期刊均有这样的要求:
50 |
51 | - 句子中提到某个人时(即人名充当句子主谓成分时),索引写做 author(year);
52 | - 引文对整个句子解释时(即人名不充当句子主谓成分时),索引写做(author year)。
53 |
54 | 本文建议的处理是,在 Word 的 Zotero 选项卡中,点击"Add/Edit Citation"。在弹出的索引编辑器中勾选
55 |
56 | 
57 |
58 | - [x] `略去作者`/`Suppres Author`
59 |
60 | 于是生成一个 (year) 格式的索引,author 则直接写入正文。
61 |
62 | ## 3. 参考文献书目的格式化
63 |
64 | 书目的格式化,尤其是 CSL 文件的修改,由于较为复杂不再此处展开,将来会补充优秀教程链接或者单开一篇。
65 |
66 | 书目的格式化,按照 2 个层次,推荐 4 种方法给大家,建议顺序使用。
67 |
68 | - 内容+字体格式
69 | - Zotero 的题目(title)字段
70 | - CSL 文件的使用及修改
71 | - Word 插件中使用书目编辑器
72 | - 段落样式
73 | - Word "书目"样式
74 |
75 | ### 3.1 Zotero 的题目(title)字段
76 |
77 | 可以插入 html 语言的标签来达到给 title 字体格式的效果,一般用于化学/数学式中的上下角标,效果如下:
78 |
79 | - `稳重的题目上标` 效果: 稳重的题目上标
80 |
81 | - `积极的题目下标` 效果: 积极的题目下标
82 |
83 | - `正经的题目斜体` 效果: 正经的题目斜体
84 |
85 | 下划线及粗体都也是 html 标签支持的,但一般来说,没有必要。
86 |
87 | > 标题的修改仅限于零星特殊格式的字符,主要格式控制在 CSL 文件
88 |
89 | ### 3.2 CSL 文件的使用及修改
90 |
91 | CSL 文件在整个书目格式化的过程中,占据最主要的地位。简而言之,它定义了 2 个东西。
92 |
93 | - 书目的组成与先后顺序
94 | - 书目各组成的字体格式
95 | - 字体格式主要包括,上下标,粗斜体,以及不同规则字母大写
96 |
97 | Citation style language 在线数据库有大量预定义的格式(本文写作时,zotero 库中有 8192 种格式),可以通过 Zotero 首选项直接安装,且现有的格式可以满足绝大多数需求。
98 |
99 | 对于已经安装好的 CSL 格式,在 Word 插件中点击 `Document Preferences` 可以应用或更换。
100 |
101 | 但当无法找到合适的格式文件时,可以选择修改现有的格式,具体的过程与方法,不在此展开。新手编辑 CSL 文件,建议使用 的`Visual editor`。
102 |
103 | > [Onlie Visul Editor 使用指南](https://github.com/citation-style-language/CSL-editor/wiki/User-guide-for-the-CSL-Editor)
104 |
105 | ### 3.3 Word 插件中使用书目编辑器
106 |
107 | 不论由于什么原因,通过前两种方法始终都无法获得想要的字体格式,那么应该选择使用 Word 中的插件中的书目编辑器,而不是手动改。
108 |
109 | > 喜欢手改的人,在评论区讲出你的故事。
110 |
111 | ### 3.4 Word 中的"书目"样式
112 |
113 | 至此,我们已经彻底搞定了书目的内容和字体格式(注意,字体格式中并未包括字体大小)。那么,书目的字体大小,缩进,行间距由谁控制?
114 |
115 | Word 中参考文献书目应用了 `书目`(Mac 与英文环境或为`Bibliography`)样式,可以尝试使用`Ctrl/Cmd` + `Shift` + `Alt` + `S`呼出样式窗口,编辑其中的段落样式,保存后刷新书目,参考文献书目段落样式将更新为你修改后的"书目",且不随刷新失效。
116 |
117 | > [微软:编辑样式](https://support.office.com/zh-cn/article/%E5%BA%94%E7%94%A8%E3%80%81%E6%9B%B4%E6%94%B9%E3%80%81%E5%88%9B%E5%BB%BA%E6%88%96%E5%88%A0%E9%99%A4%E6%A0%B7%E5%BC%8F-1a2cead9-897f-48a7-9122-7849d3b5030a)
118 | > 清除缩进后缩进依旧不正确的,尝试删除书目中所有的制表位[微软:编辑制表位](https://support.office.com/zh-cn/article/%E8%AE%BE%E7%BD%AE%E3%80%81-%E6%B8%85%E9%99%A4%EF%BC%8C%E6%88%96%E5%88%A0%E9%99%A4%E5%88%B6%E8%A1%A8%E4%BD%8D-06969e0f-2c81-4fe0-8df5-88f18087a8e0)。
119 |
120 | ### 3.5 补缺的黑科技
121 |
122 | 至今,CSL 对 GB/T 7714 这种根据文献国别来确定 "等" 与 "et al" 的引文标准还没有很好的支持,(有一个 CSL 的补丁版本 Juris-M/jm-styles ,但是用户太少,而且需要专门客户端)。笔者建议解决 "等" 与 "et al" 这个问题,请参考。
123 |
124 | [Zotero 引文列表中“等”和“et al”混排 for LibreOffice
125 | ](https://www.zhihu.com/question/39156067/answer/145700137)
126 |
127 | 通过本文的简单介绍,可以宏观了解 Zotero 等文献管理软件是如何控制参考文献索引与书目的格式,还能够针对不同的格式需求,提供寻找相应的解决方法的方向。希望通过本文的梳理,帮助到更多陷入使用类似软件,却不知道如何上手修改格式的朋友。欢迎更多的意见和建议。
128 |
--------------------------------------------------------------------------------
/docear/README.md:
--------------------------------------------------------------------------------
1 |
2 | ## 手册
3 |
4 | [手册](http://www.docear.org/support/user-manual/)
5 |
--------------------------------------------------------------------------------
/histcite/README.md:
--------------------------------------------------------------------------------
1 | # HistCite
2 |
3 | HistCite 是一款非常优秀的引文分析软件。它由[Eugene Garfield](https://en.wikipedia.org/wiki/Eugene_Garfield)开发,后来被汤森路透公司收入旗下。而后和 WOS(Web of Science), EndNote 一起归了[Clarivate Analytics](https://clarivate.com/),现在也终于停止开发。
4 |
5 | > 事实上,在 HistCite 归汤森路透的时候,也几乎不开发了。个人认为 HistCite 上在功能上已经近乎完美(瑕不掩瑜?)。继续开发的方向可能只有支持更多的数据库了,但是这与汤森路透的利益向左。
6 |
7 | 下载及官方公告见: [HistCite: No longer in active development or officially supported
8 | ](https://support.clarivate.com/ScientificandAcademicResearch/s/article/HistCite-No-longer-in-active-development-or-officially-supported)
9 |
10 | HistCite 功能极其强大,使用的方法可以参考以下博文/课件。
11 |
12 | [引文分析软件 histcite 简介 - 罗昭锋的博文 - 科学网—博客](http://blog.sciencenet.cn/blog-304685-383399.html)
13 |
14 | [文献分析工具 Histcite 介绍及使用 - 李红 - 浙江大学图书馆](http://libweb.zju.edu.cn/attachments/2012-05/07-1336097592-126671.pdf)
15 |
16 | 扩展支持他站(非 WOS)引文分析。
17 |
18 | [From Scopus2Histocite,用 histocite 软件作从 scopus 网站二次引文分析 - leochina -简书](https://www.jianshu.com/p/47f9547187b4)
19 |
20 | 但是,HistCite 使用中会遇到几个麻烦的问题,且没有跨平台支持。本项目的其余篇幅将介绍问题的解决与非 windows 平台上的安装使用。
21 |
22 | [在 Windows 环境下的导入过程](win.md)
23 |
24 | [非 Windows 环境下的安装](wine.md)
--------------------------------------------------------------------------------
/histcite/win.md:
--------------------------------------------------------------------------------
1 | # HistCite 在 Windows 环境下的导入过程
2 |
3 | to be continued
--------------------------------------------------------------------------------
/histcite/wine.md:
--------------------------------------------------------------------------------
1 | # HistCite 在非 Windows 环境下的安装
2 |
3 | ## 1. 安装
4 |
5 | Mac 系统
6 |
7 | ```sh
8 | brew install wine --devel
9 | ```
10 |
11 | Linux 系统,装上 wine 就可以,一般来说 wine-devel 功能强一些,稳定性也足够。
12 |
13 | 将 HistCite 的可执行文件放在`~/.wine/dirve_C/Program Files/HistCite`,路径可自选,没有空格更方便。
14 |
15 | > 建立 wine 的 C 盘的 fakepath 目录。
16 | > ```sh
17 | > mkdir ~/.wine/dirve_C/fakepath
18 | > ```
19 | > 或者链接。
20 | > ```sh
21 | > ln -s "hsi 文件备份目录" ~/.wine/dirve_C/fakepath
22 | > ```
23 |
24 | ## 2. 合并文件脚本
25 |
26 | > **!注意**,以下脚本会合并`~/Downloads`下所有文件名为`savedrecs*.txt`的文件,使用前务必保证该文件夹内 txt 文件都是刚刚下载的。
27 |
28 | ```sh
29 | #!/usr/bin/env bash
30 | # conding:utf-8
31 | echo "FN Thomson Reuters Web of Knowledge" > ~/.wine/drive_c/fakepath/histmerge.txt
32 | echo 引文合并中...
33 | IFS=$'\n'
34 | for itxt in $(ls ~/Downloads/savedrecs*.txt | sed "s/[ ,(,)]/\\\&/g")
35 | do
36 | eval $"tail -n +2 $itxt >> ~/.wine/drive_c/fakepath/histmerge.txt"
37 | done
38 | echo 引文已合并至"~/.wine/drive_c/fakepath/histmerge.txt"
39 | ```
40 |
41 | 从 Web of Science 导出文件后,运行本脚本,即可更改格式,并将多个文件合并。
42 |
43 |
44 | ## to-do list
45 |
46 | - [ ] 支持直接打开 hci 文件(貌似只在 win 上实现过,测试直接 wine 打开无反应,可能和 wine 的传参有关)。
47 | - [ ] 检索,合并结果的自动化,更多网站的兼容。
48 |
--------------------------------------------------------------------------------
/jabref/README.org:
--------------------------------------------------------------------------------
1 | #+title: JabRef
2 | * Introduction
3 | JabRef is a famous citation program, it's a graphical, easy to use, flexible application based on bib files.
4 | 通常情况下,我只把 jabref 当成打开 bib 文件的一个工具而已,因为他轻量,很小,速度快,对 bib 文件完全兼容,支持多种编码格式。
5 | * Website
6 | You can view the details on the [[https://www.jabref.org/][Official Website]], if you just want to download the software and use it, please refer to [[https://sourceforge.net/projects/jabref/][Download link]] or you can find the source on [[https://github.com/JabRef/jabref][Github]], become a member of develop team.
7 | * Software
8 | * User manual
9 |
--------------------------------------------------------------------------------
/latex/spacemacs/Initial_guide.md:
--------------------------------------------------------------------------------
1 | # Spacemacs 一款鳌拜会选的 LaTeX IDE?!
2 |
3 | > 当因为各种原因,你最终需要选 {Vim/Emacs} 作为你的 LaTeX 编辑器的时候,小心了,你面临的是一个让人能打起来的问题。但是,你其实可以微微一笑,道出:“小孩子才做选择题,而我选择都(all)要(buy)!”
4 |
5 | Spacemacs 是一款整合 Vim 和 Emacs 使用习惯的 Emacs 配置,它以最好的编辑器既不是 Vim 也不是 Emacs 而是二者的合体为标语,颇有鳌拜大人的风范。本文主要旨在利用 Spacemacs 在 macOS/Linux 平台,配置实现快速编辑预览支持拼写检查和纠错的 LaTeX 编辑器。
6 |
7 | > 不是 Windows 平台不能配置,而是 Windows 平台比 macOS 的坑更多,粗略配置完后还是较其余两个平台有差距,没更多时间和心情去踩 Windows 的坑了,Windows 的用户需要自力更生或者选择包括 VSCode 在内的其他编辑器。
8 |
9 | 在某些开发大神看来,Spacemacs 配置起来已经简单的不的了,但是笔者仍需提醒,Spacemacs 适用的是折腾能力较强,喜欢纯键盘操作多过键盘鼠标操作,对编辑器有较高的自定义需求的人群。当你选择了 Spacemacs 时候,意味着你最好熟悉类 Linux 终端及 shell 的基本操作,以及入门级别的`git`使用能力。
10 |
11 | > 除此之外,本文并不是一步一截图的苦口婆心式教程,而是笔者配置过程中,遇到不太好找答案的几个问题的解决方案,它同时也不能帮你入门 Spacemacs,所以,目标不太一致的朋友们,看到这里,就可以停止不浪费余下的几分钟了。
12 |
13 | ## Spacemacs 的安装
14 |
15 | 照例,官方有讲,我不废话。[官网](http://spacemacs.org/) [开发主页](https://github.com/syl20bnr/spacemacs)
16 |
17 | 本文的所有配置如无特殊说明,均为对 Spacemacs 的高级配置文件 `$HOME/.Spacemacs` 的修改。
18 |
19 | 入门的快捷键,建议大家搜索 `Spacemacs Cheat Sheet`然后进行熟悉。
20 |
21 | ## [可选] emacsclient 的配置
22 |
23 | 通过 deamon 模式跑一个 `emacs` 服务器,然后 `emacsclient` 去连接这个服务器,会感觉 `emacs` 是秒开的,并且保存 `emacs`的编辑状态。这虽然不是必须的,但真心觉得配置了方便。
24 |
25 | ### Linux
26 |
27 | 对于 Linux 以 Archlinux 为例,只需要在 `$HOME/.local/share/applications/` 目录中新建 `emacsclient.desktop`即可,内容建议:
28 |
29 | ```conf
30 | [Desktop Entry]
31 | Name=Emacs Client
32 | GenericName=Text Editor
33 | Comment=Edit text
34 | MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
35 | Exec=emacsclient -ca '' %F
36 | Icon=emacs
37 | Type=Application
38 | Terminal=false
39 | Categories=Development;TextEditor;
40 | StartupWMClass=Emacs
41 | Keywords=Text;Editor;
42 | ```
43 |
44 | * [ ] 如果有必要,以后补充一个 shell 内 `emacsclient` 的 alias/function 。
45 |
46 | ### macOS
47 |
48 | > macOS 么,一般不那么 geek 的人都想要个图形界面启动的方式(.app)。
49 | >
50 | > 于是,我一开始的方案是 homebrew 里的 service 自启 + Automator 封装脚本为 "Emacs Client.app",但是这样会让 LaTeX layer 找不到 `latexmk` 而无法编译。
51 | >
52 | > 原因在于 macOS 通过 `launchctl` 自启动的话,`$PATH` 环境变量默认为空。
53 |
54 | 经过一番折腾,最终我选择了,不跑 service 直接通过 "Emacs Client.app" 来启动服务,稍微有点不优雅的就是第一次打开 "Emacs Client.app" 需要跑2次,但也比去终端里重启 homebrew 的 service 要方便也快得多了。
55 |
56 | 打开 Automator,新建文稿,应用程序,运行 Shell 脚本。
57 |
58 | > 此处以`emacs`及`emacsclient`都从`/usr/local/bin`目录下直接访问为例,实际填写时,请以自己机器上的绝对路径为准。
59 |
60 | * Shell: `/bin/sh`
61 | * 传递输入: 作为自变量
62 | * `/usr/local/bin/emacsclient -nca "/usr/local/bin/emacs --daemon" -- "$@" >/dev/null 2>&1`
63 |
64 | > 包括 Linux 系统的 desktop,参数的意义建议看下 `man emacsclient`
65 | >
66 | > macOS 将输出传到 `/dev/null` 是有意义的,否则 app 文件的体积会不断增大。
67 |
68 | 保存为 `~/Applications/Emacs Client.app` 后,是小机器人(Automator 默认)图标,没关系,选中 "Emacs Client.app" 按 ⌘ + i 键(或者右键显示简介),将 Emacs 的图标拖到左上角小机器人上,即可完成替换。
69 |
70 | > 更多方案,可见我[在 Emacs-China 的自问自答](https://emacs-china.org/t/macos-emacs-latex-emacs-client-latexmk/7996)。
71 |
72 | ## LaTeX layer
73 |
74 | 基本配置及使用见 [开发主页 - LaTaX layer](https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Blang/latex)
75 |
76 | 但是 macOS 会遇到一个每次启动重装 `auctex-latexmk` 的 bug(见 [spacemacs#10659](https://github.com/syl20bnr/spacemacs/issues/10659)),所以需要在 `dotspacemacs-configuration-layers` 为 LaTeX layer 增加变量
77 |
78 | ```lisp
79 | (latex :variables latex-build-command "LatexMk")
80 | ```
81 |
82 | 为不同平台配置 viewer,以 macOS 使用 Skim.app 的 `displayline`,linux 系统使用 Okular 为例。
83 |
84 | > 现在基本不用定义 TeX-view-program-list 常用的都已经被[AUCTeX 内置](http://git.savannah.gnu.org/cgit/auctex.git/tree/tex.el#n1237)
85 |
86 | 在 `defun dotspacemacs/user-config` 添加
87 |
88 | ```lisp
89 | (cond
90 | ((spacemacs/system-is-mac) (setq TeX-view-program-selection '((output-pdf "displayline"))))
91 | ((spacemacs/system-is-linux) (setq TeX-view-program-selection '((output-pdf "Okular")))))
92 | )
93 | ```
94 |
95 | macOS 支持正反搜索的软件并不多,Skim.app 是其中之一,但是和 emacs 无法找到 `latexmk` 一样,现在的 macOS 中,需要在 选项 -> 同步中,先选择 emacs,然后再切换为自定义,将 `emacsclient` 路径改为完整路径。
96 |
97 | ## Spell Checker layer
98 |
99 | 基本配置及使用见 [开发主页 - Spell Check layer](https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Bcheckers/spell-checking)
100 |
101 | > macOS 没法默认使用 `aspell`,如果 macOS 下使用 `aspell` 需要设置 ispell-program-name。
102 | > 当 shell 内的 $LANG 变量不为 en_US(或者其他英语 locale) 时,最好设置 ispell 的默认词典为 english,插件的自动语言检测尤其在 client 模式下不好用。
103 |
104 | 在 `defun dotspacemacs/user-config` 添加
105 |
106 | ```lisp
107 | (with-eval-after-load "ispell"
108 | (setq ispell-program-name "aspell")
109 | (setq ispell-dictionary "english"))
110 | ```
111 |
112 | ## 自定义编译
113 |
114 | 修改文本末尾的注释通过 `AUCTeX` 来实现自定义编译,会比直接编辑器配置来的直接方便。本部分所提及自定义注释应该添加到文档末尾,且包含在以下内容之内。
115 |
116 | ```tex
117 | %%% Local Variables:
118 | %%% mode: latex
119 | %%% coding: utf-8
120 | 需要增加的自定义内容
121 | %%% End:
122 | ```
123 |
124 | ### 主/从文档
125 |
126 | 从文档
127 |
128 | ```tex
129 | %%% TeX-master: 主文档相对/绝对路径,不包含后缀(tex)
130 | ```
131 |
132 | 主文档
133 |
134 | ```tex
135 |
136 | %%% TeX-master: t
137 | ```
138 |
139 | ### 自定义编辑引擎,附加参数(以实现`xelatex`为例)
140 |
141 | 在需要编辑(发起编译)的 tex 文档中加入
142 |
143 | > 无论是主文档或者从文档,只要需要从该文档发起编译,都应添加。
144 |
145 | ```tex
146 | %%% TeX-engine: xetex
147 | %%% TeX-command-extra-options: "-shell-escape"
148 | ```
149 |
150 | 更多附加参数请参考 [AUCTeX 4.1.3 Options for TeX Processors](https://www.gnu.org/software/auctex/manual/auctex/Processor-Options.html)
151 |
152 | ## 结语
153 |
154 | 本文虽然不是一步一截图风格的教程,但个人看来是官方文档的一个较好补充,基本配置需要修改的部分已经完全包含在文中了,链接更多是为了学习使用。
155 |
156 | 当按照本文所述将以上两个 layer 配置好后,就能获得一个非常便捷好用的 LaTeX 编辑器了,编辑文本的习惯和 Vim 一致(如果 Spacemacs 初始化的时候,都选择默认),而快捷键则是由 Spacemacs 定制,可谓空格之内,4键可达。尤其当你使用 `git` 来管理的 latex project 时,这些优势更加突出。
157 |
158 | 本人的 Spacemacs/Emacs/Vim 为入门级,配置目的是能用,力争好用,且 Emacs 还是蛮复杂的东西。所以望各位读者遇到问题,能够高台贵手,放过我,多求助于搜索引擎。这篇类似附加材料的东西,能博配置过 LaTeX layer 的大大们一笑足矣。
159 |
--------------------------------------------------------------------------------
/latex/vscode/Initial_guide.md:
--------------------------------------------------------------------------------
1 | # 配置 VSCode 为简易 LaTeX 集成开发环境(IDE)
2 |
3 | LaTeX 的集成开发环境(Integrated Development Environment, 简称 IDE)的配置方案非常多,专用软件(WinEdt, TexMakerX, TeXnicCenter),或者是通用编辑器(vim, emacs, sublime text)均有。那么 VSCode 的优势到底在哪?
4 |
5 | > [Visual Studio Code](https://code.visualstudio.com/)
6 | > 简称 VSCode,由微软开发的全平台集成开发软件。
7 |
8 | 1. 已经有专用编辑器了,为什么要用通用编辑器?
9 | 因为不只写 LaTeX。
10 | 1. 相比传统『神级』编辑器(Vim, Emacs 等),新一代编辑器(VSCode, Atom)有何优势?
11 | - 效率:传统编辑器高
12 | - 难度:新编辑器上手简单
13 | - 颜值:新编辑器高
14 | 1. Atom 和 VSCode 孰优孰劣?
15 | - 支持:Atom 插件多且好,包括且不局限于 LaTeX 范围。
16 | - 性能:VSCode 好,启动快,大文件读写不卡(貌似和 LaTeX 没关系?)。
17 | - 难度:VSCode 上手难度比 Atom 略高。
18 | > Atom,装插件即用,默认设置很少修改,几乎都不知道中间发生了什么。但 VSCode,所有的配置都在`settings.json`中,使用者会更加明白发生了什么,包括默认设置做了什么。孰优孰劣,看各人喜好。
19 |
20 | 综上所述,VSCode 的适合人群:同时具有编程和 LaTeX 需求,且对编辑器性能要求较高,有一定动手能力的人们。
21 |
22 | ## VSCode 安装之前的工作
23 |
24 | [安装 TeX Live 套装](https://liam0205.me/texlive/)。
25 |
26 | 多看书`texdoc`, 多查 ,善于[提问](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md)。
27 |
28 | > CTeX/LaTeX 交流群,QQ 群号: 31752345,中文开发者云集的群。
29 | > 温馨提示,群里被群主虐过的才算萌新,否则只是渣渣。
30 | > 进群先看群公告 × 3。
31 |
32 | ## VSCode 的安装配置
33 |
34 | - Windows: 见[下载页面](https://code.visualstudio.com/download),如使用绿色版且想从终端使用,将所在路径加入环境变量`%Path%`
35 | - macOS: `brew cask install visual-studio-code` [brew](https://brew.sh/), [cask](https://caskroom.github.io/)
36 | - Linux: [offical setup link](https://code.visualstudio.com/docs/setup/linux)
37 |
38 | ## 安装使用 [LaTeX Workshop](https://github.com/James-Yu/LaTeX-Workshop)
39 |
40 | 点选左侧扩展按钮,在展开的扩展栏顶端搜索 LaTeX Workshop,搜到后点击安装。
41 | > 该扩展是当前编译 LaTeX 的全部依赖,微软官方的 LaTeX Language Support 已经停止开发。
42 |
43 | 使用方法可以通过 `Ctrl/Cmd` + `Shift` + `p` 命令快捷方式中,搜索 latex workshop 获得。
44 |
45 | > 如下设置可实现 xelatex -> bibtex -> xelatex * 2 编译。
46 |
47 | 使用 `Ctrl/Cmd` + `,` 打开设置窗口,左侧为默认配置,右侧为用户的全局配置,在右侧加入(注意缩进):
48 |
49 | ```json
50 | "latex-workshop.latex.magic.args": [
51 | "-shell-escape",
52 | "-synctex=1",
53 | "-interaction=nonstopmode",
54 | "-file-line-error",
55 | "%DOC%"
56 | ],
57 | ```
58 |
59 | 主(根)tex 文件开头,用魔法注释(Magic Comment)设置 tex 及 bib 编译命令。
60 |
61 | ```tex
62 | % !TEX program = xelatex
63 | % !BIB program = bibtex
64 | ```
65 |
66 | 非主(根)tex 文件首行,建议用魔法注释定义 主(根)tex 文件:
67 |
68 | ```tex
69 | % !TEX root = 主文件绝对/相对路径
70 | ```
71 |
72 | 本文旨在采取尽量简洁的方法配置可用的 VSCode 的 LaTeX 写作环境,删除了之前冗余的 recipes 及 tools 的解释与配置,现在的魔法注释完全可以代替之前的方案,并且更加方便快捷。如需了解更多,请参考插件官方主页。
73 |
74 | ## 结语
75 |
76 | 至此,一个简单可用的 LaTeX 环境就搭建好了:
77 |
78 | - 灵活更换引擎
79 | - 保存即编译
80 | - 支持预览及同步
81 | - 支持格式化
82 | - 插件配置很少
83 |
--------------------------------------------------------------------------------
/noteexpress/README.md:
--------------------------------------------------------------------------------
1 | # NoteExpress
2 |
3 | [官方网站](http://www.inoteexpress.com/aegean/)
4 |
5 | 高校用户请点击**免费下载**后选择**集团版**,查询高校名称后进行下载。
6 |
7 | 建议在实际使用前完整观看首页的教学视频后再进行,
8 |
9 | 进行具体的论文写作之前,请确定已经掌握各项功能的操作要领。
10 |
11 | M$ Office 各版本建议使用32位元
12 |
--------------------------------------------------------------------------------
/org-ref/README.org:
--------------------------------------------------------------------------------
1 | #+title:ORG-REF 中文使用说明
2 | #+author:sxdxyxy
3 | * 简要介绍
4 | [[https://github.com/jkitchin/org-ref][org-ref ]]是 emacs orgmode 和 latex 模式使用的引用管理软件包,它不仅可能有效的管理参考文献,还可以管理 orgmode 的其它链接,并将其转化成 pdf 或者网页模式。org-ref 还可以通过 crossref, google scholar, doi, isbn 等直接查找并添加 reference 到 bib 文件中。对于学术研究来说,org-ref 还是一个非常方便的笔记软件,他与其它笔记软件相比,主要是依靠强大的 orgmode 的笔记整理功能,可以分类,标注,查询,整理并导出,而这所有的一切全都依靠纯文本的 org 文件。
5 |
6 | 由于 org-ref 运行在 emacs 的 orgmode 模式下面,而 org-mode 的强大更加让 org-ref 成为了强大的文献管理工具。你如果要开始写论文了,那么从计划的制定、文献阅读、笔记记录和整理、论文的写作、数据的处理、图表的生成和处理、程序的编写调试运行并集成到你的论文中一气呵成,没有任何需要离开 emacs 的地方。
7 |
8 | 详细内容请看官方网站:[[https://github.com/jkitchin/org-ref][org-ref]]
9 | * 安装使用
10 | ** spacemacs
11 | 推荐使用[[https://github.com/syl20bnr/spacemacs][Spacemacs]], 它让 [[https://www.gnu.org/software/emacs/index.html][emacs]] 的使用配置不再那么高高在上, [[https://github.com/syl20bnr/spacemacs][Spacemacs]] 也有中文网站对其使用进行指导,请见子龙山人的[[https://github.com/zilongshanren][https://github.com/zilongshanren]], 子龙山人对 emacs 中文化,spacemacs 的介绍做出了很大的贡献,创建了[[https://emacs-china.org/][emacs 中文社区]]。
12 | 在 spacemacs 里面,只需要在 layer 里面添加: bibtex layer,并 spc f e R 就可以完成安装,安装完成后需要进行简单的配置:
13 |
14 | #+BEGIN_SRC emacs-lisp
15 | (defun dotspacemacs/layers()
16 | (dotspacemacs-configuration-layers
17 | '(
18 | (bibtex :variables
19 | bibtex-completion-pdf-field "file"
20 | ;;如果你想用 ivy 进行文献的插入管理,请使用 org-ref-default-bibliography
21 | org-ref-default-bibliography 'org-ref-ivy-cite
22 | bibtex-completion-bibliography "~/git/pdfs/fishway/fishway.bibfishway.bib"
23 | bibtex-completion-library-path "~/git/pdfs/fishway"
24 | org-ref-notes-directory "~/git/notes"
25 | org-ref-bibliography-notes "~/git/article-note.org"
26 | bibtex-completion-notes "~/git/article-note.org"
27 | org-ref-pdf-directory "~/git/pdfs/fishway"
28 | org-ref-default-bibliography "~/git/pdf/fishway/fishway.bib"
29 | )
30 | ))
31 | #+END_SRC
32 |
33 | 以下是官方的配置,我将此配置已经全部写到 spacemacs 的配置里面去了,所以以下配置你可以忽略。
34 | #+BEGIN_SRC emacs-lisp
35 | (setq reftex-default-bibliography '("~/Dropbox/bibliography/references.bib"))
36 | ;; see org-ref for use of these variables
37 | (setq org-ref-bibliography-notes "~/Dropbox/bibliography/notes.org"
38 | org-ref-default-bibliography '("~/Dropbox/bibliography/references.bib")
39 | org-ref-pdf-directory "~/Dropbox/bibliography/bibtex-pdfs/")
40 | #+END_SRC
41 |
42 | 如果您的 bib 文件来自于 zoter,jabref 或者 mendely, 详细设置请参考[[https://github.com/tmalsburg/helm-bibtex#pdf-files][helm-bibtex]] ,需要作如下单独设置:
43 |
44 | #+BEGIN_SRC emacs-lisp
45 | (defun my/org-ref-open-pdf-at-point ()
46 | "Open the pdf for bibtex key under point if it exists."
47 | (interactive)
48 | (let* ((results (org-ref-get-bibtex-key-and-file))
49 | (key (car results))
50 | (pdf-file (car (bibtex-completion-find-pdf key))))
51 | (if (file-exists-p pdf-file)
52 | (org-open-file pdf-file)
53 | (message "No PDF found for %s" key))))
54 |
55 | (setq org-ref-open-pdf-function 'my/org-ref-open-pdf-at-point)
56 | #+END_SRC
57 |
58 | 对于 Mendeley 用户来说,需要作如下单独设置:
59 | #+BEGIN_SRC emacs-lisp
60 | (setq org-ref-open-pdf-function 'org-ref-get-mendeley-filename)
61 | #+END_SRC
62 |
63 | * 使用
64 | 如果你的配置没有问题,使用 org-ref 需要打开,或者新建一个 org 文件,例如:
65 | #+BEGIN_SRC org
66 | ,#+include: ../head.org
67 | ,#+latex_class: elsarticle
68 | ,#+latex_class_options:[5p]
69 | ,#+options: title:nil author:nil
70 | ,#+title: Title
71 | ,#+Author: Xiaoyun Yu
72 | ,#+BEGIN_abstract
73 | Abstract Content
74 | ,#+END_abstract
75 | ,#+BEGIN_keyword
76 | Keyword1, keyword2, \cdots
77 | ,#+END_keyword
78 | ,#+include: ../authors.org
79 |
80 | ,* Introduction
81 |
82 | ,* Methodology
83 |
84 | ,* Model
85 |
86 | ,* Conclusion and Discussion
87 |
88 | ,* References
89 | bibliography:~/git/pdf/fishway/fishway.bib
90 | bibliographystyle:unsrt
91 |
92 | #+END_SRC
93 |
94 | 以上模板需要参照你自己的情况进行修改: [[orgexample.org][模板下载]] 。
95 | 然后在您需要插入参考文献的位置按:C-c ], 就可以弹出参考文献列表,此时你可以输入关键字,helm 会为你选择并定位你需要处理的参考文献条目,如果您只需要插入文献,直接按 ret(回车),如果您需要其它的操作,请按 tab 键,会弹出菜单让你选择相应的操作,比如你要添加笔记,你需要打开 pdf 等相关的操作。
96 |
97 | 当你插入参考文献的条目后,在 org 里面会显示一个链接,光标移动到此链接上时,会在 Emacs 的底部显示文献的内容。也可以用鼠标点此链接选择菜单相应的内容(当然在 emacs 里面操起鼠标,显得太俗,所以 spacemacs 里面的 vim 模式,可以轻松的回车选择菜单进行操作)。
98 | * 资源
99 | [[http://book.emacs-china.org/][1. 子龙山人的 emacs book]]
100 | [[https://github.com/jkitchin/org-ref][2. Org-ref]]
101 | [[https://github.com/tmalsburg/helm-bibtex][3. helm-bibtex]]
102 | [[http://kitchingroup.cheme.cmu.edu/][4. kitchin Research Group]] 是一个专门讨论用 emacs, orgmode, org-ref 写学术论文的站点
103 | * 使用反馈
104 | * 其它
105 | ** 如何在 emacs 里用系统程序打开 pdf
106 | 在 emacs 里面有很多看 pdf 文件的办法,但很多时候,在现在的桌面环境里面,用 Window, mac 自身的 pdf 阅读软件依然是很多 emacs 用户的选择,现在介绍一下如何在 emacs 里面用外部程序打开 pdf.
107 | 方法是使用 openwith 插件。
108 | 在 emacs 里面使用
109 | #+BEGIN_SRC emacs-lisp
110 | M-x package-install ret
111 | openwith
112 | #+END_SRC
113 | 完成安装后,运行:
114 | #+BEGIN_SRC emacs-lisp
115 | M-x customize-group
116 | ret
117 | openwith
118 | #+END_SRC
119 | 进行设置,有两个变量需要设置。
120 | 1. openwith-associations: ins, file 域填文件类型比如: .pdf, program 域填写打开的程序,比如:
121 | #+BEGIN_SRC shell
122 | C:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe
123 | #+END_SRC
124 | parameters 域里面填写: (file)
125 | 用同样的方法添加需要打开的其它类型文件。
126 | 2. openwith mode, 直接点 toggle
127 | 设置完成后点上面的 Apply and Save 按纽,对设置进行保存并立即生效。
128 |
129 | 设置完成后,打开你的配置文件,可以看到如下配置:
130 | #+BEGIN_SRC emacs-lisp
131 | (custom-set-variables
132 | ;; custom-set-variables was added by Custom.
133 | ;; If you edit it by hand, you could mess it up, so be careful.
134 | ;; Your init file should contain only one such instance.
135 | ;; If there is more than one, they won't work right.
136 | '(openwith-associations
137 | (quote
138 | ((".pdf" "C:\\Program Files\\Tracker Software\\PDF Viewer\\PDFXCview.exe"
139 | (file)))))
140 | '(openwith-mode t)
141 | )
142 | #+END_SRC
143 | 如此设置就可以了,对于 mac os 系统和 linux 系统,设置方法类似。而且比在 windows 里面略简单,这里不重复了。
144 |
145 | ** 链接管理
146 | 在*ux 系统(包括 mac osx)下面,都可以很方便的进行文件或者目录的链接,这样可以让你的文件存储路径与你的访问路径对应起来,一般来说,我们的文件可能存在同步盘里面,也可以分散在很电脑的不同分区,不同的目录,有的甚至目录的级别很深,这样就需要添加一个快捷方式直入主题,找到需要的文件,链接就相当有用了。通常情况下在类*ux 系统下面,我们会使用如下的操作:
147 | #+BEGIN_SRC shell
148 | ln -s source-file-or-directory-path destination-path-file
149 | #+END_SRC
150 | 但在 windows 下面,且有些不同,可以使用如下的命令:
151 | #+BEGIN_SRC shell
152 | mklink /j destination-path source-path
153 | #+END_SRC
154 | 这里需要注意的是:1.windows 的路径使用的是'\';2.windows 的目标和源路径与*ux 系统的是相反的;3.mklink 还有个选项 /d, 与/j 类似,都是作目录链接,但我理解/d 是硬链接,而/j 是符号连接,因为我最开始用的/d 在本来是已经建立链接目录里面再进行链接,结果异常,换成了/j 就正常了,所以以后建议大家都直接用 /j。
155 | 是不是很有用?
156 |
--------------------------------------------------------------------------------
/org-ref/orgexample.org:
--------------------------------------------------------------------------------
1 | #+include: ../head.org
2 | #+latex_class: elsarticle
3 | #+latex_class_options:[5p]
4 | #+options: title:nil author:nil
5 | #+title: Title
6 | #+Author: Xiaoyun Yu
7 | #+BEGIN_abstract
8 | Abstract Content
9 | #+END_abstract
10 | #+BEGIN_keyword
11 | Keyword1, keyword2, \cdots
12 | #+END_keyword
13 | #+include: ../authors.org
14 |
15 | * Introduction
16 |
17 | * Methodology
18 |
19 | * Model
20 |
21 | * Conclusion and Discussion
22 |
23 | * References
24 | bibliography:~/git/pdf/fishway/fishway.bib
25 | bibliographystyle:unsrt
26 |
27 |
--------------------------------------------------------------------------------
/revocation.md:
--------------------------------------------------------------------------------
1 | # App, Service or Plug-in not popular any more
2 |
3 | |
| Create your citations, reference lists and bibliographies automatically using the APA, MLA, Chicago, or Harvard referencing styles. |
4 | |--:|:--|
5 | | 免费 | 否 (1年免费试用?) |
6 | | 软件/网站 | None, 在线编辑可导出为 doc,rtf |
7 | | 开源 | 否 |
8 | | 链接 | [Offical Site](http://www.citethisforme.com) |
--------------------------------------------------------------------------------
/summary.md:
--------------------------------------------------------------------------------
1 | 文献管理软件的检索、下载功能依赖于您已有的数据库使用权限,如果您现在不能使用某些数据库,那么文献管理软件中的部分功能也将不可用。
2 | 大部分文献管理软件均支持引文插入、笔记添加等功能,不再一一赘述。
3 |
4 | ## [Endnote]
5 | [Official Site](http://endnote.com/)
6 | 经典之作,这可能是数据库导出格式支援最好的文献管理软件。同时提供 Windows 与 Mac 版本。支持在外文数据库中进行全文下载。
7 | 收费,部分单位可能购买了使用权限。
8 | 提供了详细的使用操作培训。
9 |
10 | ## [NoteExpress]
11 | [Official Site](http://www.inoteexpress.com/aegean/)
12 | 高校图书馆多有购买集团版,仅有 Windows 版。
13 | 软件内支持较多的中外文数据库中进行在线检索和全文下载。
14 | 首页提供了培训视频,建议完整查看后再使用。
15 |
16 | ## [CNKI E-study]
17 | [Official Site](http://elearning.cnki.net)
18 | 中文数据库商知网提供的文献管理软件,提供了知网数据库的大多数功能,对中文文献支持较好。仅有 Windows 版。支持 CAJ 专有格式的阅读。
19 | 仅支持在知网数据库中的在线检索、全文下载和文献资料匹配。如果您现有的单位网络具有知网部分数据库的使用权限,那么在此软件中也同步拥有相应的权限。
20 | 首页提供了培训视频,建议完整查看后再使用。
21 |
22 | ## [Zotero]
23 | [Official Site](https://www.zotero.org/)
24 | 开源的文献管理软件,作为 Firefox 浏览器的扩展存在于多平台中。亦提供了 Windows 下的独立程序版本。
25 | 拥有丰富的扩展插件及各种引文风格,亦可[自定义](http://editor.citationstyles.org/about/)所需的引文格式。
26 | [阳志平关于 Zotero 使用的博客](http://www.yangzhiping.com/tech/zotero1.html)
27 | 上手难度较大,务必先阅读使用博客。
28 |
29 | ## [Mendeley]
30 | [Official Site](https://www.mendeley.com/)
31 | 特色是可以提供机构内相关学者的研究进展,或是针对部分文献的相关文献推荐。
32 | 支持对英文 PDF 文献的元数据识别。
33 |
34 | ## [Docear]
35 | [Official Site](http://www.docear.org/)
36 | 在文献管理之余还提供了思维导图作为科研过程的辅助工具。
37 |
--------------------------------------------------------------------------------
/zotero/custom_translator.md:
--------------------------------------------------------------------------------
1 | # 关于 Zotero 使用的一个新想法
2 |
3 | 1. 修改 translator 让其能保存 html 格式文献的快照,作为一种和 pdf 并列的文献格式。
4 |
5 | > 这个之前的快照意义不同,这是将 html 文献保存快照,而之前是在哪页点就是哪页的快照
6 | 1. 写个插件支持不同网站的附件格式过滤
7 |
8 | > 目的:可以选择 pdf 和 html 只留一个,或者都留下。
9 |
10 | 1. Zotfile 配合备份所有附件。
11 |
--------------------------------------------------------------------------------
/zotero/extensions/bbt.md:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/zotero/extensions/prevent_duplicates.md:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/zotero/extensions/zotfile.md:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/zotero/extensions/zutilo.md:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/zotero/fight2018.md:
--------------------------------------------------------------------------------
1 | # Zotero 的爱恨情仇 2018
2 |
3 | > 拔剑吧少年,我的电脑里只容得下一款文献管理软件。
4 | > 如果文献管理软件有名字,那一定是Z开头。
5 |
6 | 这篇不是教程,也没有长篇回顾历史,只是从 Zotero 官方的 blog 里扒出来几行很有趣的脚注,有感而水。如果你对非 Zotero 的文献管理软件有强烈偏执的爱,请尽早撤离,因为你上错了车。
7 |
8 | ## 兄弟软件的黑历史
9 |
10 | 大多真心喜欢 Zotero 的人都想推广它给更多的人用,于是一篇 “为什么选择 Zotero ?” 的腹稿|草稿|博客就产生,但写完了,发现并不吸引人。不过 Zotero 的爱好者们,你们不用愁了,官方写完了。
11 |
12 | [Why Zotero?](https://www.zotero.org/why)
13 |
14 | 博客中,当然是说一些 Zotero 的优点,按照通常的套路,正文里需要一个对比功能的表,然后 Zotero 的绿对号数目以碾压之势领先其他文献管理软件。然而 Zotero 并没这么做,它把黑别人放到了脚注中,诸君请将网页滚至最下方,看脚注1。
15 |
16 | > 1. Other reference managers go through long periods of little to no development that disrupt productivity and even prevent access to research data. For example, EndNote didn’t support Word 2016 [until 7 months after its release](https://twitter.com/EndNoteNews/status/694563436408143872). Mendeley has [taken years to support the latest versions of macOS](https://www.mendeley.com/release-notes/v1_18), and [took two months](https://blog.mendeley.com/2018/07/18/how-to-recover-your-files-and-annotations-in-mendeley-desktop-july-2018/) to address reports of PDFs disappearing from users’ libraries.
17 |
18 | 笔者水译:其他文献管理软件都经历过长时间的疏于开发,这有碍创作,甚至阻止对研究数据的访问(内心OS:不仅拦着我写文章,还拦着我看文献)。例如,EndNote 在 Word 2016 发布7个月后才支持(拦着我写文章)。Mendeley 花了数年才支持了 macOS 的最新版本,花了2个月才定位用户数据库中PDF文件丢失的报告(对,拦着我看文献的就是你了)。
19 |
20 | 正文里一本正经,脚注1黑 Mendeley 的**数年**让人拍案叫绝,捋下时间:
21 |
22 | - 2016年7月7日,MacOS Sierra (10.12) 公开测试版放出
23 | - 2016年9月20日,MacOS Sierra (10.12) 发布
24 | - 2018年4月中旬(估计而来),Mendeley v1.18 发布,兼容 MacOS Sierra
25 |
26 | 也就是大概一年半的时间,macOS 用户是没法用 Mendeley 的,期间 Mendeley 论坛里苹果用户的怨言是很高。更有趣的是,在 Mendeley v1.18 发布后不久:
27 |
28 | - 2018年6月4日 macOS Mojave 发布(应该只有新机预装)
29 | - 2018年9月24日上线 Mac AppStore(供老机升级)
30 |
31 | 不过,Mendeley 似乎没再发生不兼容的情况,开发者应该捏了一把冷汗。
32 |
33 | > 截至 2018.11.08(本文初稿写完),Mendeley 最新版本 v19.2 与 macOS Mojave兼容性良好,不再提供 macOS Sierra/ windows XP 之前版本的支持。
34 |
35 | 这确实是一段比较传奇的黑历史,剩下两个一个7个月,一个2个月,加上没有亲身体验,不再展开了。
36 |
37 | ## 优秀,但说不出口
38 |
39 | 看完了这段高级黑的脚注,可以返回来看看 Zotero 怎么夸自己了,此时才明白,该文的重点放在开发团队非常的认真负责,很少提及软件的优秀。但这反而是扬长避短,因为在冰冷的功能对比里,它处于劣势,也是推广 Zotero 的文章开起来大都索然无味的原因。
40 |
41 | **Zotero 功能上真没啥优点吗?那我们为啥还要用它?**
42 |
43 | 裸装的 Zotero,不比其他管理软件有能说出来的优势。
44 |
45 | - 流畅?去统计别的软件在旧电脑的卡顿?
46 | - 稳定性?统计别的软件崩溃次数?
47 | - 兼容性?嗯,已经黑过了。
48 | - 引用样式多?包括 Mendeley 和 Citavi 在内也都支持 CSL (即使 CSL 和 Zotero 才是本家)。
49 | - 自定义程度高?能开飞机上天吗?
50 | - 扩展性好?那能装意大利炮吗?
51 |
52 | 本着薅毛不换羊的策略,继续拿 Mendeley 来对比。客观的说,Mendeley 比裸装的 Zotero 更为优秀。
53 |
54 | - 官方免费附件同步空间, 2GB (Mendeley) >> 300MB (Zotero)
55 | - 自定义附件路径,支持(Mendeley)Vs 不支持(Zotero)
56 | - 固定 Citation Key,支持(Mendeley)Vs 不支持(Zotero)
57 |
58 | 这么对比,Zotero弱爆了好吗?但加上自定义程度+扩展性呢?
59 |
60 | - 第三方同步附件,不支持(Mendeley)Vs 支持(Zotero: WebDav|Zotfile|symbolic link)
61 | - 自定义附件路径,支持(Mendeley)Vs 强大(Zotfile)
62 | - 固定 Citation Key,支持(Mendeley)Vs 强大(Better BibTex)
63 |
64 | 对于附件同步来说,Mendeley要么用官方,要么不能开同步,这意味着,用户离开 Mendeley 官方同步很难在多设备间正常使用。后面两点,是基于 Zotero 的两个非常优秀的插件来实现,用强大形容他们功能,毫不过誉,简单的说,相近的功能,在 Mendeley 中,配置占据1个标签页,而在插件中,配置占据4个标签页。
65 |
66 | 经过这样对比,显得 Mendeley 非常羸弱,但事实上,在文献管理软件中 Mendeley 已经是一位优秀的勇者,最起码在易用性上,甩老牌文献管理软件 EndNote 好几条街,可如果和 Zotero 相比呢?对面也是位勇者,只不过穿上了神装。
67 |
68 | ## 酒香也怕巷子深
69 |
70 | 笔者从2013年左右接触 Zotero,当时 Zotero 已经处于 4.X 成熟阶段,但当时Zotero的学习资料非常少,大多数人都是看着[阳志平老师 Zotero 系列教程](https://www.yangzhiping.com/tech/zotero)慢慢入门的。
71 |
72 | 5.X 对于Zotero来说是非常大的更新,它重写了数据库,使得同步的稳定性大大增加。笔者看来,Zotero 开发者有着浓厚的匠人精神,重写数据库肯定要比加个花里胡哨的用户可以看到的功能要难多了,但缺能让软件走的更远。Zotero的开发重心完全在核心功能上,用户层面的功能,完全留给了插件开发者。这正造成了,优秀说不出来的窘境,总不能拿着别人开发的插件来吹 Zotero 多好用吧?
73 |
74 | 与此同时,在开源软件中,Zotero也少有的拥有异常丰富的文档,因为这通常是商业软件才会有的。丰富的文档,也在另一个层面上,削弱着宣发的动机,就是【开发者不想说话,给你甩过来一页 Zotero 文档】这种感觉。
75 |
76 | 综上,加上开源软件没有利益相关,Zotero 在国内至今也未听闻有大力度宣传,使得一款如此优秀的文献管理软件,鲜有人问津。
77 |
78 | 感兴趣的朋友,可关注[其 twitter](https://twitter.com/zotero) 以获取最新动态。
79 |
80 | 使用中需要帮助的朋友在官方论坛发帖,或加入以下2个QQ群之一(群友皆为义务帮助,请智慧的提问,以节省双方时间):
81 |
82 | - [Docear、Zotero、Mendeley群 群号:107948041](https://jq.qq.com/?_wv=1027&k=5q6w7oq)
83 | - [Docear,Zotero,Mendeley 2 群号:82885024](https://jq.qq.com/?_wv=1027&k=5mmaJI1)
84 |
85 | 但是,QQ群确实不适用于软件的系统学习,而且,重复问题的比例也会很高,所以高质量,且不与官方文档重复的中文教程,能够对 Zotero 起到更好的推广作用。于是,笔者更呼吁更多人加入 Zotero 官方wiki的翻译,给本专栏填砖加瓦,包括硬核教程,翻译关键 Zotero Blog,乃至优秀灌水。
86 |
87 | 最后,希望更多的人用上 Zotero,爱上 Zotero。
--------------------------------------------------------------------------------
/zotero/figs/cancel_auto_snapshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/specter119/RefTools/6f4b9a6981b4829cd6c854de322d26d3459a781a/zotero/figs/cancel_auto_snapshot.png
--------------------------------------------------------------------------------
/zotero/figs/cancel_sync_attachments.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/specter119/RefTools/6f4b9a6981b4829cd6c854de322d26d3459a781a/zotero/figs/cancel_sync_attachments.png
--------------------------------------------------------------------------------
/zotero/figs/install_plugin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/specter119/RefTools/6f4b9a6981b4829cd6c854de322d26d3459a781a/zotero/figs/install_plugin.png
--------------------------------------------------------------------------------
/zotero/figs/sync_root_folder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/specter119/RefTools/6f4b9a6981b4829cd6c854de322d26d3459a781a/zotero/figs/sync_root_folder.png
--------------------------------------------------------------------------------
/zotero/figs/zotfile_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/specter119/RefTools/6f4b9a6981b4829cd6c854de322d26d3459a781a/zotero/figs/zotfile_settings.png
--------------------------------------------------------------------------------
/zotero/mobile_usage_android.md:
--------------------------------------------------------------------------------
1 | # Android 平板配合 Zotero 的使用
2 |
3 | ## 最终效果
4 |
5 | 1. 附件同步
6 | 1. 快速搜索
7 | 1. 长按查词
8 |
9 | To-do list (很可能以后也实现不了)
10 |
11 | - 题录收录
12 |
13 | ## 工具
14 |
15 | - **FolderSync** G[ooglePlay](https://play.google.com/store/apps/details?id=dk.tacit.android.foldersync.full) 酷[市场](http://coolapk.com/apk/dk.tacit.android.foldersync.full)
16 |
17 | > 非常强大的免费同步软件,支持 OneDrive,Dropbox,SugarSync,Box.net、 LiveDrive、 HiDrive、 Google Docs、 NetDocuments、 Amazon S3、 FTP、 FTP、 SFTP,WebDAV 或 Windows 共用 (Samba/CIFS) 账户.
18 |
19 | - **Search Everything** G[ooglePlay](https://play.google.com/store/apps/details?id=com.marlon.searcheverything) 酷[市场](http://coolapk.com/apk/com.marlon.searcheverything)
20 |
21 | > 强大的文件搜索软件,体验类似 windows 平台神器 everything!
22 |
23 | - **智器阅读(智阅)** G[ooglePlay](https://play.google.com/store/apps/details?id=com.smartdevices.special) 酷[市场](http://coolapk.com/apk/com.smartdevices)
24 |
25 | > 一款自2013年开始停更的强大**国产**软件,可以毫不夸张的说,至今 Android 平台上的 PDF 阅读软件,文献阅读体验无出其右。
26 |
27 | - **欧路词典 Eudic** G[ooglePlay](https://play.google.com/store/apps/details?id=com.eusoft.eudic) 酷[市场](http://coolapk.com/apk/com.eusoft.eudic)
28 |
29 | > 一款优秀的国产词典,相当于手机上的灵格斯词霸,支持词典格式多。
30 |
--------------------------------------------------------------------------------
/zotero/remove_'empty'_folder.md:
--------------------------------------------------------------------------------
1 | # 为 Zotero 删除 storage 中的“空”文件夹
2 |
3 | 在 Zotero 中使用 Zotfile 时,常会生成一些空文件夹留在 `<数据存储位置>/storage` 中,虽然不占空间,但依然有用户想要删除它们。
4 |
5 | > 这些“空”文件夹通常并不是真的没有文件。附件进入 storage 后,Zotero 缓存全文生成 `.zotero-ft-cache`,而后附件被 Zotfile 移动至其他位置,留下只包含 `.zotero-ft-cache` (Linux,MacOS 下为隐藏文件)
6 |
7 | 以下系统测试通过:
8 |
9 | - Windows10
10 | - MacOS 10.13.6
11 | - Manjaro 17.1.11
12 |
13 | 使用的 Python 均由 [miniconda](https://conda.io/miniconda.html) 的 python3.6.6 在以上三个系统的中测试通过,python2.X 在 Mac 系统测试通过。
14 | 建议安装 [click](http://click.pocoo.org/5/),否则**删除文件夹前不进行确认**。
15 |
16 | > 笔者强烈建议任何系统装 Python 直接上 minicoda。
17 |
18 | ```python
19 | #!/usr/bin/env python
20 | # coding: utf-8
21 |
22 | from __future__ import print_function
23 |
24 | import configparser
25 | import re
26 | import shutil
27 | import sys
28 |
29 | try:
30 | from pathlib import Path
31 | except ImportError:
32 | from pathlib2 import Path
33 |
34 | profile_dirs = {
35 | 'darwin': Path.home() / 'Library/Application Support/Zotero',
36 | 'linux': Path.home() / '.zotero/zotero',
37 | 'linux2': Path.home() / '.zotero/zotero',
38 | 'win32': Path.home() / 'AppData/Roaming/Zotero/Zotero'
39 | }
40 | profile_dir = profile_dirs[sys.platform]
41 |
42 | config = configparser.ConfigParser()
43 | config.read('{}'.format(profile_dir / 'profiles.ini'))
44 | configs_loc = profile_dir / config['Profile0']['Path'] / 'prefs.js'
45 | configs = configs_loc.read_text()
46 |
47 | zotero_data_pat = re.compile(
48 | r'user_pref\("extensions.zotero.dataDir",\ "(?P.+)"\);')
49 | zotero_data_dir = Path(zotero_data_pat.search(configs).group('zotero_data'))
50 | storage_dir = zotero_data_dir / 'storage'
51 | dirs_to_remove = [
52 | '{}'.format(p) for p in storage_dir.iterdir() if (not p.is_file()) and (
53 | not len([f for f in list(p.iterdir()) if f.name[0] != '.']))
54 | ]
55 |
56 | try:
57 | import click
58 | print('The following folders contain no attachments:')
59 | print('\n '.join([''] + dirs_to_remove))
60 | if click.confirm('Do you want remove them?', default=True):
61 | [shutil.rmtree(p, ignore_errors=True) for p in dirs_to_remove]
62 | except ImportError:
63 | print('The following folders containing no attachments will be removed:')
64 | print('\n '.join([''] + dirs_to_remove))
65 | [shutil.rmtree(p, ignore_errors=True) for p in dirs_to_remove]
66 | ```
67 |
68 | 以上脚本也发布在 [GithubGist - zot_rm_empty_folders.py](https://gist.github.com/specter119/0ec043c03d0d8cbe02e83842ee7b2766),如有 bug 或者功能上的补充,欢迎在 gist 上 pr。同时欢迎文末留言,但如安装 python 或者已有 python 不知安装 click 这类问题,还望自行搜索引擎。
69 |
--------------------------------------------------------------------------------
/zotero/remove_unmaintained_files.md:
--------------------------------------------------------------------------------
1 | # 为 Zotero 删除无条目对应的文件链接附件
2 |
3 | 在 Zotero 中使用 Zotfile,当条目删除时,文件链接并不会一同删除。由于 Zotero 短时期并不关注这个需求,需要用户来自己实现。
4 |
5 | > 本文中脚本从 `zotero.sqlite` 数据库读取文件链接路径,与本地实际存储的附件对比,删除数据库中不包含的附件,再删除由于删除附件后产生的新的空文件夹。
6 |
7 | 以下系统测试通过:
8 |
9 | - Windows10
10 | - MacOS 10.13.6
11 | - Manjaro 17.1.11
12 |
13 | 使用的 Python 均由 [miniconda](https://conda.io/miniconda.html) 安装,版本 3.6.6,**Python 2.x 无法使用**。
14 | 建议安装 [click](http://click.pocoo.org/5/),否则**删除文件前不进行确认**,**关闭 Zotero 后才能运行该脚本**。
15 |
16 | > 笔者强烈建议任何系统装 Python 直接上 minicoda。
17 |
18 | ```python
19 | #!/usr/bin/env python
20 | # coding: utf-8
21 |
22 | from __future__ import print_function
23 | import sys
24 | import re
25 | import configparser
26 | from pathlib import Path
27 | import shutil
28 | import sqlite3
29 |
30 | profile_dirs = {
31 | 'darwin': Path.home() / 'Library/Application Support/Zotero',
32 | 'linux': Path.home() / '.zotero/zotero',
33 | 'linux2': Path.home() / '.zotero/zotero',
34 | 'win32': Path.home() / 'AppData/Roaming/Zotero/Zotero'
35 | }
36 | profile_dir = profile_dirs[sys.platform]
37 |
38 | config = configparser.ConfigParser()
39 | config.read(profile_dir / 'profiles.ini')
40 | configs_loc = profile_dir / config['Profile0']['Path'] / 'prefs.js'
41 | configs = configs_loc.read_text()
42 |
43 | zotfile_dest_pat = re.compile(r'user_pref\("extensions.zotfile.dest_dir",\ "(?P.+)"\);')
44 | zotfile_dest_dir = Path(zotfile_dest_pat.search(configs).group('zotfile_dest'))
45 | zotero_data_pat = re.compile(r'user_pref\("extensions.zotero.dataDir",\ "(?P.+)"\);')
46 | zotero_data_dir = Path(zotero_data_pat.search(configs).group('zotero_data'))
47 |
48 | attachments_local = set(p for p in zotfile_dest_dir.glob('**/*') if p.is_file() and p.name[0] != '.')
49 | conn = sqlite3.connect('file:{}?mode=ro'.format(zotero_data_dir / 'zotero.sqlite'), uri=True)
50 | c = conn.cursor()
51 | c.execute('SELECT path FROM itemAttachments WHERE linkMode = 2')
52 | attachments_zotero = set(zotfile_dest_dir / p[0].replace('attachments:', '', 1) for p in c.fetchall())
53 | attachments_to_remove = attachments_local - attachments_zotero
54 |
55 | try:
56 | import click
57 | print('\n'.join(
58 | ['The following files are no longer managed by zotero:', *[' {}'.format(p) for p in attachments_to_remove]]))
59 | if click.confirm('Do you want remove them?', default=True):
60 | [p.unlink() for p in attachments_to_remove]
61 | empty_dirs = [
62 | p for p in zotfile_dest_dir.glob('**/*')
63 | if (not p.is_file()) and (not len([f for f in list(p.iterdir()) if f.name[0] != '.']))
64 | ]
65 | [shutil.rmtree(p, ignore_errors=True) for p in empty_dirs]
66 | except ImportError:
67 | print('\n'.join([
68 | 'The following files are no longer managed by zotero will be removed:',
69 | *[' {}'.format(p) for p in attachments_to_remove]
70 | ]))
71 | [p.unlink() for p in attachments_to_remove]
72 | empty_dirs = [
73 | p for p in zotfile_dest_dir.glob('**/*')
74 | if (not p.is_file()) and (not len([f for f in list(p.iterdir()) if f.name[0] != '.']))
75 | ]
76 | [shutil.rmtree(p, ignore_errors=True) for p in empty_dirs]
77 |
78 | ```
79 |
80 | 以上脚本同时发布在 [GithubGist - zot_rm_unmaintained_files.py](https://gist.github.com/specter119/b79dc35a6091d0fd0896a9536fbddb5a),如有 bug 或者功能上的补充,欢迎在 gist 上 pr。同时欢迎文末留言,但如安装 python 和有了 python 如何安装 click 这类问题,还望自行搜索引擎。
81 |
--------------------------------------------------------------------------------
/zotero/startup.md:
--------------------------------------------------------------------------------
1 | # Zotero 开箱指南
2 |
3 | > Zotero /zoʊˈtɛroʊ/ 是一款免费易用工具,用来帮助你收集,整理,引用,分享研究资料。
4 |
5 | 作为一款优秀开源文献管理软件软件,Zotero 自身功能不俗,且拥有丰富的扩展,能满足更多人的不同需求。
6 |
7 | > 本文简述了安装和初始设定的必要设置,多数链接均指向官网文档。官方文档虽略显过时,但内容详尽且极少错误。希望有志之士贡献翻译[Zotero Wiki](https://www.zotero.org/support/?do=login)
8 |
9 | ## 安装
10 |
11 | Zotero 分为两个部分,即独立版及浏览器插件。
12 |
13 | - 独立版:软件主体,承载了绝大多数功能
14 | - 浏览器插件:将文献从网页收录到独立版内
15 |
16 | 打开[下载链接](https://www.zotero.org/downloads),页面左侧为独立版,右侧为浏览器插件,按常规下载安装即可。
17 |
18 | > - 独立版支持: Windows, Mac, Linux
19 | > Mac 可用`brew cask`安装
20 | > Linux 下载后直接运行可执行文件,亦可通过收录源安装,此处不再赘述
21 | > - 浏览器支持: Chrome, Firefox, Safari
22 | > 浏览器的选择:
23 | > - Chrome: 最快,但需要科学上网
24 | > - Fireworks & Safari: 网速慢对插件收录影响较大
25 |
26 | ## 初始设定
27 |
28 | 1. 修改`数据存储位置`(建议所有系统修改,对 Windows 尤为重要)
29 |
30 | > `数据存储位置`是 Zotero 本地几乎所有的配置、文献数据库、插件数据库以及附件存放的地方。该目录下的`storage`子目录,存放有本地所有`文件`类型的附件。
31 |
32 | 选择`首选项`→`高级`→`文件和文件夹`中的`数据存储位置`。
33 | 点选`自定义`,改为自己顺手的位置(Windows 建议挪出 C 盘)。
34 |
35 | > 建议 Windows 上将数据存储位置挪出 C 盘,避免重装系统造成的文献配置丢失。
36 | > 修改后 Zotero 会询问重启,绝大多数配置会丢失,因此应首先修改。
37 |
38 | 
39 |
40 | 1. 设置同步账户并取消内置附件同步
41 |
42 | [注册 Zotero 账户](https://www.zotero.org/user/register/),在`首选项`→`同步`→`设置`中填写账号密码。
43 |
44 | > 注册过程含 Google 人机验证,须科学上网。
45 |
46 | 取消`首选项`→`同步`→`设置`中`文件同步`下面两个选项的勾选。
47 |
48 | > Zotero 免费账户仅含300Mb 空间,且仅用于同步附件,故取消内置文件同步。
49 |
50 | 
51 |
52 | 想获得更多空间,以及更灵活的方案,参考[附件同步](sync.md)。
53 |
54 | 1. 取消自动生成快照
55 |
56 | 在`首选项`→`常规`取消自动生成快照。
57 |
58 | > 快照: 离线网页
59 | > 快照可读性差异大,且包含大量零散文件。
60 | > 可读性好的网页,可手动保存快照。
61 |
62 | 
63 |
64 | ## 文献迁移
65 |
66 | [通用](https://www.zotero.org/support/kb/importing)
67 | [自 Endnote 迁移](https://www.zotero.org/support/zh/kb/importing_records_from_endnote)
68 | [自 Citavi 迁移](https://www.zotero.org/support/kb/import-from-citavi)
69 |
70 | ## 使用简介
71 |
72 | [快速入门](https://www.zotero.org/support/zh/quick_start_guide)
73 |
74 | > 阅读安装以后内容,快速了解 zotero 的功能与使用方法
75 |
76 | [题录收录](https://www.zotero.org/support/zh/getting_stuff_into_your_library)
77 |
78 | [Word 插文献](https://www.zotero.org/support/word_processor_plugin_usage)
79 | [Word 插文献(经典模式)](https://www.zotero.org/support/word_processor_plugin_usage_classic)
80 |
81 | [引文样式](https://www.zotero.org/support/zh/styles)
82 | [修改样式](https://www.zotero.org/support/dev/citation_styles)
83 |
84 | ## 插件扩展
85 |
86 | [ZotFile](http://zotfile.com/)
87 | [Zotero Better Bib(La)Tex](https://retorque.re/zotero-better-bibtex/)
88 | [Zutilo Utility for Zotero](https://github.com/willsALMANJ/Zutilo)
89 | [ZoteroQuickLook](https://github.com/mronkko/ZoteroQuickLook)
90 |
--------------------------------------------------------------------------------
/zotero/sync.md:
--------------------------------------------------------------------------------
1 | # Zotero 跨平台同步附件的实现
2 |
3 |
4 |
5 |
6 | * [基础概念](#基础概念)
7 | * [1. Zotero 官网同步服务](#1-zotero-官网同步服务)
8 | * [2. Webdav 同步](#2-webdav-同步)
9 | * [3. ZotFile 配合同步盘](#3-zotfile-配合同步盘)
10 | * [4. 软链接配合同步盘](#4-软链接配合同步盘)
11 | * [结语](#结语)
12 |
13 |
14 |
15 | Zotero 的题录同步通过注册账号实现(见[Zotero 开箱指南](startup.md))。本文列举了实现跨平台/设备的四种方法,以实现:跨 Windows/Mac/Linux 平台(设备)上的附件的同步,并对不同方法进行了简单的评价。
16 |
17 | 实现本文同步附件方法前,请参考[Zotero 开箱指南](startup.md)以保证 Zotero 正确安装配置。
18 |
19 | ## 基础概念
20 |
21 | 从附件类型上来看,Zotero 实现同步的方式不外乎两类:
22 |
23 | - 同步`文件`型附件,包括:
24 | - Zotero 官网同步服务
25 | - Webdav 同步
26 | - 软链接配合同步盘
27 | - 同步`文件链接`型附件,包括:
28 | - ZotFile 配合同步盘
29 |
30 | > Zotero 附件类型包括:
31 | > - `文件`: 图标为系统默认图标或者 adobe 红,是 Zotero 默认的附件格式,存放在`<数据存储位置>/storage` 内一个8位数字和字母的子目录中。
32 | > - `文件链接`: 图标为白色加小铁链,通常由 ZotFile 生成,实际保存在`链接附件的根目录`下。
33 | > - `url 链接`: 图标为蓝色加小铁链,实际为文件的网址,联网时才能打开。
34 | >
35 | > 因此,本地只保存有`文件`与`文件链接`类型的附件。
36 |
37 | 两类方法使用上的优劣:
38 |
39 | - `文件`附件:
40 | - 劣势:路径自定义程度低,`<数据存储位置>/storage`或`软链接`内8位数字和字母组成的子目录。
41 | - 优势:删除题录,附件随之删除
42 | - `文件链接`附件(特指由 ZotFile 生成):
43 | - 优势:路径自定义程度高
44 | - 劣势:删除题录,附件不会随之删除,`链接附件的根目录`概念略费解。
45 |
46 | ## 1. Zotero 官网同步服务
47 |
48 | 讲真,花钱省去配置的时间,也不是什么不好的事情。收费标准如下,供诸君考虑。
49 |
50 | | Storage Amount | Annual Price (USD) |
51 | |:--|:--|
52 | | 300 MB | Free |
53 | | 2 GB | $20 |
54 | | 6 GB | $60 |
55 | | Unlimited | $120 |
56 |
57 | 浏览器登录账号后,进入[Upgrade Storage](https://www.Zotero.org/settings/storage).
58 |
59 | 购买服务后,勾选`首选项`→`同步`→`设置`中文件同步下面两个选项。
60 |
61 | > 配置难度: 极简,无需其他客户端
62 | > 跨平台设备: 支持。
63 | > 缺点: 继承`文件`附件缺点 + 如果你觉得贵。
64 |
65 | ## 2. Webdav 同步
66 |
67 | Zotero 官方报道已经成功配置 Webdav 的服务见 [List of WebDAV services](https://www.zotero.org/support/kb/webdav_services)。此外,[坚果云](https://www.jianguoyun.com/)也支持 Webdav 的服务,配置方法见坚果云官方帮助:[webdav 连接坚果云](http://help.jianguoyun.com/?p=3168),其收费方案见[坚果云收费方案](https://www.jianguoyun.com/s/pricing)(包括免费方案)。
68 |
69 | > Papership 使用坚果云 WebDav
70 | > 先将 Zotero 中的 webdav 重置,然后重置 Papership 的 webdav。
71 | > 如果不行,在坚果云的 zotero 文件夹中创建空白的 lastsync.txt 文件,重试 Papership 的 webdav 连接。
72 | > 参考
73 |
74 | > 跨平台设备同步:支持,
75 | > 配置难度: 简单,无需其他客户端
76 | > 缺点: 继承`文件`附件缺点 + 不支持断点续传 + 单文件不可超过100MB(坚果云政策)。
77 |
78 | ## 3. ZotFile 配合同步盘
79 |
80 | 1. 配置附件链接根目录
81 |
82 | `链接附件的根目录`是`文件链接`附件的实际位置,当 Zotero 访问`文件链接`附件时,会访问此目录下的相对路径。为了达到同步附件的目的,需要将`链接附件的根目录`设置为同步盘的子目录。
83 |
84 | > 什么叫相对/绝对路径?
85 | > 并不难理解,但可能不常接触。
86 | > 对时间而言,明天是个相对日期,公元2011年11月11日是个绝对的日期(在地球上,没啥歧义)。
87 | > 路径也是如此,对 Windows 自 盘符:\ 开始,到文件夹或文件结束的就是文件的绝对路径,对 Linux 而言 / 开始(~ 开始也能算)就叫做相对路径,同样到文件夹或文件就叫做相对路径。
88 | > 看不懂也没关系,跟本文设置即可。
89 |
90 | 修改配置,设置`首选项`→`高级`→`文件和文件夹`中`链接附件的根目录`。
91 | 
92 |
93 | 1. 下载安装 ZotFile
94 |
95 | for Zotero 5.x: [5.0.9](https://github.com/jlegewie/zotfile/releases/download/v5.0.9/zotfile-5.0.9-fx.xpi),下载后在 Zotero 中打开`工具`→`插件`,按右上角齿轮选择`Install Add-on Form File ...`,选中刚刚下载的 `zotfile-x.x.x-fx.xpi` 文件进行安装(Mac 和 Win 版本可以拖拽,为了通用性,不再赘述)。
96 | 
97 |
98 | 1. 配置 ZotFile
99 |
100 | 打开`ZotFile Preferences ...`,`General Settings`标签页,`Source Folder for Attaching new Files`设置为`数据存储位置`下的`storage`。`Location of Files`设置为`链接附件的根目录`。
101 |
102 | 
103 |
104 | 1. 同步\&Enjoy!
105 |
106 | 开启同步就好了,对于已经存在本地的附件,请选中所有题录,右键 `Manage Attachments`→`Rename Attachments`。
107 |
108 | ### 其他
109 |
110 | > 目前,webdav 打开后,会对 ZotFile 产生附件链接产生影响,原因暂时不明。
111 |
112 | 1. 软链接同步变更为 ZotFile 附件链接同步
113 | 安装 ZotFile,**保持`附件链接根目录`不变**,剩下都按照本文叙述来,ZotFile 重命名后,再修改`附件链接根目录`。
114 |
115 | 1. 修改目录/更换网盘
116 | 其实本质还是改目录,将`附件链接根目录`剪切到新位置,修改`附件链接根目录`和`Location of Files`为新位置即可。
117 |
118 | > 跨平台设备同步:支持,
119 | > 配置难度: 中等,
120 | > 缺点: 继承`文件链接`缺点。
121 |
122 | ## 4. 软链接配合同步盘
123 |
124 | > 软链接(symbolic link)翻译为符号链接更合适,但与之相对的概念是硬链接(hard link),因此软链接这个叫法大行其道,这个叫法通俗,但并不形象。
125 | > 它类似于 Windows 中的快捷方式,但更进一步。快捷方式只认你的鼠标双击,然而,软链接可以作为文件被其他应用访问,同样不怎么占地方。
126 | >
127 | > 参考创建软链接教程:
128 | > - [windows 文件文件夹映射 junction 和 mklink,创建软硬链接](http://www.codes51.com/article/detail_223538.html)
129 | > - [The Complete Guide to Creating Symbolic Links (aka Symlinks) on Windows](https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/)
130 |
131 | 如果使用 linux/macOS,则只需打开终端模拟器。执行:
132 |
133 | ```sh
134 | mv "<数据存储位置>/storage" "<同步盘中的 storage 位置>"
135 | ln -s "<同步盘中的 storage 位置>" "<数据存储位置>/storage"
136 | ```
137 |
138 | 如果使用 Windows 系统,稍显麻烦,首先打开`命令提示符`:
139 |
140 | > Windows 可能根据设置不同打开 PowerShell 不过对以下过程并不影响。
141 |
142 | - for win7-: `win` + `R`, 输入`cmd`,回车
143 | - for win8+: `win` + `X`, `I`
144 |
145 | 将`数据存储位置`storage 剪切到你能同步的位置,然后创建链接:
146 | > Win7以上内置 mklink,但是对于 XP 及以下,需下载:[Junction 1.07](https://docs.microsoft.com/zh-cn/sysinternals/downloads/junction)
147 |
148 | - for xp-: ` "<数据存储位置>/storage" "<同步盘中的 storage 位置>"`
149 | - for win7+: `mklink /J "<数据存储位置>/storage" "<同步盘中的 storage 位置>"`
150 |
151 | **强烈建议不要与 ZotFile 混用**,会让本方法变得更为复杂,且毫无意义。
152 |
153 | > 跨平台设备同步:支持,
154 | > 配置难度: 较难,
155 | > 缺点: 继承`文件`附件缺点,配置难。
156 |
157 | ## 结语
158 |
159 | 以上四种方法皆可实现跨平台设备的附件同步,差别在于实现的难易及花费。它们均有可取之处,本人倾向使用 ZotFile 生成链接附件,配合同步盘同步的方法。同步盘的同步更便于移动设备的访问,Zotifle 的使用也加强了 Zotero 对附件的管理。
160 |
161 | 如有建议或问题,欢迎向 [RefTools/issues](https://github.com/specter119/RefTools/issues) 反馈,或在文末留言。
162 |
--------------------------------------------------------------------------------