formatters.format_str
format_str(value, col_index=0, **kwargs)Format Python strings to LaTeX text.
Pure conversion: wraps string in without additional decoration. Column wrapping (e.g., prefix) is handled by wrap_column().
When config.display.text_wrap is True and katex is False, uses a varwidth environment instead of to allow dynamic line wrapping in PDF output. Requiresin the LaTeX preamble.
Parameters
value : str String value to format col_index : int, optional Column index (kept for API consistency, not used) **kwargs Ignored
Returns
str LaTeX string with or varwidth wrapper