• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Inline formatting with_markup
 

Inline formatting with_markup

on

  • 238 views

ODS inline formatting has become very powerful. Even moreso when using it with ODS Markup.

ODS inline formatting has become very powerful. Even moreso when using it with ODS Markup.

Statistics

Views

Total Views
238
Views on SlideShare
238
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Inline formatting with_markup Inline formatting with_markup Presentation Transcript

    • Inline formatting with ODS Markup Eric GebhartCopyright © 20088 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.
    • TWAS BRILLIG, AND THE SLITHY TOVES,DID GYRE AND GIMBLE IN THE WABE Sir John Tenniel
    • ods escapechar="*" ; InlineFormattingCopyright © 2007, SAS Institute Inc. All rights reserved.
    • ods escapechar="*" ; Inline title This is *{style [color=red] Red};FormattingCopyright © 2007, SAS Institute Inc. All rights reserved.
    • ods escapechar="*" ; Inline title This is *{style [color=red] Red};FormattingCopyright © 2007, SAS Institute Inc. All rights reserved.
    • ~{dagger} ~{sigma} ~{unicode <Hex | name>} Built in ~{super text} Functions ~{sub text} ~{raw <type> text} ~{style <style> <[attributes]> text}Copyright © 2007, SAS Institute Inc. All rights reserved.
    • Built in FunctionsCopyright © 2007, SAS Institute Inc. All rights reserved.
    • Built in title3 Example of ^{nbspace 3} Non-Breaking Spaces Function; FunctionsCopyright © 2007, SAS Institute Inc. All rights reserved.
    • Built in title3 Example of ^{nbspace 3} Non-Breaking Spaces Function; FunctionsCopyright © 2007, SAS Institute Inc. All rights reserved.
    • Built in title4 Example of ^{newline 2} Newline Function; FunctionsCopyright © 2007, SAS Institute Inc. All rights reserved.
    • Built in title4 Example of ^{newline 2} Newline Function; FunctionsCopyright © 2007, SAS Institute Inc. All rights reserved.
    • Built in title6 Example of ^{unicode 03B1} UNICODE function; FunctionsCopyright © 2007, SAS Institute Inc. All rights reserved.
    • Built in title6 Example of ^{unicode 03B1} UNICODE function; FunctionsCopyright © 2007, SAS Institute Inc. All rights reserved.
    • Text DecorationCopyright © 2007, SAS Institute Inc. All rights reserved.
    • title7 " ^{style [textdecoration = underline] Text Switching from underline to} Decoration ^{style [textdecoration = line_through] line-through, then} ^{style [textdecoration = overline] overline}. ";Copyright © 2007, SAS Institute Inc. All rights reserved.
    • title7 " ^{style [textdecoration = underline] Text Switching from underline to} Decoration ^{style [textdecoration = line_through] line-through, then} ^{style [textdecoration = overline] overline}. ";Copyright © 2007, SAS Institute Inc. All rights reserved.
    • UnicodeCopyright © 2007, SAS Institute Inc. All rights reserved.
    • data work.unicode; input @1 name $25. @27 value $4.; datalines; Unicode Snowman Black Knight 2603 265E White Rook 2656 Snowflake 2744 Two Fifths 2156 Greater Than or Equal To 2267Copyright © 2007, SAS Institute Inc. All rights reserved.
    • header = Symbol; Unicode compute as ^{unicode || value || };Copyright © 2007, SAS Institute Inc. All rights reserved.
    • define style styles.bigprinter; parent=styles.printer; class systemtitle, data, header / fontsize = 40pt ; end; run; /* Generate report */ ods pdf file="unicode.pdf" style=styles.bigprinter; ods html file="unicode.html" style=styles.bigprinter; data _null_; set work.unicode; file print ods=(template=unitable); put _ods_; run; ods _all_ close; Unicode 4Copyright © 2007, SAS Institute Inc. All rights reserved.
    • ods escapechar="*" ; Inline FormattingCopyright © 2007, SAS Institute Inc. All rights reserved.
    • ods escapechar="*" ; title "test Inline *{style [foreground=red] of *{super *{unicode ALPHA} Formatting *{style [foreground=green] text} } formatting } and such" ;Copyright © 2007, SAS Institute Inc. All rights reserved.
    • ods escapechar="*" ; Inline FormattingCopyright © 2007, SAS Institute Inc. All rights reserved.
    • ods escapechar="*" ; Inline FormattingCopyright © 2007, SAS Institute Inc. All rights reserved.
    • ods escapechar="*" ; title "test of *{style [foreground=red] red Inline *{style [foreground=green] green } Formatting and *{style [foreground=blue] blue } formatting } and such" ;Copyright © 2007, SAS Institute Inc. All rights reserved.
    • ods escapechar="*" ; title "test of *{super *{style [foreground=red] red Inline *{style [foreground=green] green } Formatting and *{style [foreground=blue] blue } formatting } } and such" ;Copyright © 2007, SAS Institute Inc. All rights reserved.
    • ods escapechar="*" ; title "test of *{super *{style [foreground=red] red Inline *{style [foreground=green] green } Formatting *{style [fontsize=18pt] and *{style [foreground=blue] blue } } formatting } } and such" ;Copyright © 2007, SAS Institute Inc. All rights reserved.
    • BEWARE THE JABBERWOCK,MY SON! THE JAWS THAT BITE,THE CLAWS THAT CATCH!Sir John Tenniel
    • ods escapechar="*" ; Inline Formatting title This is *{super SUPER text} With This is Tagsets *{sub SUB text};Copyright © 2007, SAS Institute Inc. All rights reserved.
    • ods escapechar="*" ; Inline Formatting title This is *{super SUPER text} With This is Tagsets *{sub SUB text};Copyright © 2007, SAS Institute Inc. All rights reserved.
    • Format Functions Are Events! define event super; start: put "<sup>" ; put VALUE; put "</sup>" ; end ;
    • SO RESTED HE BY THE TUMTUM TREE,AND STOOD AWHILE IN THOUGHT
    • define event line; Other put "<hr>"; Events? end;Copyright © 2007, SAS Institute Inc. All rights reserved.
    • Other Events?Copyright © 2007, SAS Institute Inc. All rights reserved.
    • title1 " Other Events?Copyright © 2007, SAS Institute Inc. All rights reserved.
    • title1 " Example ^{style [foreground=red] of Other Events?Copyright © 2007, SAS Institute Inc. All rights reserved.
    • title1 " Example ^{style [foreground=red] of ^{line} a unicode Alpha Other Events?Copyright © 2007, SAS Institute Inc. All rights reserved.
    • title1 " Example ^{style [foreground=red] of ^{line} a unicode Alpha Other ^{unicode ALPHA} Events?Copyright © 2007, SAS Institute Inc. All rights reserved.
    • title1 " Example ^{style [foreground=red] of ^{line} a unicode Alpha Other ^{unicode ALPHA} with some lines Events?Copyright © 2007, SAS Institute Inc. All rights reserved.
    • title1 " Example ^{style [foreground=red] of ^{line} a unicode Alpha Other ^{unicode ALPHA} with some lines Events? }Copyright © 2007, SAS Institute Inc. All rights reserved.
    • title1 " Example ^{style [foreground=red] of ^{line} a unicode Alpha Other ^{unicode ALPHA} with some lines Events? } ^{newline}Copyright © 2007, SAS Institute Inc. All rights reserved.
    • title1 " Example ^{style [foreground=red] of ^{line} a unicode Alpha Other ^{unicode ALPHA} with some lines Events? } ^{newline} ^{line}Copyright © 2007, SAS Institute Inc. All rights reserved.
    • title1 " Example ^{style [foreground=red] of ^{line} a unicode Alpha Other ^{unicode ALPHA} with some lines Events? } ^{newline} ^{line} ";Copyright © 2007, SAS Institute Inc. All rights reserved.
    • title1 " Example ^{style [foreground=red] of ^{line} a unicode Alpha Other ^{unicode ALPHA} with some lines Events? } ^{newline} ^{line} ";Copyright © 2007, SAS Institute Inc. All rights reserved.
    • Define event inline_image; Inline d put "<img"; Image putq "src=" value; Function put ">"; end;Copyright © 2007, SAS Institute Inc. All rights reserved.
    • Inline Image FunctionCopyright © 2007, SAS Institute Inc. All rights reserved.
    • title2 " Inline Image FunctionCopyright © 2007, SAS Institute Inc. All rights reserved.
    • title2 " Example Inline Image FunctionCopyright © 2007, SAS Institute Inc. All rights reserved.
    • title2 " Example Inline ^{style [color=green] of Image FunctionCopyright © 2007, SAS Institute Inc. All rights reserved.
    • title2 " Example Inline ^{style [color=green] of ^{line} an image Image FunctionCopyright © 2007, SAS Institute Inc. All rights reserved.
    • title2 " Example Inline ^{style [color=green] of ^{line} an image Image ^{inline_image Droplet.jpg} FunctionCopyright © 2007, SAS Institute Inc. All rights reserved.
    • title2 " Example Inline ^{style [color=green] of ^{line} an image Image ^{inline_image Droplet.jpg} Function ^{newline}Copyright © 2007, SAS Institute Inc. All rights reserved.
    • title2 " Example Inline ^{style [color=green] of ^{line} an image Image ^{inline_image Droplet.jpg} Function ^{newline} ^{line}Copyright © 2007, SAS Institute Inc. All rights reserved.
    • title2 " Example Inline ^{style [color=green] of ^{line} an image Image ^{inline_image Droplet.jpg} Function ^{newline} ^{line} }Copyright © 2007, SAS Institute Inc. All rights reserved.
    • title2 " Example Inline ^{style [color=green] of ^{line} an image Image ^{inline_image Droplet.jpg} Function ^{newline} ^{line} } ";Copyright © 2007, SAS Institute Inc. All rights reserved.
    • Inline Image FunctionCopyright © 2007, SAS Institute Inc. All rights reserved.
    • Inline Image FunctionCopyright © 2007, SAS Institute Inc. All rights reserved.
    • The Super Duper Function
    • The Super Duper Functiondefine tagset tagsets.sdhtml; parent=tagsets.html4; define event superDuper; put ‘<span style="border-width:1;’ put ‘ border-style:solid;’ put ‘ border-color: black;"> ‘nl;
    • Alternate Super and Subset $word scan(value, 1, );do /while !cmp($word, ); do /if mod($count, 2); put <sup> $word </sup>; else; put <sub> $word </sub>; done; eval $count $count + 1; set $word scan(value, $count, );done;
    • ods escapechar="*" ; Using the Super Duper Inline Formatting EventCopyright © 2007, SAS Institute Inc. All rights reserved.
    • ods escapechar="*" ; Using the Super title This is Duper *{superduper SUPER DUPER text Inline } Formatting This is Event *{sub SUB text};Copyright © 2007, SAS Institute Inc. All rights reserved.
    • Using the define event include_file; set $read_file value; Readfile trigger readfile; Event end;Copyright © 2007, SAS Institute Inc. All rights reserved.
    • ods text=" Using the ~{style [font_style=italic] Readfile ~{include_file jabberwocky.txt} } Event ";Copyright © 2007, SAS Institute Inc. All rights reserved.
    • ods text=" Using the ~{style [font_style=italic] Readfile ~{include_file jabberwocky.txt} } Event ";Copyright © 2007, SAS Institute Inc. All rights reserved.
    • define event include_newlines; do /if cmp (value, True); Include set $include_newlines = True; else; New Lines else; unset $include_newlines; done; end;Copyright © 2007, SAS Institute Inc. All rights reserved.
    • define event process_data; Include put $record; put "<br>" /if $include_newlines; New Lines end;Copyright © 2007, SAS Institute Inc. All rights reserved.
    • ods text=" With ~{style [font_style=italic] New Lines } ~{include_file jabberwocky.txt} ";Copyright © 2007, SAS Institute Inc. All rights reserved.
    • ods text=" With ~{style [font_style=italic] ~{include_newlines True} New Lines ~{include_file jabberwocky.txt} } ";Copyright © 2007, SAS Institute Inc. All rights reserved.
    • With New LinesCopyright © 2007, SAS Institute Inc. All rights reserved.
    • TWAS BRILLIG, AND THE SLITHY TOVES,DID GYRE AND GIMBLE IN THE WABE Sir John Tenniel
    • So rested he by the tumtum tree,and stood awhile in thought
    • ODS and Tagset Resources http://EricGebhart.com e-mail: Eric@EricGebhart.comCopyright © 2007, SAS Institute Inc. All rights reserved.
    • Copyright © 2008, SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.