logo       

Re: microstyle.sty and \textbf: msg#00406

tex.macosx

Subject: Re: microstyle.sty and \textbf

Michael Hoppe wrote:
Dear microstylers,

try this one:

%--------------------- snip! --------------------------
%&pdflatex
\documentclass{article}

\renewcommand{\rmdefault}{ppl}
\usepackage[DVIoutput,expansion=false]{microtype}

\begin{document}
\begin{tabular}{c}
\textbf{Greetings from MT\@protdo!}

or simply:

\textbf{Ha!}

\end{tabular}
\end{document}
%--------------------- snap! ---------------------------

The problem is that the bold font is set up inside the tabular
environment, where `&' has a different meaning. When microtype tries to
set the protrusion factors for the ampersand, it stumbles. The solution,
for now, is to load the bold font manually earlier; to be on the safe
side, you can even do that in the preamble (after microtype):

> %--------------------- snip! --------------------------
\documentclass{article}

\renewcommand{\rmdefault}{ppl}
\usepackage[DVIoutput,expansion=false]{microtype}

{\fontfamily{\rmdefault}\bfseries\selectfont}

\begin{document}
\begin{tabular}{c}
\textbf{Ha!}
\end{tabular}
\end{document}
> %--------------------- snap! ---------------------------

Then, the bold font doesn't need to be set up inside the tabular
environment.

I'll upload a bug fix version soon (poor Jim, who's just announced the
latest version today).

Regards,
Robert.



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise