What is the best way to use special characters in LaTeX? I saw some answers here suggesting that I should use LuaLaTeX but I am not familiar with formatting on it, and I have just begun using LaTeX for my project report.
LaTeX preamble:
\documentclass[english]{report}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{geometry}
\usepackage{pgf}
\usepackage{pgfpages}
This code is supposed to print the text in the center of the page and the line both. It does that however when I use characters like &, ' it shows an error. I have used the name of my institute here as an example
\pagebreak
\hspace{0pt}
\vfill
\begin{center}
PIMPRI CHINCHWAD EDUCATION TRUST’S
\end{center}
\vfill
\hspace{0pt}
\pagebreak
The error:
! Package inputenc Error: Keyboard character used is undefined
(inputenc) in inputencoding `latin9'.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.49 PIMPRI CHINCHWAD EDUCATION TRUST��
�S
? H
You need to provide a definition with \DeclareInputText
or \DeclareInputMath before using this key.
?
\usepackage[latin9]{inputenc}as the only purpose of that command is to specify that you are not using UTF-8 so latex will not understand any non ascii characters after that declaration. – David Carlisle Jan 22 '20 at 11:49