I use txfonts
or newtx
packages to typeset in Times font (NimbusRomNo9L). However, wide accents in math mode are too wide or placed incorrectly, such that they touch the next symbol.
\documentclass{article}
\usepackage{txfonts}
\begin{document}
\[ \widehat{T}^2 \]
\end{document}
Solution:
As answered by "Mico", mtpro2
package has better symbols/typesetting for wide accents. However, its Lite version is incomplete. So I used newtx
for text and math; and instead of \widehat
,\widetilde
,... I used the \what
,\wtilde
,... symbols form "MathTime" package, as defined below:
%%%% Times font (NimbusRomNo9L) for text and math using Newtx package
\usepackage{newtxtext} %
\usepackage{mathtools,amsthm} % AMS packages
\usepackage{textcomp} % required for special glyphs
\usepackage[varg,varbb,cmintegrals,cmbraces]{newtxmath}
\renewcommand{\rmdefault}{ntxrj} %old-style figures in text
%%%% Define wide accents using symbols from Math Time Pro font
\DeclareFontEncoding{LMP2}{}{}
\DeclareFontSubstitution{LMP2}{mtt}{m}{n}
\DeclareFontFamily{LMP2}{mtt}{\skewchar\font48}
\DeclareFontShape{LMP2}{mtt}{m}{n}{<-7> mt2syf <7-9> mt2sys <9-> mt2syt}{\skewchar\font32}
\DeclareSymbolFont{mtsymbols}{LMP2}{mtt}{m}{n}
\DeclareMathAccent{\what} {\mathord}{mtsymbols}{"79}
\DeclareMathAccent{\wtilde}{\mathord}{mtsymbols}{"7A}
\DeclareMathAccent{\wcheck}{\mathord}{mtsymbols}{"7B}
\DeclareMathAccent{\wbar} {\mathord}{mtsymbols}{"78}
widehat
touches the superscript 2. Isn't it necessary to have some clearance there?newtxmath
andmathptmx
packages which also offer Times variants and the latter didn't have this issue.newtx
has the same problem, andmathptmx
is very old with much more issues.\widehat
should be used only when really necessary; the horizontal positioning of the symbols disregards its width. So either you say\hat{T}^{2}
or\widehat{T}^{\,2}
. I'd prefer the former.