# .*html BEGIN { usesMEL() # # Elements, dependent (and semidependent) on available font size # fontSizes[1] = "18" fontSizes[2] = "20" fontSizes[3] = "22" fontSizes[4] = "25" fontSizes[5] = "27" fontSizes[6] = "35" # Certain tags can exist without explicitly defining the font size # while others cannot # fontSizes[0] is used for simpler code for the tags which don't # require font size fontSizes[0] = "" # Tags which can exist without specified font-size for (ind in fontSizes) { standardPresentationTag("centered" fontSizes[ind]) fontClass = (ind != 0) ? " font" fontSizes[ind] : "" MEL["slide" fontSizes[ind], MELOPEN] = "
" MEL["slide" fontSizes[ind], MELCLOSE] = "
" MEL["vcen" fontSizes[ind], MELOPEN] = "
" MEL["vcen" fontSizes[ind], MELCLOSE] = "
" MEL["title" fontSizes[ind], MELOPEN] = "
" MEL["title" fontSizes[ind], MELCLOSE] = "
" } # refer to definition of fontSizes[0] delete fontSizes[0] # Tags which cannot exist without specified font-size for (ind in fontSizes) { standardPresentationTag("font" fontSizes[ind]) } # # Special cases # MEL["presentation", MELINSERT] = ORS \ "

" ORS \ " " MEL["rows", MELOPEN] = "
" # (layout-row > * is td) MEL["rows", MELCLOSE] = "" #
MEL["eqrows", MELOPEN] = "
" #
(layout-row > * is td) MEL["eqrows", MELCLOSE] = "" MEL["newrow", MELINSERT] = "
" #
# # Generated tags # for (i = 1; i <= 9; i++) { MEL["br" i, MELINSERT] = "
" } for (i = 5; i <= 95; i++) { standardPresentationTag("width" i "%") } # # Ordinary # standardPresentationTag("fright") standardPresentationTag("cont") } function standardPresentationTag(name) { MEL[name, MELOPEN] = "
" MEL[name, MELCLOSE] = "
" } /\[SLIDEID\]/ { sub(/\[SLIDEID\]/, slideIndex++) }