LyXHow can I change font size globally

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
katysmith
Posts: 2
Joined: Tue Jan 08, 2013 8:11 pm

How can I change font size globally

Post by katysmith »

Hello,

I am finding difficulty with Lyx to change the font size for the whole document. I appreciate that setting the Fonts==> Base size will control the font size. However, if I pasted some text with a different size or changed part of the text in the document then the global font size is not controlled anymore from just the Base Size. Ideally, you want a command that can be added to force the font size to be consistent through out the document regardless of changes you made by mistake in the text. This of course applies to math.

Any ideas?

Cheers.

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

How can I change font size globally

Post by cgnieder »

Hi Katy,

welcome to the LaTeX community!
katysmith wrote:However, if I pasted some text with a different size or changed part of the text in the document then the global font size is not controlled anymore from just the Base Size.
I'm not sure I understand what you mean. Could you attach a small LyX-file (containing maybe two or three lines only) that shows this behaviour?

Regards
site moderator & package author
katysmith
Posts: 2
Joined: Tue Jan 08, 2013 8:11 pm

Re: How can I change font size globally

Post by katysmith »

Hi. I am attaching a lyx file here. You'll notice that although I have the base font is set to 12, the font size does not change globally. This may not be a problem in short documents but I see it a problem in long ones e.g book or thesis.

My other interest is if there is a way to set the spacing in the whole document as e.g. single spacing. I like to work on double spacing while writing as it is easy on my eyes. But then I have to keep setting the whole document back to single spacing every time I want to compile and see changes in my writing as PDF, Any suggestions?

Best regards
Attachments
Test.lyx
test file
(2.94 KiB) Downloaded 611 times
jotaace
Posts: 4
Joined: Wed Jan 02, 2013 9:29 pm

Re: How can I change font size globally

Post by jotaace »

Hi,

You can easily change the whole document spacing in Document->Settings->Text Layout->Line Spacing. You can specify either Single, Half, Double or Custom, this one in any units accepted by LaTeX. Don't need to specify it individually (I recommend not to do, so it will be impossible to find that individual tweaks in large documents).

The base font only establishes the size of the "normal" text, and makes the rest of sizes (Large, Huge, tiny, etc) grow or shrink proportionally. If you specify a size other than provided by class-defined environments (i.e. Title, Standard, Quote...) you can only revert it manually, or "resetting" the whole document by selecting all and going to Text Style->Size->Reset. If there is another way I don't know it.

I don't understand the part of pasting text of different sizes. ¿Can you explain it a little more?
Post Reply