diff --git a/html.ml b/html.ml index bad3a44..f4c67ed 100644 --- a/html.ml +++ b/html.ml @@ -484,11 +484,7 @@ and flush_out = flush_out and close_group = close_group and open_aftergroup = open_aftergroup and open_group = open_group -and insert_block s attr = - if find_prev_par () then - warning "Ignoring \\centering or \\ragged..." - else - insert_block (find_block s) attr +and insert_block s attr = insert_block (find_block s) attr and insert_attr s = insert_attr (find_block s) and erase_mods = erase_mods and open_mod = open_mod diff --git a/html/hevea.hva b/html/hevea.hva index f78dc3f..8c89848 100644 --- a/html/hevea.hva +++ b/html/hevea.hva @@ -387,6 +387,7 @@ \newstyle{.parbox}{ box-sizing: border-box; display: inline-block; + text-align: justify; text-indent: 0; } \def\@parbox@alignment@spec@bottom{b} diff --git a/ragged2e.hva b/ragged2e.hva index 32eab93..57a9c16 100644 --- a/ragged2e.hva +++ b/ragged2e.hva @@ -1,10 +1,13 @@ -\let\RaggedRight\raggedright -\let\RaggedLeft\raggedleft \let\Centering\centering +\let\endCentering\relax +\let\RaggedLeft\raggedleft +\let\endRaggedLeft\relax +\let\RaggedRight\raggedright +\let\endRaggedRight\relax \newstyle{.justify}{text-align:justify;margin-left:auto;margin-right:auto;} \newcommand{\justifying}{\@insert{div}{\envclass@attr{justify}}} \newenvironment{Center}{\begin{center}}{\end{center}} \newenvironment{FlushLeft}{\begin{flushleft}}{\end{flushleft}} -\newenvironment{FlushLeftRight}{\begin{flushright}}{\end{flushright}} +\newenvironment{FlushRight}{\begin{flushright}}{\end{flushright}} \setenvclass{justify}{justify} \newenvironment{justify}{\@open{div}{\envclass@attr{justify}}}{\@close{div}} diff --git a/text/hevea.hva b/text/hevea.hva index d1ab77b..00294c5 100644 --- a/text/hevea.hva +++ b/text/hevea.hva @@ -123,6 +123,7 @@ \newcommand{\centering}{\@insert{align}{center}} \newcommand{\raggedleft}{\@insert{align}{right}} \newcommand{\raggedright}{\@insert{align}{left}} +\let\justifying\raggedright %%%%%%%%%%% Figures %For figure & tables \newcommand{\@open@quote}[1]{\@open{quote}{}}