1

The documentation shows the following:

keywordstyle=\color{black}\bfseries\underbar

For my 3rd set of keywords I have tried:

keywordstyle = [3]\textit\underbar

However, this doesn't work and results in no styling. Using just \textit or \underbar does work so I must be misunderstanding how to combine these things.

Thanks in advance :)

1 Answers1

2

It turns out that using \itshape instead of \textit makes it work.

I found \itshape on this cheat sheet

  • That is because \itshape is a switch whereas \textit needs an argument, see here: https://tex.stackexchange.com/questions/8053/is-there-a-difference-between-textit-and-itshape – CarLaTeX Oct 08 '17 at 04:13