Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同文档块引转脚注缩略定义考虑标题块 #5917

Closed
mlzxy opened this issue Sep 22, 2022 · 3 comments
Closed

同文档块引转脚注缩略定义考虑标题块 #5917

mlzxy opened this issue Sep 22, 2022 · 3 comments
Assignees
Milestone

Comments

@mlzxy
Copy link

mlzxy commented Sep 22, 2022

在什么情况下你需要该特性?In what scenarios do you need this feature?

目前导出文档时,文档中所引用其他的内容块会以脚注的形式添加到导出的文件中,很不错。

但是如果文档内部有自我引用,如 Section-3 引用 Section-1,则也会把 Section-1 在脚注中重复一遍。有时引用一个大的章节,使得导出的 PDF 多很多页。

希望文内引用能够直接变成 #id 的链接跳转,而不是脚注。

描述可能的最优解决方案 Describe the optimal solution

如上

描述候选的解决方案 Describe the candidate solution

No response

其他信息 Other information

No response

@88250
Copy link
Member

88250 commented Sep 22, 2022

引用统一转换为脚注比较好,因为定义块可能还有引用,这些情况如果不统一处理为引用转换脚注的话会比较混乱。

对于同一篇文档中引用大段内容,之前已经做过缩略处理了 #3299

@88250 88250 closed this as completed Sep 22, 2022
@mlzxy
Copy link
Author

mlzxy commented Sep 22, 2022

引用统一转换为脚注比较好,因为定义块可能还有引用,这些情况如果不统一处理为引用转换脚注的话会比较混乱。

对于同一篇文档中引用大段内容,之前已经做过缩略处理了 #3299

我是引用的其他标题 h2, h3 这种,但我现在导出 PDF 还是会发现整个标题下的所有内容都被变成 footnote 了。下面是一个刚刚导出的 PDF

比如:

image

image

这个章节内容很长,就不都截取了。

@88250 88250 changed the title 导出文档时避免重复内容 同文档块引转脚注缩略定义考虑容器块和标题块 Sep 22, 2022
@88250 88250 self-assigned this Sep 22, 2022
@88250 88250 added this to the 2.2.1 milestone Sep 22, 2022
@88250
Copy link
Member

88250 commented Sep 22, 2022

之前只处理了段落块,后续改进加入标题块,如果是标题块的话只保留标题本身,不带下方块。

@88250 88250 reopened this Sep 22, 2022
@88250 88250 changed the title 同文档块引转脚注缩略定义考虑容器块和标题块 同文档块引转脚注缩略定义考虑标题块 Sep 23, 2022
@88250 88250 closed this as completed Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants