1
$\begingroup$

Writing:

table = {{Style[
    ToString[Subscript["\[Eta]", "1"], StandardForm] <> " = " <> 
     ToString[a b/2, StandardForm], FontFamily -> "Consolas", 
    FontSize -> 16, Black]}, 
  " ", {Style[
    ToString[Subscript["\[Eta]", "2"], StandardForm] <> " = " <> 
     ToString[c d/2, StandardForm], FontFamily -> "Consolas", 
    FontSize -> 16, Black]}}

I get:

enter image description here

while writing:

TableForm[table]

I get:

enter image description here

where it is evident that the fractions are reduced. How can I avoid this shrinking?

$\endgroup$
1
$\begingroup$

Use ScriptLevel somewhere. For example:

table
TableForm[Style[table, ScriptLevel->0]]

enter image description here

Update to address comment

I will include ScriptLevel->0 in one of your table entries but not the other so you can see the difference.

table = {
    {
    Style[
        ToString[Subscript["\[Eta]","1"],StandardForm]<>" = "<>ToString[a b/2,StandardForm],
        FontFamily->"Consolas",FontSize->16,Black, ScriptLevel->0
    ]
    },
    " ",
    {
    Style[
        ToString[Subscript["\[Eta]","2"],StandardForm]<>" = "<>ToString[c d/2,StandardForm],
        FontFamily->"Consolas",FontSize->16,Black
    ]
    }
};

TableForm[table]

enter image description here

$\endgroup$
  • $\begingroup$ @Carl_Woll: thank you so much! Forgive me, but I think I have not posted a sufficiently accurate example. Now the problem should be clearer. Thanks again! $\endgroup$ – TeM Mar 7 '18 at 17:07
  • $\begingroup$ Simply perfect! I never thought of positioning it at that point! $\endgroup$ – TeM Mar 7 '18 at 17:27

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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