diff --git a/src/pyladoc/latex.py b/src/pyladoc/latex.py index ca217e4..bdb4c14 100644 --- a/src/pyladoc/latex.py +++ b/src/pyladoc/latex.py @@ -131,7 +131,7 @@ def render_pandas_styler_table(df_style: Styler, caption: str = '', label: str = yield '\\centering\n' # Guess column type - numeric = re.compile(r'^[<>]?\s*(?:\d+,?)+(?:\.\d+)?(?:\s\D.*)?$') + numeric = re.compile('^[<>-\u2212]?\\s*(?:\\d+,?)+(?:\\.\\d+)?(?:\\s\\D.*)?$') formats = ['S' if all( (numeric.match(line[ci]['display_value'].strip()) for line in table['body']) ) else 'l' for ci in range(len(table['body'][0])) if table['body'][0][ci]['is_visible']]