# latex accents in two letters not in math environment

The pronunciation given in Concise Oxford Dictionary (before 7th edition) is directly with entry words, as shown in above picture. How to get accents in two letters not in math environment?

• The tie over two letters can be input directly with \t, e.g. f\t{ar}. – campa Jun 21 '17 at 14:09

As campa noted, \t handles one of the cases. For the others, I provide \twofer{<accent>}{<two-lowercase-letter-string>

\documentclass{article}
\usepackage{graphicx}
\makeatletter
\newcommand\twofer[2]{\@firstoftwo#2\makebox[0pt]{\scalebox{1.8}[.95]{#1{}}}\@secondoftwo#2}
\makeatother
\begin{document}
\t{or}

\twofer{\u}{oo}

\twofer{\=}{ur}
\end{document}


• Many tks for your answer. \usepackage{fontspec} \setmainfont{LiberationSerif-Bold} The solution is just available to CMU Font? When I change default font to Liberation Serif or other fonts, it produced a queer result... – Marcus Jun 26 '17 at 10:15
• @Marcus The two numbers, 1.8 and .95 may need adjustment with the font. The former is a horizontal stretch, the latter is both a vertical stretch but also a vertical positioner. I don't have access to the font you mention to tweak it for you. – Steven B. Segletes Jun 26 '17 at 12:55

You might do like this:

\documentclass{article}
\usepackage{textcomp,graphicx}

\newcommand{\bbar}[1]{%
\leavevmode\vbox{%
\offinterlineskip
\halign{%
\hfil##\hfil\cr
\={}\kern-.4em\={}\cr
\noalign{\kern-1ex}
#1\cr
}%
}%
}
\newcommand{\revt}[1]{%
\leavevmode
\vphantom{\t{#1}}%
\smash{\vbox{%
\offinterlineskip
\halign{%
\hfil##\hfil\cr
\scalebox{1}[-1]{\capitalnewtie{}}\cr
\noalign{\kern.1ex}
#1\cr
}%
}}%
}

\begin{document}

\t{ar} \bbar{ar} \revt{ar}

\end{document}


• Many tks for your answer. \usepackage{fontspec} \setmainfont{LiberationSerif-Bold} The solution is just available to CMU Font? When I change default font to Liberation Serif or other fonts, it produced a queer result... – Marcus Jun 26 '17 at 10:14
• @Marcus Usage with XeLaTeX or LuaLaTeX is a very different story – egreg Jun 26 '17 at 12:03
• @egreg Apologies for digging an old post of yours. Is it possible to adapt your \revt code to work in math mode? – M.G. Aug 2 '18 at 21:00
• @M.G. I'm not sure your readers would understand the meaning. – egreg Aug 2 '18 at 21:14
• @egreg: Well, I am looking for a 'wide' version of the breve accent in math mode, similar to \widehat or \widetilde (tex.stackexchange.com/questions/444317/…) and a user there referred me to this post. In theory at least it looks like something that would do the job. – M.G. Aug 2 '18 at 21:22