This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Input and Output / Formatting Functions  /

  • StringForm[" controlstring ", , ... ] prints as the text of the controlstring, with the printed forms of the embedded.
  • ` i ` in the control string indicates a point at which to print .
  • `` includes the next not yet printed.
  • \` prints a raw ` in the output string.
  • StringForm acts as a "wrapper", which affects printing, but not evaluation.
  • You can use StringForm to set up "formatted output".
  • Messages given as values for objects of the form s :: t are used as control strings for StringForm.
  • See the Mathematica book: Section 2.8.6.
  • See also: SequenceForm, ToString, Message.