I want to write inline bash code. I am using following solution: insert code keywords inline
The command for
mintedinline code is called\mintinline{language}{code}
I want to write mintinline line as \footnotesize in order to reduce space between characters. But when I do that its sharpness is gone compare to without using \footnotesize.
\documentclass[10pt,journal,compsoc]{IEEEtran}
\usepackage[table]{xcolor}
\usepackage{listings}
\usepackage{minted}
\usemintedstyle{vs}
\begin{document}
Introduction\newline
\setminted[bash]{fontsize=\footnotesize}
\mintinline{bash}{ls /home/user}
\setmintedinline{fontsize=\normalsize} \newline
\mintinline{bash}{ls /home/user}
\end{document}
Here second line's character is not bold as the first one.
Is it possible to keep boldness of characters while applying footnotesize in mintinline? or is there any solution to reduce character spaces while keeping characters original boldness?

\setmintedand\lstsetdo not use the same options. – frabjous Jun 21 '22 at 18:17\lstset; comparingnormalsizeandfootnotesizeof themintinline.\footnotesizeis applied its like less sharper – alper Jun 21 '22 at 18:29\scalebox{1.2}{...}the output looks like this: imgur link. What am I missing? – frabjous Jun 21 '22 at 18:56\usepackage[T1]{fontenc}\usepackage{lmodern}? – frabjous Jun 21 '22 at 19:07.. small variants have wider strokes[yes I wanted to have wider strokes in the smaller font] // Should I just add\usepackage[T1]{fontenc}\usepackage{lmodern}to beginning of the file? – alper Jun 21 '22 at 19:46\documentclass.., etc., yeah. – frabjous Jun 21 '22 at 19:53mintinline) but not for the other sections in the paper? – alper Jun 21 '22 at 20:41Do you have other smaller text elsewhere you don't want different optical size variants for[Yes sir, I have some smaller text in some tikz figures as well defined likeevery node/.style = {font=\footnotesize}, they got affected too] – alper Jun 21 '22 at 22:22\renewcommand{\ttdefault}{lmtt}at the end of the preamble, it will only be applied to monotype fonts, which might fit your needs. If literally you only want it applied in that one spot, or only in certain minted listings, I think\setminted[bash]{fontsize=\footnotesize,fontfamily=lmtt}would do it, but you might need an extra{before\setminted, and an}after the\mintinlinecommand to prevent it affecting later minted listings. – frabjous Jun 21 '22 at 22:46\setminted[bash]{fontsize=\footnotesize,fontfamily=lmtt}did not print anything :( – alper Jun 21 '22 at 23:10\renewcommand{\ttdefault}{lmtt}to top section but it does not write it into the pdf – alper Jun 21 '22 at 23:21