I have some Matlab code in a listing in lyx, and everything is working exactly as I want it... except one thing.
When I copy and paste the code the ' font doesn't get copied properly. Instead of ' (single straight quote) the font copied is ’ (single curly quote). I have no idea how to fix it... googling have not been helpful.
Here my preamble:
Code: Select all
%\renewcommand\thesection{\arabic{section}}
%\renewcommand\thesubsection{\thesection.\alph{subsection}}
%\def\thesection{\alph{subsection}}
\usepackage[titletoc]{appendix}
%\usepackage{hyperref}
\usepackage{url}
%\urlstyle{same}
\AtBeginDocument{\urlstyle{APACsame}}
\usepackage{alltt}
\usepackage{color}
\definecolor{string}{rgb}{0.7,0.0,0.0}
\definecolor{comment}{rgb}{0.13,0.54,0.13}
\definecolor{keyword}{rgb}{0.0,0.0,1.0}
%\setcounter{tocdepth}{3}
Code: Select all
commentstyle={\color{comment}}
keywordstyle={\color{keyword}}
stringstyle={\color{string}}
morekeywords={matlab2tikz}
columns=fullflexible