On Mon, Oct 17, 2016 at 08:10:04PM +0200, Enrico Forestieri wrote: > On Sun, Oct 16, 2016 at 11:27:02PM -0400, Scott Kostyshak wrote:
> > I tested it out and have a couple of questions. Attached is a file. If I > > compile I get an error ("there's no line to end here"). If I put the > > cursor at the end of "hello" and press (forward) delete to remove the > > newline (nothing changes on the screen) and then compile, there is no > > error. > > Fixed at c1bfaa5c. Tested and confirmed. > > A second question is: Is the diagonal line supposed to be so large? > > Screenshot attached. > > Yes, unfortunately. There is no way (that I know of) for determing the > width occupied by displayed math, Neither can I. The only thing I can think of is to preview the display equation but that seems like a bad hack for something like this. > However, one can redefine \lyxmathsout > and customize the width of the line case by case. See the attached first > example. Maybe that hook should be provided by default? Could be. I think leaving it how you had it is fine though. This is only about aesthetics. The important thing is that thanks to your fix, the information that the display equation was deleted can now be accurately conveyed it the output. > I also explored other different ways for striking out displayed math. > I like very much method 1 in the second attached example. However, it is > more complicated to automate in LyX. Maybe I could do that when I find > the necessary time and introduce some preference for choosing the way > display math is striked out. But don't hold your breath while waiting ;-) OK. One more detail I noticed is that the size of the equation is not accurate when showing the changes in output. Again, I don't think this is that important since the information that the equation was deleted is the only critical thing, but I report it nonetheless. To see this, compile the attached example file with "show changes in output". The equations should be the same size. Scott
#LyX 2.3 created this file. For more info see http://www.lyx.org/ \lyxformat 513 \begin_document \begin_header \save_transient_properties true \origin unavailable \textclass article \use_default_options true \maintain_unincluded_children false \language english \language_package default \inputencoding auto \fontencoding global \font_roman "default" "default" \font_sans "default" "default" \font_typewriter "default" "default" \font_math "auto" "auto" \font_default_family default \use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 100 \font_tt_scale 100 100 \use_microtype false \graphics default \default_output_format default \output_sync 1 \bibtex_command default \index_command default \paperfontsize default \spacing single \use_hyperref false \papersize default \use_geometry false \use_package amsmath 1 \use_package amssymb 1 \use_package cancel 1 \use_package esint 1 \use_package mathdots 1 \use_package mathtools 1 \use_package mhchem 1 \use_package stackrel 1 \use_package stmaryrd 1 \use_package undertilde 1 \cite_engine basic \cite_engine_type default \biblio_style plain \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date false \justification true \use_refstyle 1 \index Index \shortcut idx \color #008000 \end_index \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \paragraph_indentation default \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes true \output_changes true \html_math_output 0 \html_css_as_file 0 \html_be_strict false \author 274215730 "scott" \end_header \begin_body \begin_layout Standard Both of these are the same size: \size giant \begin_inset Formula \[ x+y \] \end_inset \end_layout \begin_layout Standard and \end_layout \begin_layout Standard \change_deleted 274215730 1476730413 \size giant \begin_inset Formula \[ x+y \] \end_inset \change_unchanged \end_layout \end_body \end_document
signature.asc
Description: PGP signature