如何在文本中打印和设置mathematica样式

时间:2014-01-12 18:21:39

标签: printing styles wolfram-mathematica output

如何使用某些变量的结果打印一行文本并仍然编辑字体大小和字体颜色?像这样:

Style[
      "The equation result was ", Returns, 
      "% running from ",DateString[TableDate[[1]],
      {"MonthName", " ", "DayShort", ", ", "Year"}]
, 15, Red]

我想要类似的东西: 方程式结果从2000年1月15日起运行35%

但是红色和更大的字体大小!可能吗?

由于

1 个答案:

答案 0 :(得分:1)

Returns = 35;
TableDate = {{2000, 1, 15}};

Style[StringJoin["The equation result was ", ToString@Returns,
  "% running from ", DateString[TableDate[[1]],
   {"MonthName", " ", "DayShort", ", ", "Year"}]], 20, Red]