On Sat, Apr 1, 2023 at 4:10 PM Jean-Marc Lasgouttes <lasgout...@lyx.org> wrote:
> In particular, instead of typing \neq in mathed, why not copy and paste
> a ≠ from some PDF or HTML page?
>
> When doing this, two things happen :
> 1/ on screen, there is no spacing around the ≠
> 2/ in LaTeX output, the character is exported as \neq and all is well
>
> So how should I solve problem 1/ ? I see 3 solutions
> a/ replace ≠ with a \neq directly in the document at input time; we
> might not want to do that in case we eventually use unicode in math too
> b/ replace ≠ with a \neq on screen only
> c/ keep the ≠ on screen, but use the mathrel math class from \neq so
> that we have a good spacing

I would say option b, as unicode-math supports unicode characters inside
math mode. Maybe some users would prefer a latex source that
contains the unicode symbols  and not the corresponding macros.

Ot maybe a better solution would be to add a checkbox in
Document->Settings->Math Options and let the user decide
between option a and option b. but that would probably
require more work.

> --
> lyx-devel mailing list
> lyx-devel@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-devel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to