TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently using using fontspec to set the mono-space font for my document using

\setmonofont[Scale=MatchLowercase]{Monaco}

The scaling is used to get the font size to match the rest of the document. The size of the characters is scaled, but the line-spacing is not. Is there a way to get the line spacing to scale as well?

share|improve this question
1  
Could you give an example that shows the problem? I don't see any. – egreg Aug 28 '12 at 9:17
3  
The line spacing is tied to the (nominal) fontsize, it doesn't change when you change the font family. If you want a different line spacing e.g. in a code environment you will have to change \baselineskip locally. – Ulrike Fischer Aug 28 '12 at 10:19
up vote 4 down vote accepted

The line spacing is tied to the (nominal) fontsize, it doesn't change when you change the font family. If you want a different line spacing e.g. in a code environment you will have to change \baselineskip locally.

share|improve this answer
    
Could you give an example? As in, would I issue \baselineskip=blah before each \begin{verbatim}? And how would one set it back afterward? – Hendy Jun 8 at 21:17
    
@Hendy, actually just adding \linespread{.7} in front of the listing works. – white_gecko Jun 17 at 11:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.