如何在 Microsoft Word 2010 查看的 RTF 文档中居中对齐页脚和页眉?
我编写了一个 RTF 文件,其中包含一个带有页眉和页脚的页面。我试图让页眉和页脚居中对齐。但是,似乎无论我做什么,Microsoft Word 2010 中的页眉和页脚总是左对齐。其他程序(例如 Quick View Plus)似乎可以很好地居中对齐文本。我在这里搞乱了 RTF 吗?或者 Microsoft Word 2010 有问题吗? RTF的内容如下:
{\rtf1\ansi\ansicpg1252\deff0\deflang1033
{\fonttbl{\f0\fmodern\fprq1\fcharset0 Courier New;}}
{\header
\viewkind4\uc1\pard\f0\fs20\qc
HEADER
}
{\footer
\viewkind4\uc1\pard\f0\fs20\qc
FOOTER
}
\margl200\margr200\margt200\margb200
\viewkind4\uc1\pard\f0\fs20\sl495
000001\par
01 \line
02 UNITED STATES DISTRICT COURT\line
03 SOUTHERN DISTRICT OF NEW YORK\line
04 DOCKET No. (DAB)\line
05 --------------------------------------------x\line
06 BLAH BLAH, et al,\line
07 Plaintiffs,\line
08 vs\line
09 BLAH BLAH., et al,\line
10 Defendants\line
11 --------------------------------------------x\line
12 \line
13 EXAMINATION BEFORE TRIAL of BLAH BLAH\line
14 New York, New York\line
15 Tuesday, December 14, 2004, 10:22 a.m.\line
16 \line
17 \line
18 \line
19 \line
20 \line
21 \line
22 \line
23 \line
24 \line
25 \line
}
I have an RTF file that I've written which has a single page with a header and a footer. I'm trying to get the header and footer be center-aligned. However, it seems like no matter what I do, the header and footer always appear to be left-aligned in Microsoft Word 2010. Other programs (such as Quick View Plus) seem to center-align the text just fine. Am I messing up the RTF here? Or is there an issue with Microsoft Word 2010? The contents of the RTF are as follows:
{\rtf1\ansi\ansicpg1252\deff0\deflang1033
{\fonttbl{\f0\fmodern\fprq1\fcharset0 Courier New;}}
{\header
\viewkind4\uc1\pard\f0\fs20\qc
HEADER
}
{\footer
\viewkind4\uc1\pard\f0\fs20\qc
FOOTER
}
\margl200\margr200\margt200\margb200
\viewkind4\uc1\pard\f0\fs20\sl495
000001\par
01 \line
02 UNITED STATES DISTRICT COURT\line
03 SOUTHERN DISTRICT OF NEW YORK\line
04 DOCKET No. (DAB)\line
05 --------------------------------------------x\line
06 BLAH BLAH, et al,\line
07 Plaintiffs,\line
08 vs\line
09 BLAH BLAH., et al,\line
10 Defendants\line
11 --------------------------------------------x\line
12 \line
13 EXAMINATION BEFORE TRIAL of BLAH BLAH\line
14 New York, New York\line
15 Tuesday, December 14, 2004, 10:22 a.m.\line
16 \line
17 \line
18 \line
19 \line
20 \line
21 \line
22 \line
23 \line
24 \line
25 \line
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试在标题文本后添加 \par 。
Try adding \par after your header text.