显示来自两个字段的文本,由不同数量的“.”分隔。符号,同时保留总字符串长度
我正在尝试使用 Filemaker 10 为小型出版物创建目录,因为这是之前存储数据的内容。
我能够生成页码、向目录添加标题以及几乎所有我需要做的事情 - 但有一件事是可以接受的。
我们的设计师希望用“.”填充每个目录行。使其更易于阅读。
当前:
Using Stack Overflow 1 Why Reddit is better than digg 7 Does Filemaker really suck this much 84 Ways to convince bosses 92 Ditching FileMaker 97
需要:
Using Stack Overflow..................................................1 Why Reddit is better than digg........................................7 Does Filemaker really suck this much.................................84 Ways to convince bosses..............................................92 Ditching FileMaker...................................................97
项目和页码位于不同的字段中。使用边框并不令人满意,因为它强调了一切。
解决方案?
I'm trying to create a Table of Contents for a small publication using Filemaker 10, since that's what the data has been stored in previously.
I'm able to generate page numbers, add heading to the TOC and pretty much everything else I've needed to do - one thing withstanding.
Our designer wants to fill each TOC line with "." to make it easier to read.
Currently:
Using Stack Overflow 1 Why Reddit is better than digg 7 Does Filemaker really suck this much 84 Ways to convince bosses 92 Ditching FileMaker 97
Wanted:
Using Stack Overflow..................................................1 Why Reddit is better than digg........................................7 Does Filemaker really suck this much.................................84 Ways to convince bosses..............................................92 Ditching FileMaker...................................................97
The item and page number are in different fields. Using a border is unsatisfactory because it underlines everything.
Solutions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用格式 -> 中的制表位来执行此操作。文本菜单
1) 创建具有以下定义的计算字段(引号中的字符是制表符):
2) 将此字段添加到布局中(它需要是实际字段,而不是合并字段)
3) 突出显示该字段并选择格式->文本->段落 -> tabs
4) 新建一个Tab,位置为6英寸,填充字符为“.”或“...”
现在,当查看时,从标题末尾到制表位 6 英寸的任何空间都将被填充字符填充。不需要等宽字体。
You can do this using tab stops in the Format -> Text menu
1) Create a calc field with the following definition (the character in the quotes is a tab):
2) Add this field to your layout (it needs to be an actual field, not a merge field)
3) Highlight the field and choose format -> text -> paragraph -> tabs
4) Create a new Tab with a position of 6 inches and a Fill Character of "." or "…"
Now when viewed, any space from the end of the title up to the tab stop 6 inches away is filled with the fill character. No monospace font required.
您需要将其分成几部分,然后以正确的间距放回去。像这样的事情会做:
我已将“文本”变量构建到计算中进行测试,但您可以将其作为自定义函数或仅在带有字段的计算中执行此操作。
另外,这假设您使用的是单倍间距字体,并且中间的间隙是空格字符。
You need to break it up into bits and then put it back with the right spacing. Something like this would do :
I've built the "text" variable into the calc for testing, but you could do this as a Custom Function or just inside a calculation with the field instead.
Also this assumes you're using a mono spaced font and the gap in the middle is a space character.