[tex4ht] bolding tt font.

Beuthe, Thomas beuthet at aecl.ca
Thu Mar 22 17:10:12 CET 2012


UNRESTRICTED | ILLIMITÉ

 

 

>Add \usepackege[T1]{fontencoding} near \usepackage{lmodern}

> 

>In my opinion this shouldn't happen… 

 

In the end I found another solution which doesn’t involve the use of lmodern, and seems to do the right thing.

Now that I understand what the problem is thanks to your comments, I searched for possible solutions,

and one of the suggestions out there is to add a definition for the cm series tt font in bold to the default fonts using

 

\DeclareFontShape{OT1}{cmtt}{bx}{n}{<5><6><7><8><9><10><10.95><12><14.4><17.28><20.74><24.88>cmttb10}{}

 

Then I could switch things over using the following Css command:

 

\Css{.cmttb-10x-x-109{ font-family: monospace; font-weight: bold;}}

 

This resulted in an html version of the document containing properly bolded tt fonts, and also proper definitions of < and > characters.

 

I would be interested in tour opinion of this solution.

 

Thomas

 

Reference:   http://www.macfreek.nl/memory/LaTeX_Bold_Typewriter_Font

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex4ht/attachments/20120322/57f2c8d5/attachment.html>


More information about the tex4ht mailing list