0

Every time I try to compile and run my Latex document I get the following error:

! Package inputenc Error: Unicode character ʹ (U+2B9)(inputenc) not set up for use with LaTeX.See the inputenc package documentation for explanation.

even though I have nothing written on the line that the error is appearing on. Does anyone know how to remove this error?

Thanks!

Below I've included my preamble and an empty document which when I compile still gives that message.

\documentclass[a4paper,11pt]{article}
\date{}
\title{}
\author{}

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{inputenc}


\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{mwe}



\theoremstyle{definition}

\newtheorem{defn}{Definition}[section]
\newtheorem{eg}{Example}[section]
\newtheorem{thm}{Theorem}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{rk}{Remark}

\usepackage[numbers]{natbib}

\usepackage{cite}

\usepackage{url}
\usepackage{graphicx}


\begin{document}
\bibliographystyle{plainnat}
\maketitle


\tableofcontents
\pagebreak


\pagebreak
\bibliography{Biblio}

\end{document}
  • Please add your MWE (Minimal Working Example). – ferahfeza Feb 19 at 23:17
1

Unicode 2b9 is "modifier letter prime", which looks almost like an apostrophe. Most likely, you copy and pasted your text from something that was "helpfully" making smart quotes for you. Find the smart apostrophe and replace it with a regular apostrophe.

If your posted example is truly your tex file, then the problem is in one of your supplementary files. Delete the auxiliary files and compile again, and look through your bibliography for a smart quote that snuck in when you copied the reference from the internet.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.