1
$\begingroup$

Is there a way to change linespacing of input Cell of Mathematica globally? I think the default linespacing is a litte small and want to change it. I have tried to do it by set options of input Cell style as follow : Cell[StyleData["Input"],LineSpacing->{2,0}]. However, it doesn't work. If use the same way to set Cell[StyleData["Text"],LineSpacing->{2,0}], then the linespacing of Text cell will change correctly. So is it means that Mathematica do not support to change the linespacing of input Cell?

$\endgroup$
1
$\begingroup$

Input cells use "StandardForm" styles in addition to any styles specified by the "Input" style. So, using Cell[StyleData["StandardForm"], LineSpacing->{2,0}] instead should work.

$\endgroup$
1
  • $\begingroup$ Thank you very much! It works, I have successfully changed the linespacing. $\endgroup$ – Mr.qin Sep 21 '20 at 3:02

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.