Headers-fonts-alignment
Contents
      Headers-fonts-alignment

Subsection:
    Headers-fonts-alignment

We can put in headlines:

Hello

in various sizes:

Hello Again

and center them if need be:

And Hello Again

You also can center this way

and this way

HtX implements a \font command to change the fontsize.

You can grow or shrink relative to the current font or specify an absolute font size.

We can italicize and bold-face and typewriter-font our text. Soon, math mode will be available. In the meantime we have some limited math mode commands:

Inline: T(n) = T(n/2) + T(n/2) + a; or in displays:

T(n) = T(n/2) + T(n/2) + a
T(1) = b

or:

T(n) = T(2m)
= U(m)
= O(m log(m))
= O(log(n) (log (log (n))))

To engage a typewriter font, as we often do for including sections of program code, we can use the "code" environment. It switches to a fixed-width font and produces HTML that respects the layout of the HtX file.

(define i-am-a-program-sample
  (lambda (x y)
    (cond
      ((= x y) 'now-i-stop)
      ((or (not (integer x)) (not (integer y)))
       (display "This program works with two integers")
       (newline))
      ((> x y) (display "x is too big")
               (newline)
               (i-am-a-program-sample x (+ 1 y)))
      ((< x y) (display "x is too small")
               (newline)
               (i-am-a-program-sample (+ 1 x) y)))))

You can also enter a similar environment "in-line" with (i-am-a-program-sample 2 8).

Subsection: Headers-fonts-alignment
Contents
      Headers-fonts-alignment

rms@cs.oberlin.edu