# ! Package inputenc Error: Unicode character ☯ (U+262F)

I encountered this error while trying to compile my thesis. Before I did not have this error.

Any idea how I can find this Unicode character in my LaTeX document, or solve this issue?

• Are you bound to pdflatex or open to xe-/lualatex? – TeXnician Aug 5 '18 at 15:23
• I am bount to pdflatex – DriesDK Aug 5 '18 at 15:25
• There is \Yinyang in the marvosym package – egreg Aug 5 '18 at 16:04

to more easily find it add

\DeclareUnicodeCharacter{262F}{YIN YANG HERE!!!!!}


to your preamble, and search the output for that text. If you want it to display then find a yinyang.pdf image and do something like

\DeclareUnicodeCharacter{262F}{\includegraphics[height=1ex]{yinyang}}

• Thanks, I found the yingyang symbol. It was generated by the Bibtex file due to an automatic recognition of a paper. – DriesDK Aug 5 '18 at 16:43
• The issue has been resolved. – DriesDK Aug 5 '18 at 16:44

Here is a solution with TikZ:

\documentclass[12pt]{article}
\usepackage{tikz,blindtext}
\newcommand{\yingyang}{\begin{tikzpicture}[scale=.3,baseline=-.1cm]
\draw[thick,fill=black] circle(1);
\fill[white] (0,-.5) circle(.1);
\fill[white] (0,-1) arc(-90:-270:.5) arc(-90:90:.5) arc(90:270:1) -- cycle;
\fill[black] (0,.5) circle(.1);
\end{tikzpicture}
}
\begin{document}
\blindtext\yingyang\blindtext\yingyang
\end{document}


And here is the output:

EDIT: Just type [… ,rotate=-90] to get your desired yin-yang-character.