使用公式更新 TOC

发布于 2024-09-27 10:36:00 字数 160 浏览 0 评论 0原文

我已经使用公式更新了 Word 文档中的页码。现在页码有1、1、2、2、3、3等系列。

但是,TOC中的数字仍然与以前相同。我尝试使用 MS Word 2007 & 中提供的“更新字段”选项来更新它们。 2010。

我可以在这里使用公式来更改页码吗?如果是,怎么办?

I've updated page numbers in my word document using a formula. Now page numbers have series like 1,1,2,2,3,3..

But, the numbers in TOC are still same as previous. I've tried updating them using "Update field" option available in MS Word 2007 & 2010.

Can I use formula here also to change page numbers? if yes, how?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

漫雪独思 2024-10-04 10:36:00

我花了一些时间才弄清楚这一点,因为我之前没有使用公式做过,但我发现如果在页脚中切换页码的字段代码,您将看到它用于的实际公式显示您的页码,它应该类似于 {PAGE}。如果您仔细观察,您会发现 {} 以粗体显示。我通过公式操作这些页码的方法是,先按 CTRL+F9 获取粗体大括号,然后按 =,然后按 CTRL+F9 获取另一组大括号并在其中键入 PAGE,然后在其后键入* 2,然后我将 {PAGE} * 2 括在括号中。结果看起来像这样:{=({PAGE}*2)}。最终文档仅包含该论坛后面的偶数页码:2、4、6、8 等。希望这对您的探索有所帮助。

It took me a little while to figure this out because I hadn't done it with a formula before, but I found that if toggle the field code for your page numbers in your footer, you'll see the actual formula it is using to show your page numbers, and it should look something like {PAGE}. If you pay close attention, you'll notice that the {} are in bold. What I did to manipulate these page numbers via a formula, I hit CTRL+F9 to get the bold curly brackets, then =, then CTRL+F9 to get another set of curly brackets and typed PAGE inside of those, then after it I typed * 2, then I surrounded {PAGE} * 2 in parenthesis. It resulted in something that looks like this: {=({PAGE}*2)}. The final document has only even page numbers that follow that forumla: 2, 4, 6, 8, etc. Hopefully that helps you in your quest.

诺曦 2024-10-04 10:36:00

TOC 由隐藏的内部书签构建。因此,每个页面都有一个在创建目录时分配的书签,该书签以 _Toc... 开头,这是它的逻辑页码(1、2、3 等)。目录使用您在页眉/页脚中更改的内容作为书签。

为了执行您所要求的操作,您必须将每个页码分配给书签,然后使用字段代码{ PAGEREF yourPageNumberBookmark 手动创建目录>}{ 超链接 }

The TOC is built from hidden, internal bookmarks. So every page has a bookmark that is assigned when the TOC is created that starts with _Toc... which is it's logical page number (1, 2, 3, etc.). The TOC does not use what you have changed in the header/footer as the bookmark.

In order to do what you are asking, you will have to assign each of your page numbers to a bookmark and then manually create a TOC with field codes { PAGEREF yourPageNumberBookmark } inside of a { HYPERLINK }

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文