全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2526 4
2010-09-18
如果想将title的内容居中,是不是用justify=center这个option?
e.g. TITLE3  '(3b) Resorted by LN, Last Name'  justify=center;

我试了好多遍都是left justified呢,是不是和版本有关呢?(我用的是9.1.3)
很小的问题但就是解决不了,真急人。先在此谢谢各位了!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2010-9-18 11:17:35
MissGoldenWeek 发表于 2010-9-18 02:14
如果想将title的内容居中,是不是用justify=center这个option?
e.g. TITLE3  '(3b) Resorted by LN, Last Name'  justify=center;

我试了好多遍都是left justified呢,是不是和版本有关呢?(我用的是9.1.3)
很小的问题但就是解决不了,真急人。先在此谢谢各位了!
Justification in TITLE statement specifies formatting options for the ODS HTML, RTF, and PRINTER destinations. It is nothing to do with your SAS version.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-9-18 22:04:41
谢ls, 那如果我想title在.lst文件中居中,有没有什么方法?
BTW, 我说的title居中是指相对下面输出的内容居中,不是options center让整个内容居中的那种。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-9-19 11:54:49
MissGoldenWeek 发表于 2010-9-18 22:04
谢ls, 那如果我想title在.lst文件中居中,有没有什么方法?
BTW, 我说的title居中是指相对下面输出的内容居中,不是options center让整个内容居中的那种。
Yes! you have to code it yourself.

Here is the idea,
1) get the linsize value from system option setting.
2) Calculate the center position or start point and padding other with nonprintable characters.

You can use a lot of building in features in ODS/rtf without doing any programmings. Nice isn't it?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-9-20 02:02:27
谢ls!
没想到还是有点麻烦的,我以为会有某个option直接可以解决呢
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群