\begin{lstlisting}[language=sh]
git checkout main
git pull origin main
git checkout -b branch-name-for-change
\end{lstlisting}
formats it all monospaced apart from the "for" which is in bold face. In section 2, this one:
\begin{lstlisting}[language=sh,basicstyle=\footnotesize]
git clone --recurse-submodules https://github.com/msdemlei/ivoatexDoc
cd ivoatexDoc
make biblio # update the bibliography
make forcetex # make a PDF ignoring timestamps
make ivoatexDoc.html # make an html document
make package # make a zipfile for IVOA submission
\end{lstlisting}
for some reason typesets "cd" in bold, and the rest of it in monospaced although it does the comments (after the #) in italic, which is arguably an improvement.
I find this (not very) cleverness distracting and would generally just prefer the whole thing monospaced including the comments. Arguably the benefits are greater for language settings other than sh
, though e.g. it doesn't seem to be doing anything particularly smart for the archdiag example in sec 2.3.3 marked language=XML
.
Is it just me? It's partly a matter of taste, and I can cope either way, but given we're recommending particular usage of the lstlisting
package in ivoatexDoc I thought it was worth raising the question.