-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
LaTeX: preserving math sections #69
Comments
I still need to add support for end of line comments (#46). At the moment they're just seen as normal paragraph text so don't do anything special. The problem is the math section isn't recognised either. I think you like it if that section was preserved anyway? (Like #68). For example:
I can add that for all math environments ( |
Thanks for your reply.
Actually, that's perfect! Regardless of my personal style, most users would expect normal paragraph reflow for inline math (i.e., Here is a more comprehensive list of math environments in common usage, including those from the
Edit: -Facepalm- I just realised that all of the begin/end variants can be covered in general, and you probably didn't need all of those specific cases. Footnotes
|
Fantastic, thanks for all that info! I did hope to have a beta ready by now, but there were a few complications. I should get time in the weekend to do it. |
Ok I've just released a beta version which has this addition. The list of math environments was indeed helpful, since only in those should all text be preserved verbatim. If you'd like to test it (I'd be grateful :)) you can download/install the beta from https://github.com/stkb/Rewrap/releases/tag/v1.7.0-beta1 I'm planning to release the next version properly in a week's time, after tackling some of the other issues. Edit: forgot to say, basic rules for how it works are here |
Sure, I'd be happy to test it. I'll put it through some paces tomorrow. |
It's now in v1.7.0. Will close this now but let me know if anything's not working as expected. Other issues to improve LaTeX are also welcome. |
Thanks. Sorry, I got landed with a pretty full plate that I'm still trying to work through. I will let you know if there are any problems. |
Thanks for a remarkably useful and versatile extension. I'm aware that you don't often use LaTeX, so I'm especially thankful that you're supporting it.
If I have long inline-math, I put the code on separate lines. Eg:
Rewrap correctly ignores my linebreaks and wraps that all up. So to suppress that behaviour, I tried leaving a trailing comment:
but Rewrap pulls the opening dollar-sign up after the trailing %, which creates a delimiter mismatch!
The text was updated successfully, but these errors were encountered: