]> git.lyx.org Git - features.git/commit
Strike out (in the output) deleted display math with track-changes
authorEnrico Forestieri <forenr@lyx.org>
Sat, 5 Nov 2016 20:31:09 +0000 (21:31 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 5 Nov 2016 20:31:09 +0000 (21:31 +0100)
commit8a1f936ff190964649643872f0c45da10ce3105f
treef77e6511db706fb5959b349b04686fa0d2b57031
parent319117855589c506728b2069cbc2ac562487052a
Strike out (in the output) deleted display math with track-changes

Showing deleted display math by enabling "Show Changes in Output" was
only possible with dvi (through dvipost). Although LyX strikes out
such formulas on screen, it was impossible obtaining an output
directly using pdflatex (or other engines producing pdf) because
ulem cannot cope with display math material and gives errors.
The solution is to strike out by ourselves such deleted formulas.
I took into account several options. One of them would produce
an output similar to dvipost (which strikes out each element), but
would have required much more changes in the output routines.
Eventually, I opted for using tikz, which gives a more clean
output (as it requires to simply adding a preamble and a postamble
to the latex code of any displayed math, instead of a mark up
tailored to each particular math construct). The look of the pdf
output is similar to the way LyX strikes out the equations on screen.

Fixes #9678
13 files changed:
src/Buffer.cpp
src/Changes.cpp
src/LaTeXFeatures.cpp
src/LaTeXFeatures.h
src/OutputParams.cpp
src/OutputParams.h
src/Paragraph.cpp
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathHull.h
src/mathed/InsetMathNest.cpp
src/mathed/MathStream.cpp
src/mathed/MathStream.h
status.22x