我已在 Paratext 設定中新增了一個使用者自訂標記。我需要它來指定一種稱為「釋經縮排」(exegetical indentation)的東西。基本上,這只是在文本的各個位置添加的一個數字。它的運作方式有點像節號,只是這些數字並非連續的。
為了讓這運作正常,我已在 custom.sty 中添加了以下內容:
\Marker zei
\Endmarker zei*
\Name zei...zei* - Number for exegetical indent
\Description A number indicating the exegetical indentation value
\OccursUnder lh li li1 li2 li3 li4 lf lim lim1 lim2 lim3 lim4 m mi nb p pc ph phi pi pi1 pi2 pi3 pr pmo pm pmc pmr po q q1 q2 q3 q4 qc qr qd qm qm1 qm2 qm3 tr tc1 tc2 tc3 tc4 tcr1 tcr2 tcr3 tcr4 s3 d sp
\TextType Other
\TextProperties nonpublishable
\StyleType Character
\FontSize 9
\Color 16711935 在 Paratext 的標準版面配置中,這會以指定的顏色和字體大小顯示如 "\zei 7 \zei*" 的文本,這正是預期的效果。問題在於,我更希望只寫 "\zei 7",而不是 "\zei 7 \zei*"。換句話說,我希望該標記能像節號一樣運作,只需寫 "\v 7" 即可。
但如果我從 custom.sty 中移除 \Endmarker 行,Paratext 會以指定的字體大小顯示後續的所有文本,而我希望它只影響該數字——就像處理 \v 7 時那樣。
我該如何讓 \zei 僅接受一個數字作為參數?
I have added a user-defined marker to my Paratext setup. I need it to specify something called the exegetical indentation. Basically this is just a number that is added at various places in the text. It works somewhat like a verse number, except the numbers are not consecutive.
In order to make this work, I have added this to custom.sty:
\Marker zei
\Endmarker zei*
\Name zei...zei* - Number for exegetical indent
\Description A number indicating the exegetical indentation value
\OccursUnder lh li li1 li2 li3 li4 lf lim lim1 lim2 lim3 lim4 m mi nb p pc ph phi pi pi1 pi2 pi3 pr pmo pm pmc pmr po q q1 q2 q3 q4 qc qr qd qm qm1 qm2 qm3 tr tc1 tc2 tc3 tc4 tcr1 tcr2 tcr3 tcr4 s3 d sp
\TextType Other
\TextProperties nonpublishable
\StyleType Character
\FontSize 9
\Color 16711935 In Paratext's standard layout, this displays a text such as "\zei 7 \zei*" in the specified color and font size, as it should. The problem is that I would prefer to write just "\zei 7" rather than "\zei 7 \zei*". In other words, I want the marker to work like verse numbers, where you just write "\v 7".
But if I remove the \Endmarker line from custom.sty, Paratext displays all the following text in the specified font size, and I want it to affect only the number - just like it does with \v 7.
How can I make \zei just take a number as its argument?
機器翻譯自 English 顯示原文