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 Answers
Probably quick and dirty, see ISO character entities and their LaTeX equivalents on page 3:
${^c\!/\!_o}$ Jim Jones
Edit: Included suggestion from Tobi’s comment having the letters c
and o
non-italicised:
$\mathrm{^c\!/\!_o}$ Jim Jones
-
2
\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}
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}
-
for whatever it's worth, the image for the unicode symbol (U+2105) shows the letters in italic. Jun 7, 2013 at 21:27
-
@barbarabeeton If that's preferred, just change
\selectfont
into\itshape
.– egregJun 7, 2013 at 21:31
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}
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.
-
2Of 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 can be used:^^^^2105
. Aug 26, 2017 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).– Qw3ryAug 26, 2017 at 19:29
I've got a better one.
\usepackage{units}
…
{\nicefrac{\raisebox{.2em}{\textsc{c}}}{\raisebox{-.3em}{\textsc{\kern -.1em o}}}}
c/o
?