I have the following MWE for SQL typesetting. What doesn't work for me and for which I need help are two things:
- I would like to add "SUCH AS" as a keyword (or make it bold in the text without defining it as a keyword); and
I need "domain" not to be bold, but it insists in typesetting it bold even when I include it in
deletekeywords
. Don't know what is happening there.\documentclass[border=2pt]{standalone} \usepackage{newtxtext,newtxmath} \usepackage{listings} \lstset{language=SQL,basicstyle=\ttfamily,keywordstyle=\bfseries, showspaces=false,showstringspaces=false, morekeywords={*,IF,DEFINE,OPTIONS, SERVER, MENTIONS, SUCH THAT}, deletekeywords={domain}, mathescape=true, aboveskip=0pt, belowskip=6pt} \begin{document} \begin{lstlisting} FROM Relation SUCH THAT domain-condition \end{lstlisting} \end{document}
Would appreciate any help. Here is what comes out when I typeset it.