On Wed, Apr 19, 2023 at 9:46 PM Udicoudco <udifog...@gmail.com> wrote: > > > > > On Wed, Apr 19, 2023 at 4:15 PM Hongyi Zhao <hongyi.z...@gmail.com> wrote: > > > > On Wed, Apr 19, 2023 at 9:00 PM Udicoudco <udifog...@gmail.com> wrote: > > > > > > On Wed, Apr 19, 2023 at 3:36 PM Hongyi Zhao <hongyi.z...@gmail.com> wrote: > > > > > > > > On Wed, Apr 19, 2023 at 8:27 PM Udicoudco <udifog...@gmail.com> wrote: > > > > > > > > > > On Wed, Apr 19, 2023 at 3:18 PM Hongyi Zhao <hongyi.z...@gmail.com> > > > > > wrote: > > > > > > > > > > > > On Wed, Apr 19, 2023 at 1:33 PM Stefano Simonucci > > > > > > <stefanosimonucci....@alice.it> wrote: > > > > > > > > > > > > > > If I understand your question, you should open the following menu: > > > > > > > > > > > > > > Tools --> Preferences. Then in the window Lyx: Prefrences you > > > > > > > have to > > > > > > > open the menu: Look & Feel --> Display. > > > > > > > > > > > > > > and to set On the Instant preview > > > > > > > > > > > > I've enabled this option, but the formulae still show as LaTeX > > > > > > commands. See the attachment for more details. > > > > > > > > > > > > > Stefano > > > > > > > > > > > > Regards, > > > > > > Zhao > > > > > > > > > > > > > > > > Instead of copy a LaTeX code try to import it via > > > > > File->Import->LaTeX (Plain). > > > > > Then the equations should appear in a new LyX file, > > > > > and you can copy them from there. > > > > > > > > This method really fixed the problem of equations display, but the > > > > Chinese characters are displayed as chaos, as shown in the attached > > > > file. > > > > > > > > > > In what encodings the latex > > > > See the following for encoding info of the original TeX file which is > > being imported into LyX: > > > > werner@X10DAi:~$ encguess test.tex > > test.tex UTF-8 > > werner@X10DAi:~$ uchardet test.tex > > UTF-8 > > werner@X10DAi:~$ file -i test.tex > > test.tex: text/plain; charset=utf-8 > > > > > and LyX files are written? > > > > I don't know what do you mean by saying this. I just do the import via > > File->Import->LaTeX (Plain). > > You need to add \usepackage[utf8]{inputenc} to the latex preamble so that LyX > will > know what is the correct encoding. > > Attached is a .tex file that I successfully imported to LyX (I think), the > text is taken > from here.
Thank you very much, and it does the trick. Best, Zhao -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users