0
190 次浏览

How to I create a \sethook which points to a periph? (Or, can I?)

I’ve tried \sethook{before}{periph:publisher}{\def\PageBorder{}}, but that didn’t work.

This slide from the recent workshop would suggest that it might be possible, but I’m also wondering if there is a mistake in the syntax on that slide:

Why is there not a {before} or some other position information before the location marker?

PTXprint (1.9k 分) 发布 | 190 次浏览

2 个回答

0

Well caught, it should read \sethook{...}{id:GEN}{}

Are there start/end hook-points on periphs? The answer is not yet.

I can see how {start} and {end} would work, but setting a {before} or {after} on a periph seems like it would be ambiguous. Should it occur before the periph definition or before the periph invocation? (e.g. if you set it on {before}{periph:intnt} does it occur just after Malachi 4:6? after the page break? or at the end of the previous periphery in the INT book?)
And if someone puts a {before} hook for the coverfront periphery (contents of the front page), where should that go?

(1.1k 分) 发布
0

我忘了说……变通方法:你可以在独立里程碑(stand-alone milestones)上设置钩子,并使用更改文件(changes file)将它们添加到任何你想要的位置。

机器翻译自 English
(1.1k 分) 发布

相关问题

0
5 个回答 503 次浏览
我正试图使用钩子(hooks)在文档中设置多重边框 我可以设置第一个边框,也可以关闭边框,但如果我尝试设置第二个边框,它又会变回第一个 \sethook{before}{mt1}{\ ... \PageBorder{}} \sethook{before}{c}{\def\PageBorder{path_to_border_2}} 我哪里做错了?这可行吗?
mnjames 1.9k 发布 提问于 一月 2, 2023
+1
1 个回答 27 次浏览
我发现页眉中引用范围里的书名和章节号之间缺少空白分隔符。是不是我哪里配置错了?我不知道该去哪里查看。
odysiusbt 123 发布 提问于 六月 19
0
1 个回答 17 次浏览
我注意到,当我添加前言 PDF 时,这些页面会被添加到所有排版内容之前,包括本地前言 我想知道是否可以将额外的 PDF 插入到本地前言之后 经文材料之前 我尝试了插入整个 PDF 中提到的步骤,通过添加 TeX 命令在我的第 ... PDF 中并没有插入任何内容 我使用的是 Windows,但由于我按照建议使用相对路径,这不应该是个问题 有人能帮忙吗?
odysiusbt 123 发布 提问于 五月 29
0
1 个回答 18 次浏览
更新到 PTXprint 3.0.25 后,我发现 缩小/放大(按文本大小百分比) 选项(通过 PDF 预览器中的右键菜单访问)似乎没有任何效果 我可以看到当前书籍的 AdjList 中记录了我的请求,但文本布局似乎完全未受影响 缩小 -1 ... 安装 3.0.18 后, 缩小/放大(按文本大小百分比) 功能又恢复正常了 还有其他人也遇到同样的问题吗?
[Expert]
jmkla
290 发布
提问于 五月 13
PTXprint
0
5 个回答 108 次浏览
当我在 PTXprint 中首次创建项目时,可以将其链接到一个现有的 PT 项目 我注意到,有时 PT 数据中的更改会自动 拉取 到 PTXprint 项目中 问题 我想知道触发这些更新的机制是什么,以及用户是否可以请求 刷新 请告知我可以 ... 能会反向传递 (这对某些人来说听起来熟悉吗?这不是理想的工作流程,但有时会发生 )因此,我提出了这个问题
Tim 934 发布 提问于 四月 24
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
I urge you, brothers and sisters, to watch out for those who cause divisions and put obstacles in your way that are contrary to the teaching you have learned. Keep away from them.
Romans 16:17
3,045 个问题
6,005 个回答
5,671 条评论
2,026 位用户