diff --git a/lib/LaTeXML/resources/CSS/ltx-article.css b/lib/LaTeXML/resources/CSS/ltx-article.css index 1946cdeed..92ac46964 100644 --- a/lib/LaTeXML/resources/CSS/ltx-article.css +++ b/lib/LaTeXML/resources/CSS/ltx-article.css @@ -52,6 +52,10 @@ /* experimental: flex model, to center short captions, justify long ones */ .ltx_table, .ltx_figure { display:flex; flex-direction:column; align-items:center; } +.ltx_table.ltx_align_floatright, +.ltx_table.ltx_align_floatleft, +.ltx_figure.ltx_align_floatright, +.ltx_figure.ltx_align_floatleft { width:min-content; } .ltx_table .ltx_caption, .ltx_figure .ltx_caption { text-align:justify; } diff --git a/lib/LaTeXML/resources/CSS/ltx-book.css b/lib/LaTeXML/resources/CSS/ltx-book.css index 7e572b2aa..5855fd877 100644 --- a/lib/LaTeXML/resources/CSS/ltx-book.css +++ b/lib/LaTeXML/resources/CSS/ltx-book.css @@ -50,6 +50,10 @@ /* experimental: flex model, to center short captions, justify long ones */ .ltx_table, .ltx_figure { display:flex; flex-direction:column; align-items:center; } +.ltx_table.ltx_align_floatright, +.ltx_table.ltx_align_floatleft, +.ltx_figure.ltx_align_floatright, +.ltx_figure.ltx_align_floatleft { width:min-content; } .ltx_table .ltx_caption, .ltx_figure .ltx_caption { text-align:justify; } diff --git a/lib/LaTeXML/resources/CSS/ltx-report.css b/lib/LaTeXML/resources/CSS/ltx-report.css index afd339e34..8bc5d3fb8 100644 --- a/lib/LaTeXML/resources/CSS/ltx-report.css +++ b/lib/LaTeXML/resources/CSS/ltx-report.css @@ -50,6 +50,10 @@ /* experimental: flex model, to center short captions, justify long ones */ .ltx_table, .ltx_figure { display:flex; flex-direction:column; align-items:center; } +.ltx_table.ltx_align_floatright, +.ltx_table.ltx_align_floatleft, +.ltx_figure.ltx_align_floatright, +.ltx_figure.ltx_align_floatleft { width:min-content; } .ltx_table .ltx_caption, .ltx_figure .ltx_caption { text-align:justify; }