0
351 次瀏覽

有沒有辦法在文字的某些部分周圍加上框線或邊框?也就是說,先有幾段普通文字,然後在框線內再放幾段文字?

我知道這不會內建在 ptxprint 中,但我願意編輯 ptxprint-mods.tex 檔案。

機器翻譯自 English
PTXprint (1.9k 點) 提出 | 351 次瀏覽

3 個回答

0

As in scripture text?

You can probably use the style start- and end-hooks, or there are chapter-verse hooks too, depending on what you want to do. You’d have the start hook say something like {\setbox1=\vbox\bgroup}, the end-hook say {\egroup ....}
with the … putting a box around your text. The text in the box wouldn’t be able to break across a page or column break.

With sufficient set-up along the lines of \let\b@drleft\tr@e \let\b@drright\tr@e ...
you could call the \mkb@rdr macro that is in the ptx-extended.tex file.

If you’re talking about non-scriprure text, (e.g. then framed \esb side bars are supported in the macros, though they’ve not been very well tested).

(294 點) 提出

感謝您的說明。

關於我正在做的事情,提供一些背景資訊:這是一份小冊子,基本上是一本聖經研讀本。內容是一系列穿插著問答的聖經經文。我希望問答部分在視覺上與經文有所區分,因此希望使用框線。

我幾年前曾在 Latex 中這樣做過,但我懷疑重新啟動並正確運行該 Latex 系統所花費的時間,會比將內容轉換為聖經模組/ptx2pdf 系統更長。此外,ptx2pdf 系統可以讓我將 Paratext 草稿中的最新更改導入文件。

基於此,使用 \esb 側邊欄是最好的方法嗎?我在 https://github.com/sillsdev/ptx2pdf/blob/master/docs/dev/SideBars.md 找到了文件,但其中沒有關於 \esb 標記實際用法或其語法的示例。我的技術水平通常可以通過查看示例並將其轉換為自己的用途,但我無法閱讀代碼並確定語法應該是什麼。

您能否給我一些示例,說明我應該如何輸入內容才能使其顯示出來?

機器翻譯自 English
0

嗯,我的意圖是側欄最終會完全符合您的期望——成為一份手工製作的 tex/latex 研究小冊子文件,我不確定它目前是否已達到您想要的程度,但可能會。

作為使用的第一個範例,您可能想查看這個目錄,其中包含一個微型的「一切是否正常運作」測試文件:

運行後的結果大致如下:

機器翻譯自 English
(294 點) 提出
0

Oops, sorry, I hit reply too soon.

Styling of stuff in a side bar uses the \cat ... \cat* USFM marker to pick a category (see also Categories.md) and a stylesheet-like file to define what that category of sidebar looks like, see mycats.sty in the above directory.
If you load it with this command, below, rather than \stylesheet then it takes care of some house-keeping for you.

\categorysheet{mycats.sty}

Alternatively, make sure your stylesheet ends with \EndCategory
I don’t think the GUI has much support for editing category sheets by hand, but notice that you can - within a category - redefine how a (any!) marker behaves - thus the \p markers in the pink-background boxes are centred, but normal \p markers are not.

Background images and the \FgImage ‘category marker’ mentioned in the sidebars.md document you found are not yet implemented, but borders and background colour are. So far turning on \Breakable has been an unmitigated disaster… I think I understand why the disaster happens, just not how to resolve it.

(294 點) 提出

補充一下 David 的優秀示例,您也可以使用 Paratext 模組。這將允許您撰寫問題,然後從您的項目中導入經文,而不必在經文中穿插問題。這樣可以保持內容更整潔。您也可能決定將經文放在側邊欄中,而將問題作為主要文字。但這取決於您的決定和設計。

機器翻譯自 English
我正在嘗試做類似 mnjames 的事情,針對我們新約每卷書的引言。我希望引言放在一個灰色背景的框中。每個引言大約兩頁 A5 長。據我目前所知,就像 2021 年這個主題活躍時的情況一樣,由 \esb 創建的框似乎無法跨頁邊界斷行。所以我想知道是否有任何變化而我忽略了,或者是否有變通方法。
機器翻譯自 English

相關問題

0
0 個回答 33 次瀏覽
大家好, 請問這裡是否有人有專案,其出版商或社群希望看到僅有一欄帶有邊框/框線的双語對照本? 例如:希臘文文本(無論是否有逐行對照)被框在邊框內? 如果是這樣,您的專案有機會被用於一個尚未合併功能的 Alpha 測試 ... 4. 任何時間表 5. 我的測試能發現最後一個錯誤 David Gardner (SIL, 歐亞地區,但實際上不在敏感專案中)
DG 1.1k 提出 已提問 10月 10, 2025
0
2 個回答 250 次瀏覽
更新 PTXprint 後,現在所有經文文字周圍都出現了文字邊框。我該如何去除它?這只在一個使用阿拉伯文字體(Arabic script)的專案中發生,在使用羅馬字母(Roman script)的專案中則沒有。 這與我們加在頁面(page)上的邊框不同。
debbodaneejo 118 提出 已提問 8月 23, 2023
0
1 個回答 69 次瀏覽
許多新約聖經將馬可福音第九章第一節表示為從段落中間開始,而不是讓馬可福音 9:1 開始一個新段落 在 Paratext 中,我想這會以類似 USFM 章節標記 然後是節標記(針對第 1 節) 接著是一個不換行段落標記(\nb)的方式 ... 起來像是第九章開始了一個新段落,儘管在 Paratext 中並非如此標記 有其他人處理過這個問題,或知道解決方案嗎?
jeffdod 104 提出 已提問 5月 26
0
2 個回答 336 次瀏覽
我正在處理一個從右至左(RTL)專案轉換為從左至右(LTR)的音譯專案 不知何故,PDF 匯出中數字周圍標點符號的方向有時會反轉 在 Paratext 中一切看起來都正常,例如: 但在 PDF 匯出中,它看起來像這樣: 有時是正常的,但通常非常 ... 專案中沒有觀察到這種行為,只有在音譯專案中才會出現 是否有一些從來源專案遺留下來 需要我更改的設定?
DVM 175 提出 已提問 7月 8, 2021
0
1 個回答 299 次瀏覽
In a recent update, it appears that the height of certain text boxes in dialogues has become fixed. See, for example, the alphabetic ... xed855 671 10.3 KB I'm using 9.0.100.16.
drwww 448 提出 已提問 3月 6, 2020
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
All the believers were one in heart and mind. No one claimed that any of their possessions was their own, but they shared everything they had.
Acts 4:32
3,049 個問題
6,007 個回答
5,672 則評論
2,029 位使用者