I am trying to change the font used in the table of contents. The problem is: with the table of contents generated by
opmac, the fonts are
rm by default.
I managed to change a few codes in the
opmac file to change the title font and the page number font, but the actual text is not changed at all.
opmac the following changes are made:
- In line 180, after
\resizeall, I changed the font to
- In line 360, after
\wtotoc0I again changed the font to
- The same changes are made in lines 366 and 372 (for
- In line 485, replace all occurrence of fonts with
Then a minimal example document is:
\input opmac \font\tocfont="Bradley Hand" at 18pt \nonum\notoc\sec \tocfont Contents \tocfont \maketoc \sec First \sec Second \secc Sub \sec Third \bye
If I look into
\jobname.ref, then I can see that it still uses
rm in those places.
Below is an image of what I got so far.
And below is what I want (the picture is produced by my own macros):
Any suggestion or help is sincerely appreciated.
P.S. I don't understand Czech, so please explain if referencing to a Czech document, thanks. :p