關於這些功能的文件非常稀少。它們被包含在 PTXprint 中,是為了讓進階或舊版使用者能夠繼續使用自己的 .tex 程式碼和自訂樣式表。它們也可以用於在日誌檔案中設定追蹤資訊,以協助疑難排解。鑑於 PTXprint 現在擁有完整的樣式編輯器介面,很少有人需要再使用 .sty 檔案選項。
我個人最喜歡的是使用「套用指定變更」(Apply Changes Specified)來進行全域變更。這些檔案中的規則基本上是「尋找某物」(Find something)>「取代為其他內容」(Replace with something else),但也有一些強大的延伸功能:
將詞彙書(Glossary)的書目條目轉為縮排項目清單,而非一般段落
at GLO "\\p \\k " > "\ili \k "
僅針對馬可福音,在引言大綱(Introductory Outline)的標題之前插入換頁
at MRK "(\\iot बगा बतल मंता)" > "\pb\r\n\1"
請注意,您也可以使用正規表示式(regular expressions)。
隱藏不需要的數字,例如 (10,000) 標記:
'\([\d–,-]+\) ' > ''
還有這種可能性:
在「特定環境內」(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\\*"
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 顯示原文