# Tag Info

### Minted, setstretch and font size

\setminted{fontsize=\small,baselinestretch=1} Enjoy
• 863
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
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

### 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 ...
• 34.4k
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 ...
• 679k
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{...
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
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
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
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
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

### 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

### 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
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

### 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
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
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
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} \...
• 485k

### 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
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

### 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 ...

### 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{...
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

### 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
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

### 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
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
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