Search code examples
latexpdflatextexstudio

why @ ( a round) is not displayed in LaTeX lstlisting


\documentclass[a4paper,12pt,oneside]{report} 

\usepackage{OvidiusFMI}
\usepackage{times}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{color,xcolor}
\usepackage{framed}
\usepackage{enumerate}
\usepackage{listings}
\usepackage{amsmath,amsfonts,amssymb,amsthm,epsfig,epstopdf,url,array}
\usepackage{multicol,multirow}
\usepackage{needspace}
\include{custom-lst-style}
%these are all packages im using

\begin{document}
  \begin{lstlisting}
   npm install @material-ui/core
  \end{lstlisting}
\end{document}

I have to add a lstlisting to my latex.

Original text : npm install @material-ui/icons

Latex text: npm install material-ui/icons (no @ symbol)

How could I fix this issue?


Solution

  • Problem was solved due to user:2777074's crystall ball. If you will encounter such things like I had ( not displaying a character), you should check for your listing styles.

    In my case I was using \include{custom-lst-style} that had the next line of code:\lstset{escapechar=@,style=customc} and because of that I was unable to display @ character.