Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

ExternalFunctions

Guides

  • Astronomy
  • Chemistry
  • External Functions
  • Machine Learning
  • Mathematics
  • Text Processing

Symbols

  • AcentricFactor
  • BirchClusterPredict
  • CaliforniaHousing
  • Degrees
  • DiscreteCosineTransform
  • DiscreteSineTransform
  • FastFourierTransform
  • ForestCoverTypes
  • InverseDiscreteCosineTransform
  • InverseDiscreteSineTransform
  • InverseFastFourierTransform
  • KeplerLightCurves
  • KhatriRaoProduct
  • KroghInterpolation
  • LeeKeslerOmega
  • LoadExternalFunction
  • MatrixBandwidth
  • NewtonCotes
  • OlivettiFaces
  • Radians
  • StielPolarFactor
  • TextWrap
  • UnicodeLookup
  • UnicodeName
ArnoudBuzing`ExternalFunctions`
TextWrap
​
TextWrap[text]
wraps
text
at 70 characters.
​
​
TextWrap[text,n]
wraps
text
at
n
characters.
​
Examples  
(1)
Basic Examples  
(1)
Generate some random text:
In[1]:=
text=StringRiffle[RandomWord[100]];
Wrap at 70 characters:
In[2]:=
TextWrap
[text]
Out[2]=
whist pancreatic pensiveness spiritually terminated tragedian breadantithetically dyspepsia anomaly stacker divestiture beastly wretchedhurdling calisthenics savant series inarticulately affirm issuingpublicity frogman deeds phalanger sufficiency disgraced unremarkeddiscipleship uncorrectable yours self-employed herbage tilde spurnedmono humorous minaret placid symptomless scandalously hesitatinglynorth beneficence vitriol tableware selfsame philistinism blasphemeoverwork fermentation loquaciousness inefficiently miscellaneousspecialty absorbing insipid landowner yearbook intelligently proddingcharmer defensible stewardess sheikdom militarization breve columnedsixtieth untoward accusatory journeyman physiology afterglow separatebirch disturb formalin excavation bushel unemployable dolor diffractremunerate leadership hitting withers irritable unveiled sprucelyglobal fluorine twelfth self-expression inhabit dynamics nacho grossretrial begrudge
Wrap at 40 characters:
In[3]:=
TextWrap
[text,40]
Out[3]=
whist pancreatic pensiveness spirituallyterminated tragedian breadantithetically dyspepsia anomaly stackerdivestiture beastly wretched hurdlingcalisthenics savant seriesinarticulately affirm issuing publicityfrogman deeds phalanger sufficiencydisgraced unremarked discipleshipuncorrectable yours self-employedherbage tilde spurned mono humorousminaret placid symptomless scandalouslyhesitatingly north beneficence vitrioltableware selfsame philistinismblaspheme overwork fermentationloquaciousness inefficientlymiscellaneous specialty absorbinginsipid landowner yearbook intelligentlyprodding charmer defensible stewardesssheikdom militarization breve columnedsixtieth untoward accusatory journeymanphysiology afterglow separate birchdisturb formalin excavation bushelunemployable dolor diffract remunerateleadership hitting withers irritableunveiled sprucely global fluorinetwelfth self-expression inhabit dynamicsnacho gross retrial begrudge
SeeAlso
RelatedGuides
▪
External Functions
▪
Text Processing
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com