# LaTeX - Copy and paste º

I have a LaTeX document.

I can copy from PDF (º), but it pastes as (o). How can I handle it?

Use:

\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[brazil]{babel}
\usepackage{lmodern, cmap}
\usepackage[T1]{fontenc}
\usepackage[normalem]{ulem}
\usepackage{hyperref}
\usepackage{amssymb}

• I don't understand the question. (1) Does your PDF, which you created using LaTeX, contain (º) and when you copy-and-paste that, it results in (o)? (2) Or does it paste as (º) but you want it to paste as (o)? (3) Or do you want to know how to create (º) that you found in a different PDF, and you're not sure how to create this in LaTeX? Is it (1), (2) or (3)? – Werner Oct 21 '17 at 3:44
• Your "Use:" is also unclear. It's the beginning of a document, but it doesn't attempt to do anything, (o) or otherwise. – Teepeemm Oct 21 '17 at 13:21
• Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – Martin Schröder Oct 22 '17 at 0:15
• Why copy from a .pdf if you can just use your keyboard? º -- and note that not all fonts have the º underlined. – BlackBird Oct 28 '17 at 21:49

You don't need to copy and paste to get such simple symbols. I'm not sure what that circle is, but I guess it should be either the functional composition operator,the temperature degree symbol, or the masculine ordinal indicator.

\documentclass{article}
\usepackage{siunitx}
\usepackage{amsmath}

\begin{document}

\begin{equation*}
\begin{split}
f \circ g\\
\end{split}
\end{equation*}

\end{document}


• Or the masculine ordinal indicator (U+00BA). – Thérèse Oct 21 '17 at 3:36
• @Thérèse: Thanks for the indication. I've added it to the answer. – Roboticist Oct 21 '17 at 3:41

The Unicode symbol is U+00BA (MASCULINE ORDINAL INDICATOR).

It is available in encoding TS1 as provided by package textcomp:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{textcomp}

\begin{document}
º = \textordmasculine
\end{document}


• Tks \usepackage{textcomp} solved my problem. – Igor Espindola May 17 '20 at 15:30