6

Is there any way I can type this abbreviation for "Allegro" with LaTex?

Allegro con energico

0

3 Answers 3

9

If you want automatic size reduction for the o:

\documentclass{article}
\usepackage{amsmath}
\newcommand*\doto{$\stackrel{\text{o}}{\text{.}}$}
\begin{document}
All\doto{} con energico
\end{document}

enter image description here

1
  • Thank you, that is the exact solution I want! Commented Nov 7 at 14:54
14

You probably want something that adapts to the current font and font size.

\documentclass{article}

\makeatletter
\NewDocumentCommand{\abbr}{m}{%
  \leavevmode% for safety
  \check@mathfonts% to get \sf@size
  \vbox to \fontcharht\font`l{%
    \setbox\z@=\hbox{\fontsize\sf@size{0}\selectfont #1}%
    \copy\z@
    \vss
    \hbox to\wd\z@{\hss.\hss}%
  }%
}
\makeatother

\begin{document}

\section{All\abbr{o} con energico}

All\abbr{o} con energico

\noindent
\textsf{All\abbr{o} con energico}

\noindent
\textit{All\abbr{o} con energico}

\noindent
\textit{All\abbr{a} con energica}

\end{document}

output

1
  • I knew Enrico Gregorio would be the perfect person to answer this! Commented Nov 8 at 17:33
9

enter image description here

One of these, perhaps.

\documentclass{article}

\begin{document}

All\shortstack[b]{o\\.}


All\shortstack[b]{o\\[-2pt].}

All\shortstack[b]{\small o\\.}

All\shortstack[b]{\small o\\[-1pt].}

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .