How do I change the listing font size of the whole document? I am quite sure that it must be specified in Document->Settings->Listings but I do not know the input parameter for setting the font at “smallest” size.

Thanks for your attention Simone


Under Document > Settings... > Listings you have to set a value for the basicstyle "listing parameter". Try, for example, to enter basicstyle={\ttfamily\small}:

enter image description here

This will set it in TypeWriter font and size \small. You can change \small to whatever you like, taking from (say) What point (pt) font size are \Large etc.? You could also manually adjust the font size permitted that you have a scalable font selection.

  • Hmm... \smallest seems like not available. Why can I set it with the GUI but not by textual option? – Atcold Apr 29 '16 at 18:22
  • OK, figured. One can activate the View > View Source and spy what is the TeX behind LyX formatting. – Atcold Apr 29 '16 at 18:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.