[XeTeX] accent doubt

Bruno Voisin bvoisin at mac.com
Sat Sep 16 10:18:36 CEST 2006

Le 16 sept. 06 à 07:26, G. Balamurugan a écrit :
> \documentclass[20pt]{article}
Standard LaTeX only knows about sizes 10pt, 11pt and 12pt. The memoir  
package, apparently, defines more sizes.
> \font\tnr="Times New Roman/B" at 20pt
> \def\mr#1{\mbox{\tnr #1}}
This is  mixture of plain TeX and LaTeX idioms. Dangerous! \font and  
\def are plain TeX, the LaTeX forms would be \newfont and  
\newcommand, with a slightly different syntax.
> \pagestyle{empty}
> \begin{document}
> $$\hat{\mr a}$$
$$ is deprecated in LaTeX and should be replaced by \[ and \], or  
\begin{displaymath} and \end{displaymath}. It doesn't provide proper  
positioning, for one thing.

For \hat to grow with content, you should replace it by \widehat. And  
I think using the amsmath package allows \widehat to grow wider (not  
above a certain limit, though).
> \end{document}
> thanx in advance
Try the following:

\newfont{\tnr}{"Times New Roman/B" at 20pt}
\newcommand{\mr}[1]{\mbox{\tnr #1}}

Bruno Voisin

More information about the XeTeX mailing list