Sans-Serif Fonts in Texinfo

Brett Huntly, in a post on TeX, LaTeX and Texinfo mentioned that he likes setting his documents in a Sans-serif font in Texinfo.

This intrigued me, but I could not get it to work at all. Until I actually read the Texinfo log message, of course.

Just in case I ever forget how I did it, here it is:

@c %**start Sans-Serif
@c Sans-Serif does not work too well yet. Drat. Needs some work...
@c @set SANSSERIF

@ifset SANSSERIF
@tex
@sf
@setfont@secrm@sfbshape{11}{@magstep1}@endcsname
@setfont@chaprm@sfbshape{11}{@magstep2}@endcsname
@setfont@titlerm@sfbshape{11}{@magstep3}@endcsname
@setfont@ssecrm@sfbshape{11}{@magstephalf}@endcsname
@end tex
@end ifset
@c %**end Sans-serif Fonts

This is currently commented out, since it breaks all kinds of headings, indexes and other miscellaneous mark-up rather badly, but it is a beginning…

And hopefully this saves someone else a bit of frustration as well…

About eroux

JADG - Just Another Damn Geek
This entry was posted in General and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>