[Item] 根据标注标签/颜色自动生成笔记/Generate note from annotations (by tag/color)(2025.4.20更新/updated) #1129
Replies: 35 comments 87 replies
-
麻烦请教一下大佬,我的复制之后标签标注不显示,文字标注在颜色部分的后面,该如何操作呢 |
Beta Was this translation helpful? Give feedback.
-
Template Preview Error: Error: getAttachments() cannot be called onattachment items |
Beta Was this translation helpful? Give feedback.
-
添加了标注之后还需要再添加tags 能不能直接标注颜色默认分类标签生成笔记 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
求问大佬,如果借助Zotero Style的标注功能在默认的高亮颜色基础上增加了其他高亮颜色,要想显示这些新增高亮颜色的标注应该怎么修改代码呢?我只将下面代码中的let xxx、 tag、color属性值改成了自己设置的高亮颜色和颜色对应的名字(共用了10个颜色),并将myAnnotations数组中的元素进行了对应的修改,请问还需要修改哪些地方才能实现我的目的呢?
|
Beta Was this translation helpful? Give feedback.
-
作者你好,请问这个模板能实现更新吗?比如我先用模板创建了一个笔记,但我又加了几个带tag的注释,能否不用重新创建笔记实现对这些注释的更新 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
模板开头加上 |
Beta Was this translation helpful? Give feedback.
-
@windingwind 请问使用自动更新后出现这段信息正常的吗? |
Beta Was this translation helpful? Give feedback.
-
大佬你好请问H1部分怎么把英文摘要这一块换成中文摘要翻译,或者加入中文摘要翻译 |
Beta Was this translation helpful? Give feedback.
-
![]() |
Beta Was this translation helpful? Give feedback.
-
你好,可以让多个颜色对应一个二级标题吗 |
Beta Was this translation helpful? Give feedback.
-
不支持更新笔记吗? |
Beta Was this translation helpful? Give feedback.
-
想问问大佬能不能 把 生成的背景、结论、方法等 标题行增加background-color呢? |
Beta Was this translation helpful? Give feedback.
-
能生成翻译的摘要吗? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
您好,请问一下这个对标注文件的种类有限制吗,我试了pdf、epub都ok,html文件标注就没法提取,一片空白,应该怎么处理呢? |
Beta Was this translation helpful? Give feedback.
-
大佬,这个报错应该如何解决呢Error: SyntaxError: unexpected token: identifier |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
大佬,现在的问题是点击更新模版内容后,虽然能够把在论文中新的批注更新上,但是原来在笔记中自己又编辑的内容(而不是在论文中的那些颜色批注)就会消失,请问如何解决? |
Beta Was this translation helpful? Give feedback.
-
作者能否更新一下,使得note的名字显示 不为空 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
大佬你好,我是小白,我想问一下这个主模板和子模板是要怎么复制到,zotero的模板编辑器里啊?是把子模板直接复制到主模板的代码下面吗?还是要新建两个条目,一个是主模板的代码一个是子模板的代码? ![]() 真的研究很长时间,但是还是没太搞懂。麻烦大佬解答了,谢谢! |
Beta Was this translation helpful? Give feedback.
-
请问,知不知道为什么使用“从剪切板导入”功能时,zotero 直接卡死退出了 |
Beta Was this translation helpful? Give feedback.
-
Let me know if anything is unclear. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
谢谢谢谢。这里没有问题,是我理解错了。之前理解的是主模板+三个子模板-这样才是完整的。当时还有疑问,为什么子模板要分三个写,原来是不同的功能。哈哈
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2025年05月20日 14:02 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.***>***@***.***> |
| 主题 | Re: [windingwind/zotero-better-notes] [Item] 根据标注标签/颜色自动生成笔记/Generate note from annotations (by tag/color)(2025.4.20更新/updated) (Discussion #1129) |
不是的,你要用哪个子模板就改成哪个,比如你要用by tag,那就把原来的[Item]by color改成[Item]by tag,而不是把所有的子模板都填上去。
我在说明里这么写有什么歧义吗?请反馈,我改一下。
主模板是必须的,根据需要选择不同的子模板by color、by tag或by brackets tag。将主模板中runItemTemplate函数的第一个参数更改为不同的子模板名称实现调用不同子模板,即[item]by tag/[item]by color/[item]by brackets tag。生成笔记时选择主模板Generate note from annotations。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
更新日志
2025.4.20更新: 新增解析标注翻译,翻译内容形式为
🔤翻译🔤
(Translate for Zotero插件默认)。2025.3.31更新:
getAnnotationsByTag
/getAnnotationsByColor
函数中result += ...
语句将样式更改为引用块,即注释掉现有result += ...
语句,并取消注释result += "<blockquote>" + theContent + "</blockquote>" + annoItem.annotationComment;
)// @use-refresh
后标题显示为空,将主模板中runItemTemplate
函数的第一个参数更改为不同的子模板名称实现调用不同子模板,如[item]by tag
/[item]by color
/[item]by brackets tag
。2024.11.21更新: 使用允许内容刷新。(使用后将在笔记开头生成一段“代码”用于更新笔记,如下图所示。如不需要更新笔记请删除模板中

// @use-refresh
。)2024.11.18更新: 标注原文格式化为引用块。
2024.11.13更新: 修复未安装Style插件时报错。
2024.11.08更新: 添加按标注颜色生成笔记。
2024.11.07更新: 添加文档超链接。
2024.11.05更新: 只需更改数组变量
myAnnotations
及其元素即可全局生效。Description
主模板是必须的,根据需要选择不同的子模板by color、by tag或by brackets tag。将主模板中
runItemTemplate
函数的第一个参数更改为不同的子模板名称实现调用不同子模板,即[item]by tag
/[item]by color
/[item]by brackets tag
。生成笔记时选择主模板Generate note from annotations
。The main template is mandatory. Choose different sub-templates, i.e., by color, by tag, or by brackets tag, as needed. Change the first parameter of the function
runItemTemplate
in the main template to a sub-template name, i.e.,[item]by tag
/[item]by color
/[item]by brackets tag
, to call a different sub-template. Choose the main templateGenerate note from annotations
when generating a note.从特定标签/颜色/自定义标签的标注生成笔记,修改于#1101 。
支持中英文条目,支持一个条目下多个附件中(包括PDF、EPUB和Snapshot)注释的提取,支持了除涂鸦类型之外的所有注释类型,移除了标题和摘要翻译。
笔记命名模板为
标题(年, 期刊简称, 第一位作者)
,笔记正文中显示前10位作者,多于10位作者则截断。期刊标签功能需要安装Style插件。
使用方法/Usage
根据标注标签生成笔记/Generate a note based on annotation tags
在Zotero阅读器内做标注,并给标注添加标签,如"Background", "Method", "Conclusion", "Innovation", "Shortage", "Problem"等,做完整篇文章的标注并打标签之后,使用从模板新建条目子笔记创建笔记。
After annotating the entire article in the Zotero reader, add tags such as "Background", "Method", "Conclusion", "Innovation", "Shortage", "Problem", etc., and then create a note using "New ltem Note from Template".
根据标注颜色生成笔记/Generate a note based on annotation colors
在Zotero阅读器内做标注,做完整篇文章的标注之后,使用从模板新建条目子笔记创建笔记。
默认颜色红色、绿色、蓝色、紫色、洋红色、橙色,分别对应"Background", "Method", "Conclusion", "Innovation", "Shortage", "Problem"。
After annotating the entire article in the Zotero reader, create a note using "New ltem Note from Template".
The default colors are red, green, blue, purple, magenta, and orange, corresponding to "Background", "Method", "Conclusion", "Innovation", "Shortage", and "Problem", respectively.
修改代码/Modify the template
变量
myAnnotations
为标注的数组,根据需要修改其中元素的tag
/color
属性值为自己的标签名称
/颜色
或者增/减元素。无论是根据标签还是颜色,
tag
值和emoji
值都会体现在笔记的二级标题中,可以根据需要修改。myAnnotations
中元素的顺序即为笔记中二级标题的顺序。The variable
myAnnotations
is the array of annotations. Change the attribute valuetag
/color
of the element to your own tags/colors or add/delete elements as needed.Whether based on tags or colors, values of and
tag
andemoji
are reflected in the secondary headings of the note and can be modified as needed. The order of the elements inmyAnnotations
is the order of the secondary headings in the note.Screenshots
Test on Zotero version
7.0.7
Test on Better Notes version
2.0.12
Template Type
Item
Template Share Code
主模板/Main template:Generate note from annotations
子模板/Sub-template:by color
子模板/Sub-template:by tag
子模板/Sub-template:by brackets tag (使用方法见/ For usage, refer to https://github.com//discussions/1202)
Anything else
可安装Action插件并配合根据标注颜色自动添加标签动作使用。
可安装Style插件实现自定义标注颜色和名称。
Beta Was this translation helpful? Give feedback.
All reactions