Dear all,
Is it possible to edit the font for a TITLE in the viewer with syntax (possibly basic Python or extension command)? Simply put, I think TITLES are usually too small to draw a reasonable amount of attention and I really don't feel like editing them manually. TIA! Ruben |
>Dear all,
> > >Is it possible to edit the font for a TITLE in the viewer with syntax (possibly basic Python or extension command)? Simply put, I think TITLES are usually too small to draw a reasonable amount of attention and I really don't feel like editing them manually. > > >TIA! > > >Ruben > Perhaps you could use the TEXT extension command instead, although I doubt that this repeats across pages. ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
In reply to this post by Ruben Geert van den Berg
You can use the SPSSINC MODIFY OUTPUT extension
command for this or the equivalent underlying scripting apis.
Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: Ruben van den Berg <[hidden email]> To: [hidden email], Date: 10/25/2012 12:19 AM Subject: [SPSSX-L] Edit font for TITLE with syntax? Sent by: "SPSSX(r) Discussion" <[hidden email]> Dear all, Is it possible to edit the font for a TITLE in the viewer with syntax (possibly basic Python or extension command)? Simply put, I think TITLES are usually too small to draw a reasonable amount of attention and I really don't feel like editing them manually. TIA! Ruben |
Thank you Jon and Albert-Jan!
But what's the OMS command identifier? If I try to copy-paste it, I get an empty string. (Screenshot: https://dl.dropbox.com/u/116120595/err_spss_copy_oms_cmd_id.jpg). Under "OMS identifiers" I didn't find any entry for neither "TITLE" nor "PAGE TITLE". TIA, Ruben Date: Thu, 25 Oct 2012 06:55:30 -0700 From: [hidden email] Subject: Re: Edit font for TITLE with syntax? To: [hidden email] You can use the SPSSINC MODIFY OUTPUT extension command for this or the equivalent underlying scripting apis. Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: Ruben van den Berg <[hidden email]> To: [hidden email], Date: 10/25/2012 12:19 AM Subject: [SPSSX-L] Edit font for TITLE with syntax? Sent by: "SPSSX(r) Discussion" <[hidden email]> Dear all, Is it possible to edit the font for a TITLE in the viewer with syntax (possibly basic Python or extension command)? Simply put, I think TITLES are usually too small to draw a reasonable amount of attention and I really don't feel like editing them manually. TIA! Ruben |
Note first that there are some preference
settings under Edit >Options>Viewer and settings under View >Outline
Font that may be helpful.
If you want more specific control, MODIFY OUTPUT will do it. OMS SUBTYPES only apply to tables, not titles, but you can use the OMS command identifier to select appropriate commands. MODIFY OUTPUT doesn't have built-in explicit font settings, but you can use html or rtf font specifications with the replace text option to set font family and size. Here's an example. SPSSINC MODIFY OUTPUT PAGETITLES TITLES /IF PROCESS=ALL /REPLACE ITEMS itemtitle="<html><font size=20>\\1</html>" outlinetitle="<html> <font size=20>\\1</html>". In this expression, \\1 stands for the existing text for the title. You can use this for font style and for different parts of the titles, since the replacement text can be arbitrary html or rtf. You could, for example, make certain words bold or italic. If you wanted this change to apply only to, say, titles in regression commands, you could write the IF subcommand as /IF COMMAND="regression" PROCESS=ALL. HTH, Jon Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: Ruben van den Berg <[hidden email]> To: [hidden email], Date: 10/25/2012 07:18 AM Subject: Re: [SPSSX-L] Edit font for TITLE with syntax? Sent by: "SPSSX(r) Discussion" <[hidden email]> Thank you Jon and Albert-Jan! But what's the OMS command identifier? If I try to copy-paste it, I get an empty string. (Screenshot: https://dl.dropbox.com/u/116120595/err_spss_copy_oms_cmd_id.jpg). Under "OMS identifiers" I didn't find any entry for neither "TITLE" nor "PAGE TITLE". TIA, Ruben Date: Thu, 25 Oct 2012 06:55:30 -0700 From: [hidden email] Subject: Re: Edit font for TITLE with syntax? To: [hidden email] You can use the SPSSINC MODIFY OUTPUT extension command for this or the equivalent underlying scripting apis. Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: Ruben van den Berg <[hidden email]> To: [hidden email], Date: 10/25/2012 12:19 AM Subject: [SPSSX-L] Edit font for TITLE with syntax? Sent by: "SPSSX(r) Discussion" <[hidden email]> Dear all, Is it possible to edit the font for a TITLE in the viewer with syntax (possibly basic Python or extension command)? Simply put, I think TITLES are usually too small to draw a reasonable amount of attention and I really don't feel like editing them manually. TIA! Ruben |
Dear Jon,
That helps a lot indeed! However, I was a little surprised by the <font> tag since I believe it's deprecated and will be removed from HTML5. I tried it with a "style" attribute with CSS parameters but this was ignored. What kind of HTML/CSS does SPSS use? Is this going to change anytime soon or can I safely keep using the <font> tag for another while? Thanks! To: [hidden email] CC: [hidden email] Subject: Re: [SPSSX-L] Edit font for TITLE with syntax? From: [hidden email] Date: Thu, 25 Oct 2012 08:19:05 -0700 Note first that there are some preference settings under Edit >Options>Viewer and settings under View >Outline Font that may be helpful. If you want more specific control, MODIFY OUTPUT will do it. OMS SUBTYPES only apply to tables, not titles, but you can use the OMS command identifier to select appropriate commands. MODIFY OUTPUT doesn't have built-in explicit font settings, but you can use html or rtf font specifications with the replace text option to set font family and size. Here's an example. SPSSINC MODIFY OUTPUT PAGETITLES TITLES /IF PROCESS=ALL /REPLACE ITEMS itemtitle="<html><font size=20>\\1</html>" outlinetitle="<html> <font size=20>\\1</html>". In this expression, \\1 stands for the existing text for the title. You can use this for font style and for different parts of the titles, since the replacement text can be arbitrary html or rtf. You could, for example, make certain words bold or italic. If you wanted this change to apply only to, say, titles in regression commands, you could write the IF subcommand as /IF COMMAND="regression" PROCESS=ALL. HTH, Jon Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: Ruben van den Berg <[hidden email]> To: [hidden email], Date: 10/25/2012 07:18 AM Subject: Re: [SPSSX-L] Edit font for TITLE with syntax? Sent by: "SPSSX(r) Discussion" <[hidden email]> Thank you Jon and Albert-Jan! But what's the OMS command identifier? If I try to copy-paste it, I get an empty string. (Screenshot: https://dl.dropbox.com/u/116120595/err_spss_copy_oms_cmd_id.jpg). Under "OMS identifiers" I didn't find any entry for neither "TITLE" nor "PAGE TITLE". TIA, Ruben Date: Thu, 25 Oct 2012 06:55:30 -0700 From: [hidden email] Subject: Re: Edit font for TITLE with syntax? To: [hidden email] You can use the SPSSINC MODIFY OUTPUT extension command for this or the equivalent underlying scripting apis. Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: Ruben van den Berg <[hidden email]> To: [hidden email], Date: 10/25/2012 12:19 AM Subject: [SPSSX-L] Edit font for TITLE with syntax? Sent by: "SPSSX(r) Discussion" <[hidden email]> Dear all, Is it possible to edit the font for a TITLE in the viewer with syntax (possibly basic Python or extension command)? Simply put, I think TITLES are usually too small to draw a reasonable amount of attention and I really don't feel like editing them manually. TIA! Ruben |
The html snippets that you can use in this
way do not use stylesheets. I can't make promises about the future,
but I would not expect such formatting tabs to be disallowed anytime soon.
Regards, Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: Ruben van den Berg <[hidden email]> To: [hidden email], Date: 10/25/2012 11:36 AM Subject: Re: [SPSSX-L] Edit font for TITLE with syntax? Sent by: "SPSSX(r) Discussion" <[hidden email]> Dear Jon, That helps a lot indeed! However, I was a little surprised by the <font> tag since I believe it's deprecated and will be removed from HTML5. I tried it with a "style" attribute with CSS parameters but this was ignored. What kind of HTML/CSS does SPSS use? Is this going to change anytime soon or can I safely keep using the <font> tag for another while? Thanks! To: [hidden email] CC: [hidden email] Subject: Re: [SPSSX-L] Edit font for TITLE with syntax? From: [hidden email] Date: Thu, 25 Oct 2012 08:19:05 -0700 Note first that there are some preference settings under Edit >Options>Viewer and settings under View >Outline Font that may be helpful. If you want more specific control, MODIFY OUTPUT will do it. OMS SUBTYPES only apply to tables, not titles, but you can use the OMS command identifier to select appropriate commands. MODIFY OUTPUT doesn't have built-in explicit font settings, but you can use html or rtf font specifications with the replace text option to set font family and size. Here's an example. SPSSINC MODIFY OUTPUT PAGETITLES TITLES /IF PROCESS=ALL /REPLACE ITEMS itemtitle="<html><font size=20>\\1</html>" outlinetitle="<html> <font size=20>\\1</html>". In this expression, \\1 stands for the existing text for the title. You can use this for font style and for different parts of the titles, since the replacement text can be arbitrary html or rtf. You could, for example, make certain words bold or italic. If you wanted this change to apply only to, say, titles in regression commands, you could write the IF subcommand as /IF COMMAND="regression" PROCESS=ALL. HTH, Jon Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: Ruben van den Berg <[hidden email]> To: [hidden email], Date: 10/25/2012 07:18 AM Subject: Re: [SPSSX-L] Edit font for TITLE with syntax? Sent by: "SPSSX(r) Discussion" <[hidden email]> Thank you Jon and Albert-Jan! But what's the OMS command identifier? If I try to copy-paste it, I get an empty string. (Screenshot: https://dl.dropbox.com/u/116120595/err_spss_copy_oms_cmd_id.jpg). Under "OMS identifiers" I didn't find any entry for neither "TITLE" nor "PAGE TITLE". TIA, Ruben Date: Thu, 25 Oct 2012 06:55:30 -0700 From: [hidden email] Subject: Re: Edit font for TITLE with syntax? To: [hidden email] You can use the SPSSINC MODIFY OUTPUT extension command for this or the equivalent underlying scripting apis. Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: Ruben van den Berg <[hidden email]> To: [hidden email], Date: 10/25/2012 12:19 AM Subject: [SPSSX-L] Edit font for TITLE with syntax? Sent by: "SPSSX(r) Discussion" <[hidden email]> Dear all, Is it possible to edit the font for a TITLE in the viewer with syntax (possibly basic Python or extension command)? Simply put, I think TITLES are usually too small to draw a reasonable amount of attention and I really don't feel like editing them manually. TIA! Ruben |
I am out of the office until October 30 and will not be checking my emails. If your issue is urgent, please contact Caroline Rodrigues ([hidden email]) Otherwise I will reply when I return.
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
In reply to this post by Jon K Peck
I will be out of the office until Monday, October 29th, with limited access to e-mail.
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
Free forum by Nabble | Edit this page |