{spacing} is about both horizontal and vertical white space, e.g. space between letters or words, or space between paragraphs. For adjusting the space between the lines of a document, use {line-spacing} or -- if your question is specifically about the package of the same name -- {setspace}.

learn more… | top users | synonyms (2)

0
votes
0answers
55 views

ruby furigana + increased ruby size + verse environment = unwanted whitespace

I'm trying to typeset song lyrics in Japanese. I want the words to be accompanied by furigana glosses, as provided by the ruby package. But the default ruby size is too small, so I increased it as ...
14
votes
3answers
583 views

Is it possible to redefine the white space command?

I would like to replace the white space (full space entered by pressing "space" any number of times on the keyboard or by hitting enter) by something else. Let's say, a rule of the same width. Is ...
0
votes
0answers
38 views

Moving figures above each other [on hold]

How is it possible to move figures above/below each other without being hidden? It seems not to be possile to make two consecutive figure environments and place a \vspace{} inbetween to get them ...
3
votes
1answer
45 views

change space between tabs, align environment [duplicate]

I have a problem formatting a few equations the right way. I have equations with 5 variables which should be displayed among themselves. I tried it with the align environment and ended up using a lot ...
0
votes
1answer
37 views

Conditional branch with \ifinner and Spacing in higher derivative (2 independent questions) [duplicate]

I made some macros shown below, which outputs ordinary/partial derivative. I was checking whether they work as I expected, and found that \dif{y}{x} expands to \tfrac{\difd y}{\difd x} in align ...
3
votes
1answer
47 views

How do I write up a new command to implement '\quad \text{} \quad'?

I would like to abbreviate \quad \text{} \quad. I tried \newcommand{\wtext}{\quad \text{} \quad} but the output proved me wrong. So I wonder how to properly achieve this?
0
votes
0answers
37 views

Bad vertical spacing in simple fraction

How can I even out the spacing in these fractions? I have tried \frac vs \dfrac along with \strut and I get similar results: \[ \bar{x} = \frac{0+1+2+5}{4} = \frac{8}{4} = 2 \] \[ \bar{x} = ...
0
votes
1answer
34 views

Align first letters of chapter titles in Table of Contents

I am trying to create table of contents for starred version of chapter. My goal is to align all first letters of the titles to the same position. I was able to achieve that separately for single digit ...
2
votes
1answer
57 views

Vertical spacing in enumitem list

Consider the following example. Code \documentclass{article} \usepackage{enumitem} % New line after \item (http://tex.stackexchange.com/a/29518/15874) \makeatletter \def\myitem{% \@ifnextchar[ ...
1
vote
1answer
37 views

indentation within the text

While preparing a report, I want to write the text (below the equations) similar to attached figure. I tried using \begin{align},\, commands (even after knowing that the align command is using for ...
1
vote
2answers
179 views

“Sign here” dotted line and names below [duplicate]

I'm trying to create a dotted line with a name below. It should be relatively simple. However, the dots appear indented with respect to the Name. They should be in line. I have tried \hspace{} before ...
1
vote
2answers
58 views

Reduce white space above chapter title, and reduce space between title and text, for unnumbered chapters

How can I reduce the white space above the chapter heading? How can I reduce the space between the heading and the text? I want to be able to do this for selected chapters only, or after a given ...
3
votes
1answer
49 views

How to fix my title slide (problem with aligning text)

\documentclass[12pt]{beamer} \usetheme{Rochester} \title{my title which is very long so pushes the date off the page} \author[Author]{my name} \institute[university ]{\normalsize university ...
0
votes
2answers
45 views

How to insert a text box with controllable margin

I want to insert a text box with controllable margin. Specially, how to format the following text as the following Figure? And how to set the space? Currently, I use \noindent\fbox{ ...
0
votes
1answer
30 views

How declare numeric constants with space without ~

I have written a document with some data that I must update at last minute. So I have created some newcommand: %-------------------------------- % Insert data here \newcommand{\srskm}{12,253~} ...
1
vote
0answers
43 views

How do I place table below plot so that category matches axis ranges?

Here is something that I'm trying to do is to align my table with x-axis category or range so that column below the x range is corresponding of the data So As example is shown, I want to create ...
1
vote
1answer
38 views

\setstretch doesn't work using abntex template

I'm trying to change the line space of my document. I used \linespread but it changes also the toc line space, and I don't want this. So I tried \setstretch but it doesn't work. I believe that I ...
5
votes
1answer
168 views

Adjust vertical spacing for any combination of text, equations and custom environments

Edit I completely rewrote the question thanks to @pluton's comment. I have a couples of documents which have to fit on two pages. Some of them are short, so nothing needs to be done. But for some ...
3
votes
4answers
163 views

Underset spacing

I've got the following equation \begin{align*} \hat{\boldsymbol{\eta}} = \underset{(\boldsymbol{\beta}_{1}, \ldots, \boldsymbol{\beta}_{d}, \boldsymbol{\theta}) \in B_{1} \times \cdots \times ...
1
vote
1answer
26 views

reduce spacing before and after citation

Having used these instructions I saw a problem. When I use the \citep command I take: ( name, date ) Instead of: (name, date) What's my problem? ...
1
vote
1answer
32 views

How to change the spacing before and after a quote environment?

I'm using the book class and I would like to change the default spacing before and after a quote environment.
4
votes
2answers
58 views

Spacing within brackets of a matrix

I am trying to add extra space after the left bracket and before the right bracket in a matrix. I've changed the column spacing with \arraycolsep, but I also want the entries right aligned. I can ...
5
votes
2answers
170 views

How to write matrices with dimensions in latex?

I am just starting to use latex, and with all the internet help i figured out how to do many things myself, but now i am stuck. How can I write what you all can see in the picture? Thanks for the ...
4
votes
1answer
143 views

Remove empty space before chapter contents

I’m struggling to replicate a corporate design in (Lua)LaTeX. The problems arise with a very special treatment of the page head (and margins): The header is very large with a page number in the top ...
2
votes
2answers
49 views

How do I draw a horizontal line without adding space

I divided my latex page into 3 using minipage. \documentclass[a4paper,12pt]{article} \usepackage[left=2cm,right=2cm,top=0cm,bottom=0cm]{geometry} \usepackage{lipsum} \setlength\parindent{0pt} ...
4
votes
1answer
156 views

Vertical spacing and item separation between entries in pgfplots' legend

One could find a lot of questions on how to change the horizontal spacing between legend entries in pgfplots, but I can't find anything on the vertical spacing between the entries. For example, when ...
2
votes
1answer
29 views

Extra line space being inserted, unrequested

I have created a survey form over two A4 pages, using tables. I have fancyhdr on top of each page and have suppressed the \maketitle command. Both tables have almost exactly the same content (the ...
8
votes
4answers
164 views

Paragraph break only if insufficient space to end of line

I want to write source like Lorem ipsum dolor sit amet. \smallnote{Smaller.} and have it render so that if there is enough room for a \parindent plus the start of the \smallnote (the first word, ...
1
vote
1answer
48 views

\titlespacing + scrreprt not working

I am currently trying to change the titlespacing after a \subsection*{}. Tried \titleformat{\subsection}[hang]{\large\bfseries}{\thesubsection\quad}{0pt}{} \titlespacing{\subsection}{0pt}{6pt}{2pt} ...
2
votes
2answers
62 views

Adjust table spacing and cells centering

I want to make a formal table in a report. I used the following code; however, I still need to remove the gaps between the cells contents and data to save space. Also, I want to center the cells ...
2
votes
1answer
57 views

Layout problem when mixing tasks and enumitem

There seems to be a layout issue when attempting to incorporate a tasks environment directly within an enumerate environment, when no text is specified between the \item (enumerate) and the beginning ...
2
votes
2answers
53 views

Wrapfigure keeps space for rest of page

Can anyone helped me with this? I've looked up questions with similar problems but nome of them seem to work for me. I'm writing a book and I like to use wrapfig for site-notes for recalls or notation ...
6
votes
1answer
62 views

Conditional whitespace in math mode

Clarification \documentclass[fleqn]{article} \def\foo{What do I put here???} \begin{document} \[a \foo b\] \[\foo b\] \[a, \foo b\] \[a, b\] \end{document} I would like the document just ...
2
votes
1answer
31 views

Remove space in the default `\cref` command

I have my crefs defined as \crefname{section}{§}{§} \crefname{subsection}{§§}{§§} And when I reference it displays, for example, like § 4.5. I would like the middle space to dissapear and this ...
5
votes
1answer
82 views

Unwanted extra space before \vspace* at top of page

When I start a page with \vspace*, there is an extra space in addition to what I specify in the vspace. In this example, without the \vspace the top of the first line begins at 1 inch from the top ...
6
votes
2answers
81 views

Slight misalignment using hphantom equals sign in align

I am attempting to align the integral signs precisely, whilst still retaining the correct spacing around the equals signs. Why doesn't the following code get it exactly right? \begin{align} & ...
3
votes
2answers
63 views

Spurious space on moderncv \cventry using \if

I am trying to display some information in a \cventry conditionally using a defined \ifdetails switch. However, for some reason that is beyond my knowledge, an spurious space (or new line) is created. ...
0
votes
1answer
25 views

twoside breaks spacing

I'm using minipages to keep related questions together on a test that I'm writing. When I make a 2-sided document some of my spacing gets messed up before the section break. It works fine if I leave ...
0
votes
1answer
40 views

Unwanted Vertical Space before figures in IEEE Tran Latex document

I am trying to insert .eps figures in my IEEE tran latex document. My figures are shifted down from the original position. Although the figure captions are in their desired positions. I have used word ...
1
vote
1answer
37 views

Tracking in chapter titles with titlesec

I've been trying to add tracking (letter spacing) to my chapter titles with titlesec, but to no avail. I'm using fontspec and XeTeX, so microtype isn't available to me. Another post said this can be ...
0
votes
0answers
30 views

Font color affects spacing

I'm in the process of doing some changes to a paper based on the review comments. I want to have a command that simply highlights with red color the changes that I do, but when the command is changed ...
8
votes
3answers
430 views

Placing a fleuron in a paragraph indent without altering the spacing?

I'm trying to place a fleuron at the beginning of an indented paragraph without pushing the text of the first line forward. I want the fleuron to be flush with the left margin of the paragraph, while ...
0
votes
0answers
35 views

Paragraph skip preserving titlesec, titletoc, table of contents, list of figures and indentation

I have hard time dealing with paragraph skip while keeping titlesec/titletoc, table of contents, list of figures and indentation the same (this is a french book). I have the following class: ...
0
votes
1answer
100 views

Spacing between section, subsection, subsub… etc

I'm in the process of writing my bachelor thesis. The problem is: standards. Question: How to make the spacing between text and titles (chapters, sections, subsections etc.) but still hold the ...
4
votes
1answer
70 views

Is there a parenthesis code that work in all contexts and arguments?

This question is about having the most generic parenthesis code if one doesn't know the contents size of the parenthesis a priori. If I want to write a function or parenthesized equation I write, for ...
3
votes
1answer
46 views

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

I use gsm packages from AMS to write my book. Overall, the package is beautiful and works well. There is only one problem, that is the vertical space between the header and the chapter title & the ...
1
vote
1answer
43 views

Height chapter number or height chapter name in memoir

I use memoir class. I want add some vertical space before chapter name or chapter number. I got that with \beforechapskip command, but this way add a fixed vertical space for all chapters. There are ...
3
votes
2answers
42 views

Caption away from the figure

I have made a block diagram using the \framebox command. A large white space exists between the caption and bottom of the figure. How can I reduce it? Code: \begin{figure*}[!t] ...
4
votes
1answer
48 views

Creating a Blank space - Formula sheet

This is my first time here and I'm also quite new to latex, but I've managed (with the help from a template I found online) to make this nice three column formula sheet. My problem is that i need ...
3
votes
1answer
43 views

How to define d in integral expression for \int \dif x f(x) notation

There seems to be some consensus about defining \dif like this: \newcommand{\dif}{\mathop{}\!\mathrm{d}} Should I \mathrm the d in my integrals?, What is the difference of \mathop, \operatorname ...