LyXLyX dispaying incorrect characters in Math Mode - Linux Mint

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Jimmy
Posts: 3
Joined: Thu Apr 04, 2019 8:42 am

LyX dispaying incorrect characters in Math Mode - Linux Mint

Post by Jimmy »

Hi everyone,

I actually asked this question originally on the LaTeX stack exchange and it was suggested I ask here instead. Basically I installed Linux Mint 19.1 a few days ago. Before that I was a Windows user. I installed Texlive-full from the ubuntu repository and then LyX. The problem is that LyX displays the incorrect characters in math mode. For example instead of the greek alphabet when I type "\alpha" or "\beta" it prints bold font English letters "a" and "b". Instead of a minus sign it displays "lyxminus". Some characters are still correct such as epsilon but the majority are wrong. the output PDF is correct. I have tried reinstalling both LyX and TexLive. I think it may be the fonts on Mint itself. I tried to update Mint but that made no difference. If anyone has solved this in the past this or knows how to fix it I will appreciate the help.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

LyX dispaying incorrect characters in Math Mode - Linux Mint

Post by Stefan Kottwitz »

Hi Jimmy,

welcome to the forum!

Is it a LyX displaying issue, or is the PDF output wrong too?

Can you please post a sample .lyx file, the pdfLaTeX export file (for us LaTeX users without LyX to check the same), and the .log file? The Attachments link is below the text edit field, when writing a post.

Stefan
LaTeX.org admin
Jimmy
Posts: 3
Joined: Thu Apr 04, 2019 8:42 am

LyX dispaying incorrect characters in Math Mode - Linux Mint

Post by Jimmy »

Hi Stefan,

Thanks for the response. It's only in LyX, the output file is fine.

Jimmy
Attachments
Screenshot
Screenshot
lyx screenshot.png (74.25 KiB) Viewed 8654 times
Example.log
.log
(32.54 KiB) Downloaded 484 times
Example.lyx
Input
(2.25 KiB) Downloaded 439 times
Example.pdf
Output
(10.9 KiB) Downloaded 439 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

LyX dispaying incorrect characters in Math Mode - Linux Mint

Post by Stefan Kottwitz »

Did you install LyX from a (Ubuntu?) repository or from http://www.lyx.org? Perhaps check the download page for a Debian package that can be installed. (such as by dpkg -i lyx.deb)

It seems to be a LyX issue since it's find in the pdfLaTeX output, or a Mint font rendering issue. If there's a newer version of LyX than you installed, I would give the newer one a try.

Stefan
LaTeX.org admin
Jimmy
Posts: 3
Joined: Thu Apr 04, 2019 8:42 am

LyX dispaying incorrect characters in Math Mode - Linux Mint

Post by Jimmy »

Thanks for your help!

The problem now seems to be fixed. I removed LyX from the system entirely and used synaptic package manager to install LyX rather than apt (command line tool). This may have installed a more recent version, as it is the most up to date release available according to https://repology.org/project/lyx/version which is the full list of LyX versions for Linux.
Hayk Asatryan
Posts: 1
Joined: Mon Mar 02, 2020 4:03 pm

LyX dispaying incorrect characters in Math Mode - Linux Mint

Post by Hayk Asatryan »

The trick that solved this problem for me was the installation of

"fonts-lyx" (version: 2.2.4-0ubuntu0.18.04.1)

using Synaptic Package Manager. Earlier I removed LyX using

sudo apt-get remove lyx (remove your repository version)
sudo apt-get autoremove (remove repository dependencies)

as instructed on the LyX official page. Then I tried the fresh installation first using the method suggested by the LyX official page:

sudo add-apt-repository ppa:lyx-devel/release (add the PPA for the 'release', i.e. stable, compilation)
sudo apt-get update (update so that apt is aware of the new PPA)
sudo apt-get install lyx (install from the PPA)

Then I removed LyX once more and tried another fresh installation using Synaptic. Neither method had solved the problem for me until I installed "fonts-lyx" (version: 2.2.4-0ubuntu0.18.04.1) using Synaptic. This solved the problem. After that I updated LyX using Terminal and "fonts-lyx (to version: 2.3.4.2-1~bionic~ppa1)" using Synaptic.
Post Reply