Text Formatting ⇒ Problem with leading etc.
Problem with leading etc.
Do you know how to set line spacing in pt? Or maybe know how to set it by using \linespread? I know that 15,5 pt for font 12 pt = 1.069, but I'm not sure how to use it for font 10 pt and line spacing 12 pt. I tried to calculate it and I got 1.076. Is it true? If not, how to calcuate it?
I tried to use \fontsize{10}{12} too, but it didn't work. I put it into preambule and document area but with no result.
I know there is package {setspace}, but I don't know how to use it with pt.
And by the way, do you know if it's a method to change spaces between words in a whole line?
krz
Updating.
I've just found I put \fontsize in wrong way. It should look like this \begin{document}\fontsize{10}{12}\rm (by the way do you know what \rm is for?)
Despite that I found it I still ask if it's possible to use {setspace} with pt and if I can set spaces between words?
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
Problem with leading etc.
Problem with leading etc.
Code: Select all
\fontsize{10}{12}\selectfont
Re: Problem with leading etc.
What is it for? Is it to choose a font in a document? I use
\usepackage[T1]{fontenc}
\usepackage{fouriernc}
to choose it.
Problem with leading etc.
If all you're doing is changing the fontsize and spacing, then \fontsize{10}{12}\selectfont should do it. The selectfont is necessary to activate the \fontsize command.
Generally it's preferable to use packages to do font control, but if no packages are doing the trick, then you can use these low level commands instead.
Re: Problem with leading etc.
I've just checked it and it works, but it also works without \selectfont when I put \fontsize in the same line as \begin{document}.
I'm just curious how I can change line spacing in document. I've just checked it didn't work when I put \fontsize{with different sizes} in another place in document. It changed only size of font. Line spacig is still the same as in first \fontsize command.
Problem with leading etc.
Re: Problem with leading etc.
I'm (how to say...?) stupid. 5 minutes after you explained me that I had to use \selectfont I forgot to do it. When I added it started to work.

Can you help me with another problem? I don't know how to change font size in footnotes and size of number mark, both in text and footnote area. I use footmisc package and looked through a manual, but I couldn't find an information.
Problem with leading etc.
Code: Select all
\renewcommand*{\footnotelayout}{\fontsize{12}{14}\selectfont}
The footnote numbers are typeset using \thefootnote command, so you could redefine it as follows:
Code: Select all
\renewcommand*{\thefootnote}{\normalsize\arabic{footnote}}
Some of this may be different if you are still loading setspace (though I'm not sure you need to if you're using \fontsize instead.) Again, it's much easier to give advice with a minimal working example of your usage.
Re: Problem with leading etc.
I had to fight with \renewcommand for some time (I'm still a beginer in LaTeX), but now it looks great. I can change font size in footnotes as I want.
I'll study MWE to resolve problems.