32

Is there a c/o symbol in LaTex for writing an address? I have looked in the Comprehensive latex symbol list but couldn't find one.

6 Answers6

24
\documentclass[a5paper]{article}
\newcommand{\co}{%
  \leavevmode
  \begingroup
  \setbox 2 = \hbox {\small c}%
  \setbox 0 = \hbox {/}%
  \dimen 0 = \ht 0  \advance \dimen 0 by -\ht 2
  \raise \dimen 0 \box 2
  \kern -0.3333\wd0/\kern -0.3333\wd 0
  \lower \dp 0 \hbox {\small o}%
  \endgroup
}
\begin{document}
\co\space Mr. Bean
\end{document}

output result

diabonas
  • 25,784
18

Probably quick and dirty, see ISO character entities and their LaTeX equivalents on page 3:

${^c\!/\!_o}$ Jim Jones

symbol “care of” (c/o) with LaTeX


Edit: Included suggestion from Tobi’s comment having the letters c and o non-italicised:

$\mathrm{^c\!/\!_o}$ Jim Jones

symbol “care of” (c/o) with LaTeX

Jan
  • 167
  • 5
meep.meep
  • 16,905
14

The "c" should be level with ascenders and the "o" at the baseline; with textcomp's \textfractionsolidus the slash is slightly better than the normal /; but for symmetry it can be slightly raised up.

\documentclass{article}
\usepackage{textcomp}
\makeatletter
\newcommand{\co}{%
  \check@mathfonts
  \raisebox{.85ex}{\fontsize{\sf@size}{\z@}\selectfont c}%
  \kern-.1em\raisebox{.2ex}{\textfractionsolidus}\kern-.1em
  {\fontsize{\sf@size}{\z@}\selectfont o}%
}
\makeatother
\begin{document}
\co\ Mr.~Bean

\end{document}

enter image description here

egreg
  • 1,121,712
1

Another solution. This \co macro is nearly the same that a macro used by LyX to obtain the c/o symbol (\LyXcareof)

\documentclass{article}

\newcommand\co{\mbox{%
\raisebox{.8ex}{c}%
\kern-.175em\raisebox{.2ex}{/}%
\kern-.18em\raisebox{-.2ex}{o}%
}~}

\begin{document}
  \co Mr. Bean
\end{document}

enter image description here

Fran
  • 80,769
1

With XeLaTeX and a font that can display the character you can use the unicode character U+2105 and write \char"2105:

\documentclass{article}

% load a font that can display the symbol
\usepackage{noto}

\begin{document}
  \char"2105
  \symbol{"2105} % alternative syntax, see comment below.
  ^^^^2105 % yet another syntax
\end{document}

Unfortunately, this does not work with pdfLaTeX and probably not with others as well.

Qw3ry
  • 195
  • 2
    Of course, the glyph U+2105 is provided by the font. The LaTeX syntax for plain TeX's \char"2105 is \symbol{"2105}. Alternatively, the [^^-notation](https://tex.stackexchange.com/q/62725/16967) can be used: ^^^^2105. – Heiko Oberdiek Aug 26 '17 at 11:45
  • Thank you, I edited the answer accordingly. Still, I could not get it to work with LaTeX or pdfLaTeX (not sure what's the real problem though). – Qw3ry Aug 26 '17 at 19:29
1

I've got a better one.

care of

\usepackage{units}
…
{\nicefrac{\raisebox{.2em}{\textsc{c}}}{\raisebox{-.3em}{\textsc{\kern -.1em o}}}}