On Mon, Apr 15, 2019 at 12:16:26PM +0200, Jean-Marc Lasgouttes wrote:
> 
> Let's go through the remaining issues now.
> 
> Le 12/04/2019 à 05:23, Isaac Oscar Gariano a écrit :
> >   * It supports unicode input. LyX seems supports this as well, but when
> >     I put '→' in the autocorrect file instead of '\rightarrow' it shows
> >     in lyx with a different font, however it still outputs \rightarrow
> >     in the LaTeX. It would be nice if I could change the font lyx uses
> >     here, so I could at least copy and paste unicode symbols from other
> >     programs.
> 
> I will pass on this one. Could someone comment on the use of unicode in
> math?

I am not sure I understand the question. LyX supports all unicode
symbols defined in the unicodesymbols file. If one tries to paste
on of such symbols, by default, LyX inserts a \text inset and then
the literal unicode point corresponding to the symbol (and this is
represented using the system font selected in the preferences, and
not by a TeX font, which is only used for TeX symbols such as \ell).

When exporting to latex, the definition in the unicodesymbols file
is used, otherwise an error occurs because LyX does not know how to
translate that codepoint to something understood by latex.

Independently of the ability to translate to latex the symbol, one
can copy such symbol from LyX and paste it to some other application.
However, the symbol representing '\rightarrow' on screen will be
pasted as the latex code '\rightarrow' and not '→'.

Just to complete the description, if one dissolves the \text inset,
the math version from the unicodesymbols file is used for the
pasted symbol. So, pasting '→', when exporting to latex, one gets
'\text{\textrightarrow}'. By dissolving the \text inset, the '→'
now becomes '\rightarrow'.

-- 
Enrico

Reply via email to