2014-01-12 10 views
0

如何使用某些變量的結果打印一行文本並仍然編輯字體大小和字體顏色?事情是這樣的:如何在文本中打印和設置數學結果的樣式

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

我想是這樣的: 公式結果是35%,從2000年1月15日,

但爲紅色,而更大的字體,運行!可能嗎?

感謝

回答

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

Style[StringJoin["The equation result was ", [email protected], 
    "% running from ", DateString[TableDate[[1]], 
    {"MonthName", " ", "DayShort", ", ", "Year"}]], 20, Red] 
+0

15是我的屏幕上的一個小的字體,所以我把它改成20希望你不要介意。 +1 –

相關問題