PRODUCTS
Products Overview
Mathematica
Mathematica Student Edition
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Mathematica
Documentation
Knowledge Base
Learning Center
Technical Services
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News
Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
SEARCH MATHEMATICA 8 DOCUMENTATION
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE
DOCUMENTATION CENTER
FOR THE LATEST INFORMATION.
Mathematica
>
Notebooks and Documents
>
Layout & Tables
>
Textual Elements in Notebooks
>
Built-in
Mathematica
Symbol
String-Oriented Output Formats
Tutorials »
|
Row
StringJoin
ToString
Message
See Also »
|
Textual Elements in Notebooks
More About »
StringForm
StringForm
["
controlstring
",
expr
1
,
...
]
prints as the text of the
controlstring
, with the printed forms of the
expr
i
embedded.
MORE INFORMATION
`
i
`
in the control string indicates a point at which to print
expr
i
.
``
includes the next
expr
i
not yet printed.
`.`
prints a raw
`
in the output string.
»
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
.
EXAMPLES
CLOSE ALL
Basic Examples
(3)
Insert a single value into a string:
Insert a sequence of values into a string:
Insert indexed values:
Insert a single value into a string:
In[1]:=
Out[1]=
Insert a sequence of values into a string:
In[1]:=
Out[1]=
Insert indexed values:
In[1]:=
Out[1]=
Scope
(4)
Embed a symbolic result:
Embed an unevaluated symbolic expression:
Include an explicit ` character in a string:
Insert any number of expressions into a string:
Expressions can be inserted in the output string more than once:
Properties & Relations
(1)
StringForm
returns a string with items inserted as output:
Message
prints a string with items inserted:
StringInsert
inserts a string into a string:
Possible Issues
(1)
There should be enough items to fill the placeholders in the control string:
SEE ALSO
Row
StringJoin
ToString
Message
TUTORIALS
String-Oriented Output Formats
MORE ABOUT
Textual Elements in Notebooks
New in 1 | Last modified in 5