Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cspiel
Copy link
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
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