Skip to content

lines= does not reflect \baselinestretch #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kberry opened this issue Oct 10, 2020 · 2 comments
Open

lines= does not reflect \baselinestretch #10

kberry opened this issue Oct 10, 2020 · 2 comments

Comments

@kberry
Copy link

kberry commented Oct 10, 2020

Hi David. Is the lines= option supposed to reflect \baselinestretch? As far as I can tell, it doesn't, which is too bad. Even if not, it would be nice to document it. Simple case below.

Also, is there a better way to change the interline spacing than \baselinestretch? It is weird to specify it as a multiplication factor. Normally one would say "I want 15pt leading". Merely setting \baselineskip since it gets overwritten at font changes, etc.

Thanks.

\documentclass{article}
\usepackage{lipsum}
% without any \baselinestretch, get 30 lines as requested.
% with \baselinestretch, get 23 lines.
\def\baselinestretch{1.3}
\usepackage[lines=30]{geometry}
\begin{document}
\lipsum[1-15]
\end{document}
@dr-scsi
Copy link

dr-scsi commented Dec 7, 2022

@kberry - I thought the usual practice to activate the factor in \baselinestretch is to issue a \selectfont after it. Changing your example above:

\documentclass{article}
\usepackage{lipsum}
% \selectfont added
\renewcommand\baselinestretch{1.3}\selectfont
\usepackage[lines=30]{geometry}
\begin{document}
\lipsum[1-15]
\end{document}

works as expected.

@kberry
Copy link
Author

kberry commented Dec 7, 2022

I didn't know that. Thanks. I'd suggest documenting that (it's not in Lamport afaics), but searching for "baselinestretch" in doc/latex/base/ turns up basically empty, so I guess there's nowhere to do so without lots of effort. Doesn't really seem to fit in the geometry doc, although that's where I was looking. Hmm.

My main question was about whether it was possible to specify the leading directly, not via the \baselinestretch factor and related. I think the answer is no. Which is unfortunate, but such is life, I suppose ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants