UNRESTRICTED | ILLIMITÉ

 

I have tried the experiment on the overall document, and for some strange 
reason, given the odd combination

Of things I am using I ended up having to use the following:

 

\Css{.rm-lmtk-10x-x-109{ font-weight: bold;}}

 

to do the job, but it look nice now!

 

There is another problem now however.

 

In all locations where either < or > are used in either a tt environment or 
even a \verb environment

the resulting output in html ends up being an upside-down question mark or 
upside-down exclamation mark.

I find that particularly strange when it happened with the \verb…

 

Any idea why this is happening? It was not there before when the default fonts 
were being used.

Would this happen with any other characters?

Any way of avoiding this effect?

 

Thomas

 

From: Wojciech Myszka [mailto:[email protected]] 
Sent: March 21, 2012 11:36 AM
To: Beuthe, Thomas
Cc: [email protected]
Subject: Re: [tex4ht] bolding tt font.

 

Dear Thomas,

 

In general everything is OK. Standard LaTeX (whatever that mean) doesn't have 
bold variant of typewriter (monospace) font. So TeX4ht follows LaTeX rules.

 

You can use Latin Modern fonts (instead of standard Computer Modern) via 
package lmodern. They have bold variant. There is only small problem with 
TeX4ht – it doesn't follow this font exactly, but adding one command to css 
file solves the problem. Try this:

 

\documentclass{report}

\usepackage{lmodern}  % <-- lmodern package

 

\usepackage{ulem}

\begin{document}

 

\Css{.rm-lmtk-10{ font-weight: bold;}} % <-- extra command to css file

 

Test fonts and bolding, when producing html with tt type font.

regular text.

\uline{underlined regular text}

\textbf{bolded regular text}

\uline{\textbf{bolded underlined regular text}}

\texttt{tt font text}

\texttt{\uline{underlined tt font text}}

\texttt{\textbf{bolded tt font text}}

\texttt{\uline{\textbf{bolded underlined tt font text.}}}

\end{document}

 

Regards 

Wojtek

 

2012/3/21 Beuthe, Thomas <[email protected]>

UNRESTRICTED | ILLIMITÉ

 

I am trying to get bolded tt font to produce a monospaced font in the resulting 
html using  a simple “htlatex filename” compile.

 

Consider the following small test file:

 

\documentclass{report} 

\usepackage{ulem}

\begin{document}

Test fonts and bolding, when producing html with tt type font.

 

regular text.

 

\uline{underlined regular text}

 

\textbf{bolded regular text}

 

\uline{\textbf{bolded underlined regular text}}

 

\texttt{tt font text}

 

\texttt{\uline{underlined tt font text}}

 

\texttt{\textbf{bolded tt font text}}

 

\texttt{\uline{\textbf{bolded underlined tt font text.}}}

 

\end{document}

 

 

Everything works fine except for the last two lines which do not produce a 
bolded monospaced font.

The underline shows up in the last line but neither the last line, nor the line 
above it produce a bolded font.

(I am using a standard install of TeXLive 2011 on a Windows 7 64 bit machine.)

 

Try it and see.  The css files does not use a monospaced definition.

 

Am I doing something wrong?

Any advice?

 

 

Thomas Beuthe

 

 





 

-- 
---(___C'>

Reply via email to