SlideShare a Scribd company logo
1 of 74
Download to read offline
Inline formatting with ODS Markup
                                                                                                                                                                                                   Eric Gebhart




Copyright © 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="*" ;


   Inline
Formatting




Copyright © 2007, SAS Institute Inc. All rights reserved.
ods escapechar="*" ;


   Inline
                                                            title 'This is *{style [color=red] Red}';
Formatting




Copyright © 2007, SAS Institute Inc. All rights reserved.
ods escapechar="*" ;


   Inline
                                                            title 'This is *{style [color=red] Red}';
Formatting




Copyright © 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
               Functions




Copyright © 2007, SAS Institute Inc. All rights reserved.
Built in                                    title3 'Example of ^{nbspace 3}
                                                                    Non-Breaking Spaces Function';
               Functions




Copyright © 2007, SAS Institute Inc. All rights reserved.
Built in                                    title3 'Example of ^{nbspace 3}
                                                                    Non-Breaking Spaces Function';
               Functions




Copyright © 2007, SAS Institute Inc. All rights reserved.
Built in                                    title4 'Example of ^{newline 2}
                                                                    Newline Function';
               Functions




Copyright © 2007, SAS Institute Inc. All rights reserved.
Built in                                    title4 'Example of ^{newline 2}
                                                                    Newline Function';
               Functions




Copyright © 2007, SAS Institute Inc. All rights reserved.
Built in                                    title6 'Example of ^{unicode 03B1}
                                                                    UNICODE function';
               Functions




Copyright © 2007, SAS Institute Inc. All rights reserved.
Built in                                    title6 'Example of ^{unicode 03B1}
                                                                    UNICODE function';
               Functions




Copyright © 2007, SAS Institute Inc. All rights reserved.
Text
         Decoration




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.
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.
Unicode




Copyright © 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   2267



Copyright © 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


                                                                                                     4




Copyright © 2007, SAS Institute Inc. All rights reserved.
ods escapechar="*" ;




       Inline
    Formatting




Copyright © 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
    Formatting




Copyright © 2007, SAS Institute Inc. All rights reserved.
ods escapechar="*" ;




       Inline
    Formatting




Copyright © 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
          Function


Copyright © 2007, SAS Institute Inc. All rights reserved.
title2 "

            Inline
           Image
          Function


Copyright © 2007, SAS Institute Inc. All rights reserved.
title2 "
                                                               Example
            Inline
           Image
          Function


Copyright © 2007, SAS Institute Inc. All rights reserved.
title2 "
                                                               Example
            Inline                                             ^{style [color=green] of
           Image
          Function


Copyright © 2007, SAS Institute Inc. All rights reserved.
title2 "
                                                               Example
            Inline                                             ^{style [color=green] of
                                                                  ^{line} an image
           Image
          Function


Copyright © 2007, SAS Institute Inc. All rights reserved.
title2 "
                                                               Example
            Inline                                             ^{style [color=green] of
                                                                  ^{line} an image
           Image                                                  ^{inline_image Droplet.jpg}
          Function


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}




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
          Function


Copyright © 2007, SAS Institute Inc. All rights reserved.
Inline
           Image
          Function


Copyright © 2007, SAS Institute Inc. All rights reserved.
The Super Duper Function
The Super Duper Function

define 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 Sub
set $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
      Event


Copyright © 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 Lines




Copyright © 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.com


Copyright © 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.

More Related Content

Similar to Inline formatting with_markup

Return of the Codes -- SAS', Windows' and Your's
Return of the Codes -- SAS', Windows' and Your'sReturn of the Codes -- SAS', Windows' and Your's
Return of the Codes -- SAS', Windows' and Your'sMark Tabladillo
 
Flex User Group - Skinning Presentation
Flex User Group - Skinning PresentationFlex User Group - Skinning Presentation
Flex User Group - Skinning Presentationjmwhittaker
 
NyaruDBにゃるものを使ってみた話 (+Realm比較)
NyaruDBにゃるものを使ってみた話 (+Realm比較)NyaruDBにゃるものを使ってみた話 (+Realm比較)
NyaruDBにゃるものを使ってみた話 (+Realm比較)Masaki Oshikawa
 
SASS is more than LESS
SASS is more than LESSSASS is more than LESS
SASS is more than LESSItai Koren
 
New features in abap
New features in abapNew features in abap
New features in abapSrihari J
 

Similar to Inline formatting with_markup (7)

Return of the Codes -- SAS', Windows' and Your's
Return of the Codes -- SAS', Windows' and Your'sReturn of the Codes -- SAS', Windows' and Your's
Return of the Codes -- SAS', Windows' and Your's
 
Flex User Group - Skinning Presentation
Flex User Group - Skinning PresentationFlex User Group - Skinning Presentation
Flex User Group - Skinning Presentation
 
NyaruDBにゃるものを使ってみた話 (+Realm比較)
NyaruDBにゃるものを使ってみた話 (+Realm比較)NyaruDBにゃるものを使ってみた話 (+Realm比較)
NyaruDBにゃるものを使ってみた話 (+Realm比較)
 
War of the Indices- SQL vs. Oracle
War of the Indices-  SQL vs. OracleWar of the Indices-  SQL vs. Oracle
War of the Indices- SQL vs. Oracle
 
SASS is more than LESS
SASS is more than LESSSASS is more than LESS
SASS is more than LESS
 
New features in abap
New features in abapNew features in abap
New features in abap
 
Views
ViewsViews
Views
 

Recently uploaded

Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 

Recently uploaded (20)

Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 

Inline formatting with_markup

  • 1. Inline formatting with ODS Markup Eric Gebhart Copyright © 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.
  • 2. TWAS BRILLIG, AND THE SLITHY TOVES, DID GYRE AND GIMBLE IN THE WABE Sir John Tenniel
  • 3. ods escapechar="*" ; Inline Formatting Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 4. ods escapechar="*" ; Inline title 'This is *{style [color=red] Red}'; Formatting Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 5. ods escapechar="*" ; Inline title 'This is *{style [color=red] Red}'; Formatting Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 6. ~{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.
  • 7. Built in Functions Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 8. Built in title3 'Example of ^{nbspace 3} Non-Breaking Spaces Function'; Functions Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 9. Built in title3 'Example of ^{nbspace 3} Non-Breaking Spaces Function'; Functions Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 10. Built in title4 'Example of ^{newline 2} Newline Function'; Functions Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 11. Built in title4 'Example of ^{newline 2} Newline Function'; Functions Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 12. Built in title6 'Example of ^{unicode 03B1} UNICODE function'; Functions Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 13. Built in title6 'Example of ^{unicode 03B1} UNICODE function'; Functions Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 14. Text Decoration Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 15. 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.
  • 16. 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.
  • 17. Unicode Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 18. 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 2267 Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 19. header = 'Symbol'; Unicode compute as '^{unicode ' || value || '}'; Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 20. 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 4 Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 21. ods escapechar="*" ; Inline Formatting Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 22. 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.
  • 23. ods escapechar="*" ; Inline Formatting Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 24. ods escapechar="*" ; Inline Formatting Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 25. 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.
  • 26. 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.
  • 27. 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.
  • 28. BEWARE THE JABBERWOCK, MY SON! THE JAWS THAT BITE, THE CLAWS THAT CATCH! Sir John Tenniel
  • 29. 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.
  • 30. 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.
  • 31. Format Functions Are Events! define event super; start: put "<sup>" ; put VALUE; put "</sup>" ; end ;
  • 32. SO RESTED HE BY THE TUMTUM TREE, AND STOOD AWHILE IN THOUGHT
  • 33. define event line; Other put "<hr>"; Events? end; Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 34. Other Events? Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 35. title1 " Other Events? Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 36. title1 " Example ^{style [foreground=red] of Other Events? Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 37. title1 " Example ^{style [foreground=red] of ^{line} a unicode Alpha Other Events? Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 38. title1 " Example ^{style [foreground=red] of ^{line} a unicode Alpha Other ^{unicode ALPHA} Events? Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 39. 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.
  • 40. 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.
  • 41. 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.
  • 42. 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.
  • 43. 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.
  • 44. 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.
  • 45. Define event inline_image; Inline d put "<img"; Image putq "src=" value; Function put ">"; end; Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 46. Inline Image Function Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 47. title2 " Inline Image Function Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 48. title2 " Example Inline Image Function Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 49. title2 " Example Inline ^{style [color=green] of Image Function Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 50. title2 " Example Inline ^{style [color=green] of ^{line} an image Image Function Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 51. title2 " Example Inline ^{style [color=green] of ^{line} an image Image ^{inline_image Droplet.jpg} Function Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 52. 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.
  • 53. 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.
  • 54. 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.
  • 55. 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.
  • 56. Inline Image Function Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 57. Inline Image Function Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 58. The Super Duper Function
  • 59. The Super Duper Function define tagset tagsets.sdhtml; parent=tagsets.html4; define event superDuper; put ‘<span style="border-width:1;’ put ‘ border-style:solid;’ put ‘ border-color: black;"> ‘nl;
  • 60. Alternate Super and Sub set $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;
  • 61. ods escapechar="*" ; Using the Super Duper Inline Formatting Event Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 62. 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.
  • 63. Using the define event include_file; set $read_file value; Readfile trigger readfile; Event end; Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 64. ods text=" Using the ~{style [font_style=italic] Readfile ~{include_file jabberwocky.txt} } Event "; Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 65. ods text=" Using the ~{style [font_style=italic] Readfile ~{include_file jabberwocky.txt} } Event "; Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 66. 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.
  • 67. define event process_data; Include put $record; put "<br>" /if $include_newlines; New Lines end; Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 68. ods text=" With ~{style [font_style=italic] New Lines } ~{include_file jabberwocky.txt} "; Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 69. ods text=" With ~{style [font_style=italic] ~{include_newlines True} New Lines ~{include_file jabberwocky.txt} } "; Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 70. With New Lines Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 71. TWAS BRILLIG, AND THE SLITHY TOVES, DID GYRE AND GIMBLE IN THE WABE Sir John Tenniel
  • 72. So rested he by the tumtum tree, and stood awhile in thought
  • 73. ODS and Tagset Resources http://EricGebhart.com e-mail: Eric@EricGebhart.com Copyright © 2007, SAS Institute Inc. All rights reserved.
  • 74. 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.