sherlockpipe.single_transits.report.replace_mathrm

sherlockpipe.single_transits.report.replace_mathrm(match)

Replace a regex match with a mathrm-wrapped version for LaTeX rendering.

Parameters

matchre.Match

Regex match object whose group(1) is the substring to wrap.

Returns

str

Formatted string with the matched content in mathrm braces.