I want that my PDF document contains a code snippet that looks like this:

char charValue = 'X';

I am using this code here:

    char charValue = 'X';

Unfortunately, the output in the PDF looks like this:

char charValue = ’X’;

' has been changed to

How can this be avoided?


From LaTeX forum ⇒ Fonts & Character Sets ⇒ Listing package displays curly 'quotes' and tiny tildes ~:

% http://latex-community.org/forum/viewtopic.php?t=4413
What's the following code do?
    char charValue = 'X';

enter image description here

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.