TeX Day

 Christoph Pickl



February 23, 2009
Outline



       HTML-Output with htlatex
   1




       Slides with the beamer class
   2




       Some Tips
   3



...
HTML-Output with htlatex
Overview of htlatex



    • Not only create documents, but also HTML websites
    • Additionally include the tex4ht packa...
My Personal Student Website
       http://web.student.tuwien.ac.at/~e0525580
                                A
           ...
Configuration File




    • Special file with .cfg extension
    • Pass as argument to htlatex or to usepackage
    • Pream...
Configuration File Sample


                        Listing 1: Sample htlatex config file
       Preamble { x h t m l }
  1
 ...
Invoking htlatex




    • $ htlatex index.tex quot;myhtconfigquot;
    • For instruction on how to use htlatex lookup man...
Build and deploy script
                   Listing 2: Automate build and deploy process
      # ! / b i n / bash
  1
     ...
Slides with the beamer class
Overview of beamer




    • Not only create documents, but also slides
        • Disadvantage: You have to know LTEX, in ...
Three advantages in my opinion




        Use any text editor of your choice
    1

        Can be properly version contr...
Hello World example


                      Listing 3: Simple titlepage with beamer
       documentclass {beamer}
  1
  2
...
Changes worth to notice




    • New documentclass beamer
    • New command (environment) frame to create a slide
    • N...
(Pseudo) Animations




    • Define sequence on items: < 1− >
    • New command pause
    • ...
Animated example




           Listing 4: beamer sample of appearing item bullets
      begin { i t e m i z e }
 1
      ...
More Features




    • Complex Animations
    • Embedding Audio and Video
    • ...
Why all these “. . . ”?




   Learn more about beamer at the DANTE TeX Day.
   This Wednesday, February 25th at 09:00 am....
Some Tips
Packages you will need




     fancyhdr For customizing header and footer
     lastpage Unfortunately this is not support...
Introduce an abstraction layer




    • If some team members do not know TEX yet
    • Seperate data from layout (like HT...
Lottery
Two copies of the Book . . .




      www.rrzn.uni-hannover.de/buch.html?&titel=latex
Lottery



                Thanks to               for the sponsoring

    • Get a piece of paper and a pen
    • Write do...
Links




   Wiki Article http://jsug.fsinf.at/wiki/Meeting_11
  htlatex Tutorial http://www.slac.stanford.edu/comp/
     ...
Upcoming SlideShare
Loading in …5
×

JSUG - TeX Day by Christoph Pickl

1,273 views
1,190 views

Published on

visit www.jsug.at for more stuff

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,273
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

JSUG - TeX Day by Christoph Pickl

  1. 1. TeX Day Christoph Pickl February 23, 2009
  2. 2. Outline HTML-Output with htlatex 1 Slides with the beamer class 2 Some Tips 3 Lottery 4
  3. 3. HTML-Output with htlatex
  4. 4. Overview of htlatex • Not only create documents, but also HTML websites • Additionally include the tex4ht package • Introduces only a few new commands: HCode{...} Directly put HTML-code HPage{anchor}...EndHPage{} Internal link Link[]{}{}...EndLink External link ifHtml...else...fi Conditional output • Comes with own htlatex binary and config file • Invokes TEX system three times in background
  5. 5. My Personal Student Website http://web.student.tuwien.ac.at/~e0525580 A (Download the L TEX sources of the website there) Figure: Screenshot of my personal student website
  6. 6. Configuration File • Special file with .cfg extension • Pass as argument to htlatex or to usepackage • Preamble{html}begin{document}EndPreamble • Things you can do with it: • Create custom CSS definitions (Css command) • Pre-/Postprocess HTML tags with @-sign
  7. 7. Configuration File Sample Listing 1: Sample htlatex config file Preamble { x h t m l } 1 begin {document} 2 3 C o n f i g u r e {@HEAD}{HCode{ 4 <meta name=” a u t h o r ” c o n t e n t =” C h r i s t o p h P i c k l ” /> 5 Hnewline }} 6 % you MUST escape t h e #−s i g n ! ! ! 7 Css{body { background−c o l o r : #DEDEDE; }} 8 9 EndPreamble 10 Illegal parameter number in definition of :tempa. !
  8. 8. Invoking htlatex • $ htlatex index.tex quot;myhtconfigquot; • For instruction on how to use htlatex lookup man entry: http://www.linuxcertif.com/man/1/htlatex/ • Maybe you want to automate that process via . . . • creating your own build script and • additionally create your own deployment script
  9. 9. Build and deploy script Listing 2: Automate build and deploy process # ! / b i n / bash 1 BASE= ” / path / t o / h t l a t e x / o u t p u t ” 2 3 cd $BASE 4 h t l a t e x index . tex ” myhtconfig ” 5 6 COPY FILES = ( ’ i n d e x . html ’ ’ i n d e x . css ’ ) 7 BATCH= ” ${BASE} / s f t p b a t c h . t x t ” 8 echo ” cd p u b l i c h t m l ” >> $BATCH 9 FILE CNT=${#COPY FILES [@] } 10 f o r ( ( i =0 ; i <$FILE CNT ; i + + ) ) ; do 11 FILE=${COPY FILES [ ${ i } ] } 12 echo ” p u t ${BASE} / $FILE $FILE ” >> $BATCH 13 done 14 s f t p e1234567@web . s t u d e n t . t u w i e n . ac . a t − < ${BATCH} 15
  10. 10. Slides with the beamer class
  11. 11. Overview of beamer • Not only create documents, but also slides • Disadvantage: You have to know LTEX, in order to use it A • Advantage: If you know LTEX, you can use that knowledge A • Got some dependencies • pgf.sty (1.10.cvs) and xcolor.sty (2.00) • Some packages are already included by beamer • color, xcolor, hyperref, . . .
  12. 12. Three advantages in my opinion Use any text editor of your choice 1 Can be properly version controlled (diff of *.ppt?) 2 Enables collaborative way of working together 3
  13. 13. Hello World example Listing 3: Simple titlepage with beamer documentclass {beamer} 1 2 t i t l e {TeX Day} 3 author { Christoph P i c k l } 4 date { February 23 , 2009} 5 6 begin {document} 7 frame { % c r e a t e new s l i d e 8 t i t l e p a g e % p r i n t t i t l e p a g e content 9 } 10 end{document} 11
  14. 14. Changes worth to notice • New documentclass beamer • New command (environment) frame to create a slide • New command frametitle • ...
  15. 15. (Pseudo) Animations • Define sequence on items: < 1− > • New command pause • ...
  16. 16. Animated example Listing 4: beamer sample of appearing item bullets begin { i t e m i z e } 1 item<1−> F i r s t i t e m 2 item<2−> Second i t e m w i l l appear on n e x t s l i d e 3 end{ i t e m i z e } 4
  17. 17. More Features • Complex Animations • Embedding Audio and Video • ...
  18. 18. Why all these “. . . ”? Learn more about beamer at the DANTE TeX Day. This Wednesday, February 25th at 09:00 am. http://cms.dante.de/dante2009/index/programm.html
  19. 19. Some Tips
  20. 20. Packages you will need fancyhdr For customizing header and footer lastpage Unfortunately this is not supported by default listings Include external sourcecode files supertable If tables get too big, you’ll need it A fp Calculating within LTEX (e.g. for time sheets)
  21. 21. Introduce an abstraction layer • If some team members do not know TEX yet • Seperate data from layout (like HTML vs CSS) • Easily exchange appearance in single point • Write reusable components (sounds familiar?)
  22. 22. Lottery
  23. 23. Two copies of the Book . . . www.rrzn.uni-hannover.de/buch.html?&titel=latex
  24. 24. Lottery Thanks to for the sponsoring • Get a piece of paper and a pen • Write down your name and matrikelnumber • You have to answer following two questions: What’s the last name of the publisher of TEX? 1 What’s the name of the environment for an unordered list? 2 Answer 1 Knuth Answer 2 itemize
  25. 25. Links Wiki Article http://jsug.fsinf.at/wiki/Meeting_11 htlatex Tutorial http://www.slac.stanford.edu/comp/ unix/package/tex/tex4ht/mn2.html beamer Useruide http: //www.ctan.org/tex-archive/macros/latex/ contrib/beamer/doc/beameruserguide.pdf beamer Examples Solutions folder shipped with beamer

×