30 votes

Minted, setstretch and font size

\setminted{fontsize=\small,baselinestretch=1} Enjoy
  • 863
9 votes
Accepted

footfullcite not working when package setspace is present

The setspace package redefines \@footnotetext so that it doesn't use normal baselineskip; however the definition it assumes is the one in the LaTeX kernel, but beamer has a very different definition ...
  • 1.0m
8 votes
Accepted

setlength is not working (distance between equations)

You get the right spacing if you observe some rules: never have a blank line before a display; never have two consecutive distinct displays. Observing the first rule is easy; for the second, use ...
  • 1.0m
7 votes

How can I limit the maximum number of lines in a page?

Use lines option in geometry package. The following is taken from its documentation on page 16. If you don't know how to display the documentation, type texdoc geometry on your terminal (Linux) or ...
7 votes
Accepted

Declaration commands of setspace have no effect inside groups

A paragraph is set using the setting at the end of a paragraph so leave a blank line before the closing } otherwise the settings are lost before the paragraph ends. This is most commonly seen with ...
7 votes
Accepted

Are \onehalfspacing and {spacing}{1.5} Supposed to Yield Different Results?

The environment name is onehalfspace, not onehalfspacing AND, it is (for a 10pt document) equivalent to \begin{spacing}{1.25}. \documentclass{book} \usepackage{setspace} \usepackage{lipsum} \begin{...
6 votes
Accepted

setspace: double spacing messes the predefined position of page number

To get single spaced header and footer on all pages where a layer page style is used, add \KOMAoptions{onpsinit={\linespread{1}\selectfont}} to your preamble. Code: \documentclass{scrreprt} \...
  • 82.5k
6 votes
Accepted

setstretch and todonotes

You're missing \selectfont after \setstretch{1}. In order to avoid having to type in \setstretch{1}\selectfont in every note, you can abuse the size key: \documentclass{article} \usepackage{...
  • 1.0m
6 votes
Accepted

Setspace package changes behavior of \abovedisplayskip

As to why, the answer is easy: the setspace package does \everydisplay\expandafter{% \the\everydisplay \abovedisplayskip \displayskipstretch\abovedisplayskip \belowdisplayskip \...
  • 1.0m
5 votes
Accepted

How can I limit the maximum number of lines in a page?

First, let us see how to show the edges of the margins (showframe option), the numbers of lines (with lineno package and \linenumbers command) and \the\textheightof the MWE: \documentclass[11pt,...
  • 74.5k
5 votes
Accepted

Problem changing spacing for equation environment

I slighly modified your code. The trick was to add a \leavevmode. Note there is no singlespacing environment, but only a singlespace one. \documentclass{article} \usepackage{amsmath} \usepackage{...
  • 264k
5 votes

Defining new split environment with reduced spacing

You can modify the \gather@split macro, calling \linespread{1}\selectfont before \spread@equation. This won't affect other alignment environments. \documentclass{article} \usepackage{setspace} \...
  • 1.0m
5 votes

Issue with KOMA fontsize=10.5pt option and onehalfspacing setting for setspace

You need to load package scrhack in order to get onehalfspacing to work with non-integr font sizes. \documentclass[fontsize=10.5pt]{scrartcl} \usepackage{lmodern} \usepackage{blindtext} \usepackage{...
  • 23.6k
5 votes
Accepted

How to use \SetSinglespace from setspace?

You have set the skip for use when \singlespacing is active. However, you never make this active. \documentclass{article} \usepackage[sfdefault]{FiraSans} \usepackage[nodisplayskipstretch]{setspace} \...
  • 184k
5 votes

Shifted Quote environment

This is very easy with the quoting package and its eponymous environment: \documentclass{book} \usepackage[utf8]{inputenc}% \usepackage[T1]{fontenc} % \usepackage{setspace} % \usepackage{quoting} % \...
  • 264k
5 votes
Accepted

How to \setstretch relative to the previous call?

You can define a \setrelativestretch command using xfp facilities for the computations with floating points. The trick is that the current factor is stored in \baselinestretch, but we need to ensure ...
  • 1.0m
5 votes
Accepted

Spurious blank line with a declaration command of setspace as biblatex's bibsetup

The definition of \singlespacing in setspace.sty is % setspace.sty, line 345: \newcommand{\singlespacing}{% \setstretch {\setspace@singlespace}% normally 1 \vskip \baselineskip % Correction for ...
  • 1.0m
4 votes
Accepted

Line spacing of chapter headings when using titlesec and setspace packages

Give the specification in the first mandatory argument (as a personal note, I consider the spacing of your definition a little bit awkward): \documentclass[final]{book} \usepackage{setspace} \...
4 votes

Hyperlink from footnote mark to footnote body

I had the same issue her and I found this article solving the problem: Using setspace package breaks footnotes link In short, include the setspace package before hyperref package.
  • 141
4 votes
Accepted

spacing in the table's minipage

(this is a slightly expanded version of my earlier comment) Don't use the fairly low-level \linespread command to change from single-spacing to, say, one-and-one-half-spacing. As you've discovered, ...
  • 448k
4 votes

Using \textsuperscript to put commas between consecutive footnotes in amsart document

I am using a comparatively simple command, and it works pretty well: \footnote{text--1}$^{,\thinspace}$\footnote{text--2} As you see, I'm using the "power-to-a-number"-command in in order to get the ...
4 votes

Using \textsuperscript to put commas between consecutive footnotes in amsart document

This seems like a LaTeX bug not ams bug. Try \documentclass{article} \title{A Document} \author{Author} \begin{document} \footnote{Test} \makeatletter \showthe\sf@size \makeatother $1+2=3$ \footnote{...
4 votes
Accepted

How to customize blank space between chapter title and text in gsm

You can correct the spacings with etoolbox: \documentclass{gsm-l} \usepackage[papersize={160mm,240mm},inner=20mm, outer=15mm, vmargin=15mm]{geometry} \geometry{includeheadfoot} \usepackage{fouriernc} ...
  • 1.0m
4 votes

How can I limit the maximum number of lines in a page?

You can do this with setspace and geometry but you must use the spacing command before loading geometry. This still has a rather large margin at the bottom so it is probably best to allow geometry to ...
  • 184k
4 votes
Accepted

Single-spaced equations in double-spaced documents

singlespace starts a new \par. Add a negative \baselineskip: \documentclass{article} \usepackage{lipsum} \usepackage{amsmath} \usepackage{fontspec} \usepackage[doublespacing,nodisplayskipstretch]{...
  • 264k
4 votes

How to Change vertical distance between lines?

You are overriding the onehalfspacing (or doublespacing) option to setspace by doing \renewcommand{\baselinestretch}{1.3} Remove it. On the other hand, your preamble is quite a mess. You load: cfr-...
  • 1.0m
4 votes
Accepted

Can't set singlespacing for code chunks only

I'm not sure what the cause of the problem is, but if you put the code inside a minipage it works as you want: \documentclass{article} \usepackage{setspace} \begin{document} \doublespacing \section*{...
  • 204k
4 votes
Accepted

Making quote renewenvironment have ttfamily font

Judging by the code snippets you've posted, it would appear to be the case that you not only want to use a monospaced font in the quote environment, but also that you wish to use single-spacing in ...
  • 448k
4 votes

setting line spacing locally using \renewcommand{\baselinestretch}

You need a font change/selection to reset the baselineskip: \documentclass{article} \begin{document} some text\\ some text \renewcommand{\baselinestretch}{1.9} some text\\ some text %here no ...

Only top scored, non community-wiki answers of a minimum length are eligible