LyXdouble f looks strange in align setting

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
GiToRaZor
Posts: 2
Joined: Sun Aug 26, 2012 9:13 pm

double f looks strange in align setting

Post by GiToRaZor »

Hi there,

I quite new to LyX and have the following problem.

When entering a word in the align setting that contains a double f, in my case the word affine, the result shows in the exported .pdf as af fine. I don't have the same problem outside of the of the align setting.

For general information, I'm using version 2.0.3 of LyX and write in the document class ams article under opensuse 12.2.

Thanks in advance for any help. I did use the search function, but it didn't come up with any usable results.

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

double f looks strange in align setting

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Instead of directly writing affine in math mode, write it in text mode within math environments, such as \text{affine}. If you need italic, use \textit{affine}, or \mathit{affine} if it has to be in math font. However, as it's a text word, I would use \text, to let look different to a product of math variables.

The reason is, in text mode ff is a ligature, but math variables f and f are typeset with more inter-character space.

Stefan
LaTeX.org admin
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

double f looks strange in align setting

Post by cgnieder »

If you want to insert text in a math environment you should declare it as text.

The window:
affine1.png
affine1.png (2.31 KiB) Viewed 4517 times
The source:
affine2.png
affine2.png (10.63 KiB) Viewed 4517 times
The pdf:
affine3.png
affine3.png (2.21 KiB) Viewed 4517 times
I inserted it via »Edit > Math > Text Style > Text Normal Font«

Regards

(Bah -- this is the second Time I used LyX and it drives me crazy!)
site moderator & package author
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: double f looks strange in align setting

Post by Stefan Kottwitz »

Ah, now noticed that LyX is meant, so you need the GUI way as Clemens described. I hope that my explanation of the reason and the underlying LaTeX commands help too.

Stefan
LaTeX.org admin
GiToRaZor
Posts: 2
Joined: Sun Aug 26, 2012 9:13 pm

Re: double f looks strange in align setting

Post by GiToRaZor »

Thanks for the help, this really solved my problem.

As an explanation why i did use the math environment: it is common in mathematics to write the actual word you are defining highlighted in the actual definition body. the results with \mathit and \textit are actually way better then what I achieved so far.
Post Reply