Skip to content

Fix environment name s/FlushLeftRight/FlushRight/.#53

Open
cspiel wants to merge 3 commits intomaranget:masterfrom
cspiel:fix-ragged2e-env-name
Open

Fix environment name s/FlushLeftRight/FlushRight/.#53
cspiel wants to merge 3 commits intomaranget:masterfrom
cspiel:fix-ragged2e-env-name

Conversation

@cspiel
Copy link
Copy Markdown
Contributor

@cspiel cspiel commented Nov 25, 2020

Also add some missing end-of-environment macros, which caused warnings.

@maranget: In this context I'm not satisfied with Html.insert_block.

and insert_block s attr =
  if find_prev_par () then
    warning "Ignoring \\centering or \\ragged..."
  else
    insert_block (find_block s) attr

The "warning" is potentially misleading; it is not only triggred by the
macros it mentions.

Add some missing end-of-environment macros, which caused warnings.
@cspiel
Copy link
Copy Markdown
Contributor Author

cspiel commented Nov 26, 2020

In fact the problem of Html.insert_block is not just the warning.
It inhibits the correct flayout in

\documentclass{article}
\begin{document}
\raggedleft Ragged-left text.

\raggedright Ragged-right text.

\centering Centered text.
\end{document}

In my experiments this example is translated faithfully if
the conditional iside of the function is removed.
Proceed with fingers crossed... 😲

to get correct translation of e.g. `\raggedleft',
`\raggedright', and `\centering'.
Force text alignment inside of (HTML) `\parbox' to follow
LaTeX's default layout (ragged2e modifications to `\parbox'
are ignored).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant