LyXUgly Text, beautiful Formulae

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
summicron
Posts: 2
Joined: Mon Apr 23, 2012 9:39 pm

Ugly Text, beautiful Formulae

Post by summicron »

Dear Lyx experts,

I have a problem with the PDFs produced by LyX. As the attached image shows, formulae are as beautiful as usual in LaTeX, but the text has become jagged. Does anyone know what the cause is and how to remove it?
JaggedFont.png
JaggedFont.png (19.68 KiB) Viewed 3649 times
Thank you very much for your efforts!

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Ugly Text, beautiful Formulae

Post by localghost »

It's not so much a problem of LyX, but of its back-end, your TeX distribution. And it's a bit surprising to me that it only affects the running text.

Try to remedy the issue by installing the cm-super package with the package manager of your TeX distribution.


Best regards and welcome to the board
Thorsten
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Ugly Text, beautiful Formulae

Post by Stefan Kottwitz »

I agree with Thorsten. It seems that bitmap fonts are used instead of vector fonts, which causes the pixelated output. This can happen for example if you use T1 font encoding (good) which is just not supported by the default font. The proposal of Thorsten would fix that, as cm-super contains the standard (like) font with T1 support.

Alternatively, you could use the Latin Modern font, which is very similar to the default font, as it's intended to become the successor, and which supports T1 encoding. If you like, just add to your document preamble:

Code: Select all

\usepackage{lmodern}
Thorsten's suggestion doesn't require any change to the document.

Stefan
LaTeX.org admin
summicron
Posts: 2
Joined: Mon Apr 23, 2012 9:39 pm

Re: Ugly Text, beautiful Formulae

Post by summicron »

Thank you very much for your fast solutions! I did not have to try yours, Stefan, as Thorsten's suggestion worked, but thanks anyway. It looks fantastic now!
Post Reply