关于这些功能的文档非常稀少。它们被包含在 PTXprint 中,是为了让高级/遗留用户能够继续使用自己的 .tex 代码和自定义样式表。它们还可以用于在日志文件中设置跟踪信息,以协助故障排除。鉴于 PTXprint 现在拥有完整的样式编辑器界面,很少有人需要使用 .sty 文件选项。
我个人最喜欢的是使用“应用指定更改”(Apply Changes Specified)来进行全局更改。这些文件中的规则基本上是“查找某内容” > “替换为其他内容”,但也有一些强大的扩展功能:
将词汇表(Glossary)中的书籍条目转换为缩进的项目列表,而不是普通段落
at GLO "\\p \\k " > "\ili \k "
仅针对《马可福音》,在引言大纲(Introductory Outline)的标题之前插入分页符
at MRK "(\\iot बगा बतल मंता)" > "\pb\r\n\1"
请注意,您也可以使用正则表达式。
隐藏带有 (10,000) 标记的不需要的数字:
'\([\d–,-]+\) ' > ''
还有这种可能性:
在“特定环境内”:“查找此内容” > “替换为此内容”
in "(?sm)\\qt-s\\*.+?\\qt-e\\*": "(?sm)(\\s .+?\r?\n(\\r .+?\r?\n\\p)?)" > "\\qt-e\\*\r\n\1\r\n\\qt-s\\*"
There is very sparse documentation about these features. They are included in PTXprint to enable advanced/legacy users to continue using their own .tex code and custom stylesheets. They can also be used to setup tracing information in the log files to assist with troubleshooting. Given that there is now a full-blown Style editor interface in PTXprint, it is rare that anyone would need to use the .sty file options.
My personal favourite is to use the “Apply Changes Specified” to make global changes. The rules in these files are essentially “Fiind something” > “Replace with something else”, but there are some powerful extensions too:
Turn Glossary book entries into indented list of items rather than normal paragraphs
at GLO "\\p \\k " > "\ili \k "
Just for the gospel of Mark, insert a page break BEFORE the title of the Introductory Outline
at MRK "(\\iot बगा बतल मंता)" > "\pb\r\n\1"
Note that you can use regular expressions too.
Hide the unwanted numbers with (10,000) markup:
'\([\d–,-]+\) ' > ''
There is also this possibility:
in “within a specific environment”: “find-this” > “replace-with-that”
in "(?sm)\\qt-s\\*.+?\\qt-e\\*": "(?sm)(\\s .+?\r?\n(\\r .+?\r?\n\\p)?)" > "\\qt-e\\*\r\n\1\r\n\\qt-s\\*"
机器翻译自 English