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. 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. 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. 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. 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. 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
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. 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. 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. Changes worth to notice
• New documentclass beamer
• New command (environment) frame to create a slide
• New command frametitle
• ...
15. (Pseudo) Animations
• Define sequence on items: < 1− >
• New command pause
• ...
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. More Features
• Complex Animations
• Embedding Audio and Video
• ...
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
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. 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?)
23. Two copies of the Book . . .
www.rrzn.uni-hannover.de/buch.html?&titel=latex
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