Latex是论文写作格式化的很好的工具,但是有时候论文是用word写的,这个时候就要用Mendeley来设置参考文献的引用格式。不同期刊有不同的参考文献引用格式,有时已有的参考文献引用格式并不适用当前的期刊,所以需要自适应的去设计与修改这个引用格式。
自定义参考文献的引用格式的过程还是稍微有些复杂的,我大概花了一个晚上加一个上午的时间才搞的比较熟悉,所以这里记录一下,备忘并与大家共享。
第一步:打开mendeley
第二步:“View”-->“Citation Style”-->“More Styles...”-->"About"-->"CSL Editor"
得到以下界面:
在搜索框中搜索相关的citation style 模板,如输入IEEE,得到以下搜索列表:
这里选择IEEE/ACM为模板进行编辑,点击“Edit”,弹出以下对话框,点击“确定”
进入以下界面:
选择“info”-->"Title"命名自己的模板,我这里命名为“IEEE-wzg”.
界面功能介绍:
1. 选择示例参考文献,点击右上角选择示例参考文献,包括书籍的示例,期刊的示例等,只能选择三个。
2. 当前的参考文献模板引用文献时在正文中的表现。
3. 当前参考文献模板在正文参考文献章节中的表现效果。
4. 是主要的编辑区域,与3具有对应关系,通过在3中点击相关区域,在4中会弹出对应的编辑区域
编辑作者的名字:先姓后名还是先名后姓,在如下区域进行编辑。有三个选项
- 空白:所有作者的名称是先名后姓。常用这个设置。
- first:只有第一个作者的名称是先姓后名,其余作者的名称是先名后姓。
- all:所有作者的名称都是先姓后名
5. 我们主要修改的是左侧的BIBLIOGRAPHY部分。
说明:一下画红线的部分是不同的参考文献类型,如期刊,会议,书籍等等。不同的参考文献类型的引用模板需要单独编辑。其中常用的参考文献类型就是期刊,会议,书籍,在下图中已经使用黄色荧光笔标出。
具体修改的内容是“Group”下面的内容:
- title: 文章标题
- container-title:期刊名称
- locators:应该是volume。可以置换
- page:文章在期刊中的页数
- issue:
选中“Group”,点击右上角的“+”号,可以得到下图所示对话框,添加更多条目,如日期等等。拖动条目,可以调整不同条目之间的顺序。
6. 点击左侧的条目在右侧进行格式设置,此处略过。
7. 保存citation style:
左上角:style-->Save Style 或者 Save Style as...
此时会打开:
点击标红区域即可。后续操作不再赘述。
8. 把citation style保存为csl文件,用于以后加载
Step1:点击“code editor”
Step2:ctrl +A选中所有代码,复制代码
step3:新建一个脚本文件(比如我是用notepad++新建的脚本文件),粘贴以上代码,然后保存,并把后缀改成“.csl”即可。
step4:加载“.csl”参考文献模板
“Visual Editor”-->左上角"style"--》“load style”加载该csl文件即可。
注:我没有找到其他的保存参考文件模板为“csl”文件的方式,在界面上没有找到对应的按钮,所以只能使用这个笨办法。
PPPS:为什么要保存为csl文件到本地,因为,在mendeley中右键编辑引用模板时,
会出现以下错误:
修改作者个数:
设置:
(1)'et-al-min' (set to 6), et-al-use-first (set to 1),
(2)et-al-subsequent-min (set to 3) and et-al-subsequent-use-first (set to 1).
意思分别是:
(1)如果少于5个作者,全显示;如果六个或以上作者,显示第一个加et al。
(1)如果少于3个作者,全显示;如果4个或以上作者,显示姓氏加et al。
以下转自:【Mendeley】参考文献中et al 的格式修改_小白兔de窝-CSDN博客
--------------------------------------------------------
04. Example - modifying 'et al' usage
The use of 'et al' in citations and bibliographies is a practice which varies from style to style, and there are a number of conditional arguments which can be applied to its use.
An example of this type of logic would be to say 'if a reference has three or fewer authors, display all of the author names in full. If a reference has four or more authors, display the first author and add 'et al' to reflect the additional authors'.
The threshold that triggers this behaviour can be modified by editing the style using the CSL Editor - and you can find step-by-step instructions on how to modify this behaviour below.
For this example, we'll be using the American Psychological Association (APA) (6th edition) style and we'll be modifying how 'et al' is used in in-line citations.
1. Firstly, we need to open the APA style for editing using the CSL Editor. You can find the steps for this in the first section of this guide - an overview of the CSL Editor.
2. Once the style has been opened for editing, we need to identify the element that we want to update. In this instance, we know we want to modify the in-line citations, so we can find those in the Example Panel.
3. From the example citations that are provided, we can see that 'et al' is already being used for in-line citations. Assuming we want to modify this behaviour, we need to modify the settings associated with In-line citations. Click on the 'In-line Citations' heading in the Style Overview panel to display the settings for this item.
4. With In-line citations selected, we can see a number of settings that control the use of 'et al'. In this instance, the relevant fields are 'et-al-min' (set to 6), et-al-use-first (set to 1), et-al-subsequent-min (set to 3) and et-al-subsequent-use-first (set to 1).
In lay terms, this can be read as follows:
If a reference has five or fewer authors, display all the author names in the citation. If a reference has six or more authors, display the first name followed by 'et al' in the citation.
If a reference has three or more authors, display all three authors in the first citation, but for any subsequent citations use the first name, followed by 'et al'.
![CSL_APA_et_al](https://i-blog.csdnimg.cn/blog_migrate/2e2d9346e130105331bbe6c84d4954e9.png)
4. If we want to modify this behaviour, we just need to alter the values set here. As an example, let's look at how to cause the style to display the first three names before displaying 'et al'. To achieve this, we just need to modify the setting for 'et-al-use-first' to be '3' instead of '1'.
5. As soon as this value is changed, you should see the change take place in the example panel, with three names being displayed (followed by et al) instead of one.
6. However, note that the rules which apply to subsequent citations will still apply, so any citations of a reference with three or more authors - other than the very first - will use the first name followed by 'et al'. We can either modify 'et-al-subsequent-use-first' to be '3' to bring it into line with 'et-al-use-first' (modified in step 4), or we can remove the instructions for 'subsequent citations entirely by settings both the relevant values to be blank. This will mean that all citations are subject to the same rules, without considering if they're the first or a subsequent instance.
The style has now been modified as intended. To start using it in your working documents, see the section on saving and installing your modified style.
更多参考:
【Mendeley】解决mendeley无法自动安装cite style的问题_小白兔de窝-CSDN博客
【Mendeley】参考文献中et al 的格式修改_小白兔de窝-CSDN博客
Mendeley下载安装,导出参考文献以及自定义参考文献_Eonekne的博客-CSDN博客
mendeley参考文献格式设置大全(参考GB T 7714 - 2015)(步骤超级详细,CSL编辑器无法使用、格式设置等多类问题汇总)_EstrangedZ的博客-CSDN博客