Squiggled
Details and Options
- Squiggled displays text with a wavy line in the underline position, such as is commonly used in spell checking.
- Squiggled can use any option that is documented to apply at the style level. This includes font options such as FontSize, FontWeight, FontSlant, FontFamily, FontColor and Background.
- By default, the typeset form of Squiggled[expr] evaluates to itself, including the Squiggled head. With the option StripOnInputTrue, the typeset form evaluates to expr without the Squiggled head. »
- Squiggled[expr,color] is effectively equivalent to Style[expr,FontVariations{"Underlight"color}].
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Display text with a red squiggly underline:
https://wolfram.com/xid/05e5wzpj5k-femnvl
Use a green squiggly underline:
https://wolfram.com/xid/05e5wzpj5k-wvf5zj
https://wolfram.com/xid/05e5wzpj5k-u3d691
Squiggle a single element of a list:
https://wolfram.com/xid/05e5wzpj5k-dssjcv
Scope (4)Survey of the scope of standard use cases
Squiggle text in any expression:
https://wolfram.com/xid/05e5wzpj5k-47helj
By default, the typeset form of Squiggled[expr] evaluates to itself:
https://wolfram.com/xid/05e5wzpj5k-nxugr
https://wolfram.com/xid/05e5wzpj5k-cpcpju
This can be changed using the option StripOnInput:
https://wolfram.com/xid/05e5wzpj5k-dzt3y0
https://wolfram.com/xid/05e5wzpj5k-h8kbcz
Squiggle text within graphics:
https://wolfram.com/xid/05e5wzpj5k-gb4k2o
Squiggle text within Graphics3D:
https://wolfram.com/xid/05e5wzpj5k-8zojug
Options (9)Common values & functionality for each option
Background (1)
FontColor (2)
FontFamily (1)
FontSize (1)
FontSlant (1)
FontWeight (1)
StripOnInput (2)
Create a squiggled output that evaluates to the first argument of Squiggled:
https://wolfram.com/xid/05e5wzpj5k-x3qyys
When the output is used as input, the Squiggled wrapper disappears:
https://wolfram.com/xid/05e5wzpj5k-coinc6
When the hold is released, evaluation proceeds normally:
https://wolfram.com/xid/05e5wzpj5k-q9c1yz
An explicit setting StripOnInput False is preserved when the output is used as input:
https://wolfram.com/xid/05e5wzpj5k-j8w7xs
https://wolfram.com/xid/05e5wzpj5k-od5azh
Applications (3)Sample problems that can be solved with this function
Squiggle words that do not appear in the spelling dictionaries:
https://wolfram.com/xid/05e5wzpj5k-ljl37v
Squiggle snowfall totals from Buffalo that fall outside one standard deviation of the mean snowfall:
https://wolfram.com/xid/05e5wzpj5k-due27e
https://wolfram.com/xid/05e5wzpj5k-yw1m8t
Create an integral in which the integrand is squiggled:
https://wolfram.com/xid/05e5wzpj5k-l0tlqn
The output can be used as input to evaluate the integral:
https://wolfram.com/xid/05e5wzpj5k-l2x9pc
Properties & Relations (1)Properties of the function, and connections to other functions
Highlighted provides an alternative highlighting idiom:
https://wolfram.com/xid/05e5wzpj5k-qbp8we
Possible Issues (2)Common pitfalls and unexpected behavior
Invalid color specifications will typeset without a squiggle:
https://wolfram.com/xid/05e5wzpj5k-dsgrhz
Squiggled may not propagate to text nested within other typeset expressions, such as Graphics:
https://wolfram.com/xid/05e5wzpj5k-k51gsn
Wrap Squiggled tightly around the expression to format to avoid this:
https://wolfram.com/xid/05e5wzpj5k-2bk5qg
Wolfram Research (2023), Squiggled, Wolfram Language function, https://reference.wolfram.com/language/ref/Squiggled.html.
Text
Wolfram Research (2023), Squiggled, Wolfram Language function, https://reference.wolfram.com/language/ref/Squiggled.html.
Wolfram Research (2023), Squiggled, Wolfram Language function, https://reference.wolfram.com/language/ref/Squiggled.html.
CMS
Wolfram Language. 2023. "Squiggled." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Squiggled.html.
Wolfram Language. 2023. "Squiggled." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Squiggled.html.
APA
Wolfram Language. (2023). Squiggled. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Squiggled.html
Wolfram Language. (2023). Squiggled. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Squiggled.html
BibTeX
@misc{reference.wolfram_2024_squiggled, author="Wolfram Research", title="{Squiggled}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/Squiggled.html}", note=[Accessed: 10-January-2025
]}
BibLaTeX
@online{reference.wolfram_2024_squiggled, organization={Wolfram Research}, title={Squiggled}, year={2023}, url={https://reference.wolfram.com/language/ref/Squiggled.html}, note=[Accessed: 10-January-2025
]}