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

math environment is not marked up properly #257

Open
ouboub opened this issue Feb 11, 2022 · 0 comments
Open

math environment is not marked up properly #257

ouboub opened this issue Feb 11, 2022 · 0 comments
Labels

Comments

@ouboub
Copy link

ouboub commented Feb 11, 2022

Hi

thanks for the fix. I pulled and reinstalled.
I still think that the use of \begin{math} \end{math} is useful instead of ()

  1. If I quickly want to change in a region from {equation} to {math} the query replace function is easier.
  2. Sometimes people tend to have even longer latex constructs inline, then \begin{math} \end{math} improves the display.

Be it as it may I see quite a difference when using

alt.tex

\documentclass[12pt]{article}
\begin{document}
\(  \int f dx =0\)
\end{document}

new.tex

\documentclass[12pt]{article}
\begin{document}
\begin{equation}
  \int f dx =0
\end{equation}
\end{document}

Compared to having the old file as

old.tex

\documentclass[12pt]{article}
\begin{document}
\begin{math}
  \int f dx =0
\end{math}
\end{document}

I run

/usr/local/bin/latexdiff --math-markup=3 --driver=pdftex alt.tex new.tex > diff1.tex

and

/usr/local/bin/latexdiff --math-markup=3 --driver=pdftex old.tex new.tex > diff2.tex
```
And 
```
/usr/local/bin/latexdiff --math-markup=1 --driver=pdftex alt.tex new.tex > diff10.tex
```
```
/usr/local/bin/latexdiff --math-markup=1 --driver=pdftex old.tex new.tex > diff20.tex
```

I attach the pdfs

Frankly in my view, \( \) is treated correctly but \begin{math}\end{math} no.

So if you could deal with that case I would appreciate this

regards
[diff1.pdf](https://github.com/ftilmann/latexdiff/files/8050166/diff1.pdf)

[diff2.pdf](https://github.com/ftilmann/latexdiff/files/8050164/diff2.pdf)
[diff10.pdf](https://github.com/ftilmann/latexdiff/files/8050170/diff10.pdf)
[diff20.pdf](https://github.com/ftilmann/latexdiff/files/8050174/diff20.pdf)

@ftilmann ftilmann changed the title concerning issue 244: math environment is not marked up properly Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants