0
350 次浏览

有没有办法在文本的某些部分周围添加方框或边框线?比如先有几段普通文本,然后有几段文本在方框内?

我知道这不会内置于 ptxprint 中,但我愿意编辑 ptxprint-mods.tex 文件。

机器翻译自 English
PTXprint (1.9k 分) 发布 | 350 次浏览

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 系统所花的时间,会比将其转换为 Bible Module/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测试 ... 任何时间表 5. 我的测试能发现每一个最后的错误 David Gardner (SIL, 欧亚地区,但实际上并不在敏感项目中)
DG 1.1k 发布 提问于 十月 10, 2025
0
2 个回答 250 次浏览
更新 PTXprint 后,它现在在所有经文文本周围都添加了一个文本边框。我该如何去除它? 它只在其中一个使用阿拉伯文字的项目中这样做,而在罗马文字项目中并没有。 这与我们在页面上添加的边框不同。
debbodaneejo 118 发布 提问于 八月 23, 2023
0
1 个回答 69 次浏览
许多新约译本将马可福音 9 章 1 节表示为从段落中间开始,而不是让马可福音 9:1 开始一个新段落 在 Paratext 中,我认为这应该用类似 USFM 章节标记,然后是一个节标记(用于第 1 节),接着是一个不换行段落标记(\ ... 9 章开始了一个新段落,尽管在 Paratext 中并不是这样标记的 其他人遇到过这种情况吗,或者知道解决方案吗?
jeffdod 104 发布 提问于 五月 26
0
2 个回答 336 次浏览
我正在处理一个从 RTL(从右到左)项目转换而来的 LTR(从左到右)音译项目 不知为何,PDF 导出时数字周围的标点符号方向有时会颠倒 在 Paratext 中显示一切正常,例如: 但在 PDF 导出中看起来是这样的: 有时是正常的,但经 ... 普通 的 LTR 项目中没有观察到这种行为,只在音译项目中出现 是否有某些从源项目遗留下来的设置需要我更改?
DVM 175 发布 提问于 七月 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 发布 提问于 三月 6, 2020
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
So Peter was kept in prison, but the church was earnestly praying to God for him.
Acts 12:5
3,049 个问题
6,007 个回答
5,672 条评论
2,029 位用户