formatters.format_mul
format_mul(value, col_index=0, **kwargs)Format Mul expressions with numeric/unit separation.
For Mul without free symbols (e.g., 5*meter), applies transformation to separate numeric and unit parts, then formats as SymPy Basic.
Transformation: 5meter -> UnevaluatedExpr(5) UnevaluatedExpr(meter) LaTeX output: “5 ” instead of “5meter”
Parameters
value : Mul Multiplication expression to format col_index : int, optional Column index (0 = LHS, 1+ = RHS) **kwargs Passed to format_sympy()
Returns
str LaTeX string representation