Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [spacing]

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

0
votes
0answers
24 views

How to prevent additional space after a table?

I have a table and I was not able to remove additional space that exists after the table's caption. \begin{table}[ht] \raggedright \begin{tabular}{l|l} ... \hline \end{tabular} \...
0
votes
1answer
29 views

Why xapptocmd is reducing the vertical space between \partname and \parttile?

Running this example: \documentclass[ 10pt, a5paper ]{memoir} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{xcolor} \definecolor{ultramarine}{RGB}{0,32,96} \RequirePackage{xpatch}...
0
votes
0answers
40 views

Line spacing - equivalent to MS Word 1.5 spacing

I am writing my thesis, somewhere towards the end of it, but also the time is tight, so I'd appreciate some help. I have to use 1.5 line spacing. However, I read somewhere that \onehalfspacing of the \...
0
votes
0answers
17 views

No vertical spacing between Theorems in Beamer

How to set no vertical spacing between Theorems in Beamer? Since the following code produce some vertical spacing above and below each theorem. \documentclass{beamer} \usetheme{Berlin} \begin{...
1
vote
2answers
42 views

Vertical spacing in table

I am trying to create a table, but inside has some mathematical fractions which is too wide for the table. Originally I used arraystretch 1.4, the vertical space is too tight. So I wanted to stretch ...
3
votes
2answers
81 views

How to save space when writing equations with cases?

I am writing in IEEE double column environment. I have some equations with cases. For example, this equation seems to have too much space after the brace and also before and after the commas. I was ...
1
vote
0answers
19 views

\tabcolsep equivalent for rows? [duplicate]

I know I can make tabular less cramped by changing \arraystretch, but what I really want is to make sure there are some fixed paddings above and below row contents, like what \tabcolsep does. For ...
0
votes
1answer
48 views

Is there a better way to code a worksheet-styled paper?

Lately I've been writing my own review homework/tests in LaTeX to store in my digital notes. All this time I just wrote all my problems vertically, like so (Suppose w, x, y, and z are arbitrary ...
1
vote
1answer
13 views

Vertical space around title

I'm trying to draw horizontal lines above and below the title and adding some extra space between them and the text. I've being trying this code: \documentclass{article} \usepackage[utf8]{inputenc} \...
3
votes
1answer
41 views

Package that visualizes spacing?

Is there a package that visualizes and label all the spacings in a document, similar to what this diagram shows (except it would label exactly how many pts each variable is)?
0
votes
1answer
30 views

Shift text down and induce overlap with next line

I'm quite new to LaTeX, and I've got a following question: I'd like to shift text in a single line without shifting any other part of my document. More specifically, I want it to overlap with the ...
0
votes
0answers
39 views

Fixed spacing command for text

Currently im updating my CV. Now i have something like this as output but i want something like (but with the exact same distance between the freespace I tried with \quad but that didnt do the ...
0
votes
0answers
32 views

How do I move these words to the left? They are cut off the edge [closed]

Code: \begin{twenty} % Environment for a list with descriptions \twentyitem{May 2017 - present \hspace{0.5cm}}{\hspace{0.5cm}Production assistent weekend/holidays \newline \hspace{0.41cm} Royal ...
2
votes
2answers
30 views

Renew arraystretch only inside matrix environment

I am using \renewcommand{\arraystretch}{2.5} in my arrays to produce nice tables. But this is affecting also matrix environments. Supposedly one can redefine the \arraystretch locally inside each ...
0
votes
1answer
31 views

Add a padding around draw nodes and images

I use this code to generate a set a of bubbles with labels: \newcounter{a} \newcounter{b} \newcounter{c} % Command to output a number of automatically-sized bubbles from a string in the format of '&...
0
votes
0answers
19 views

Vertical space after the environment lost when the environment splits between two pages

I defined a personalized theorem environment, such that, there should be a vertical left bar aligned with the environment and the length of the vertical bar should be exactly as long as the text ...
0
votes
0answers
20 views

KOMA-script with minitoc library: redefine vertical spacing before and after parttoc heading

I would like to know, how it is possible to control vertical spaces before and after of the TOC heading in KOMA-Script I use package minitoc. I tried to find the answer in the documentation scrguien, ...
2
votes
1answer
34 views

How to remove the unexpected vertical space in the theorem environment?

When I use \pause in \[ \] formula in the theorem environment, I get an unexpected extra space below the formula; see Theorem: Pause (formula). Now I remove it using \vspace{-0.60}cm, as in Theorem: ...
1
vote
2answers
40 views

space between specific rows in a table [duplicate]

This script \documentclass{report} \begin{document} \begin{table}[h!] \centering %{\def\arraystretch{2} ...
2
votes
1answer
40 views

How do I create spaces without introducing \\?

This is the following code that I have so far: \documentclass{article} \usepackage[left=1.5in, right=1.5in, top=0.5in]{geometry} \usepackage{amsmath} \usepackage{mathtools} \usepackage{amsthm} \...
0
votes
1answer
26 views

avoid a single figure on one page with lots of empty space

This script: \documentclass{article} \usepackage{lipsum} \usepackage{graphicx} \usepackage{subfig} ...
0
votes
1answer
14 views

memoir: indentation after enumerate in footnote

I have a footnote that contains an enumeration, after which comes one or two lines of text. The lines after the enumeration look "off", and I would like them indented to the same spot as the lines ...
0
votes
1answer
30 views

How can I stop automatic changes in the text spacing when using the package wrapfigure?

I am using wrapfigure to position a figure on the right side of my document. However when I do it the text to the left increases in both vertical and horizontal spacing. It is not a huge amount but it ...
0
votes
1answer
15 views

Beamer - remove extra space when itemize is used in columns environment

The distance between the top of the slide and an itemize is greater if the itemize is inside the columns environment (see code below). How can I remove this extra space? \documentclass[t]{beamer} \...
2
votes
1answer
39 views

gather is not aware of abovedisplayshortskip

So in the following example we can see that gather does not insert \abovedisplayshortskip but probably inserts \abovedisplayskip. \documentclass[twocolumn]{article} \usepackage{amsmath} \usepackage{...
2
votes
1answer
23 views

Beamer - how to remove space between headline and frame title

I am trying to remove the space between the headline and frame title as shown in the image below. The relevant part of my code is: \documentclass[t]{beamer} \useinnertheme{rectangles} \usecolortheme{...
1
vote
2answers
60 views

How to enclose theorems and definition in rectangles?

The following code \documentclass{article} \usepackage{amsthm} \usepackage{amsmath} \usepackage{mathtools} \usepackage[left=1.5in, right=1.5in, top=0.5in]{geometry} \newtheorem{definition}{...
2
votes
1answer
50 views

How to add indent after formula?

I have stuation like this: I need indent after formulas (where question mark is). How to do that? UPDATE Code, used in here \textbf{Определение 1\cite{1}.} \textit{Непрерывная на всей вещественной ...
2
votes
2answers
38 views

Using `\left(` and `right)` puts a space after an operator [duplicate]

When I use \left( and \right) to get appropriately sized parentheses for an operator, a space is created between the operator and the parentheses. I think it looks bad. Is it intentional? If so, why? ...
0
votes
1answer
30 views

How to create a table of six equally spaced columns in latex?

I am new to latex. The task of creating columns seems to be too complicated to do it in latex with all the different commands and packages available for creating a simple table of six equi-spaced ...
8
votes
4answers
545 views

Is it possible to make a 9x9 table fit within the default margins?

so I have the following code: \begin{align*} \setlength\extrarowheight{3pt} \noindent\begin{tabular}{c | c c c c c c c c } + & $(0,0,0)$ & $(0,0,1)$ & $(0,1,0)$ & $(0,1,1)$ & $(...
2
votes
1answer
38 views

Is there a way to make the text smaller inside a default font setting?

so I've written one document using the default margin settings and another using different margin settings(much wider). I needed to compile both documents so there's an obvious issue now. Let me show ...
3
votes
2answers
67 views

Dynamic Spacing in exam Package

I'm using the exam package for creating exercise questions of a class and trying to leave empty spaces dynamically according to the length of the solution, instead of setting a static value. The ...
2
votes
0answers
39 views

How to manage spacing in a document so there are no large gaps [duplicate]

When I'm typing my own documents, it's often the case that an awkwardly placed theorem environment near the end of the page will jump to the next because it's too large to fit in one page. When this ...
0
votes
1answer
24 views

inconsistent Vertical Spacing between equation and text

I have some problems in spacing. I just want to put equations in the text. What I found is that the vertical spacing between the equation and text is not consistent. Some is large and some is small. ...
3
votes
2answers
62 views

How can I increase row vertical spacing in a table without affecting inner arrays?

The methods I am aware of for modifying vertical spacing in a table are \renewcommand{\arraystretch}{<length>} and \setlength{\extrarowheight}{<length>}. However, these commands affect the ...
0
votes
1answer
45 views

Matrices with negatives inside

If I have a 2x2 matrix, where one has strictly positive integer values and the other has negative integers in them, I've noticed that the size of the matrix changes a little (to accommodate for the ...
2
votes
2answers
75 views

How to correctly align and space in math mode?

Hello how can I correct this ? Here's my code. Thank you all Code: \chapter{Méthodes de différences finies} \section{Conditions initiales de Dirichlet} \subsection{Algorithme numérique} On ...
2
votes
1answer
30 views

Equal Horizontal spacing using Tabu

I have made a table that looks as following by using Tabu package: \documentclass[a4paper, 10pt]{article} \usepackage{tabu} \usepackage{multicol} \usepackage{multirow} \usepackage{amsmath} \begin{...
1
vote
1answer
32 views

How to fix vertical spacing issues in a CV template?

I am using this template for a CV. However, for some reason I am getting incomplete sections over the two pages, for example: How can I make section 4 appear in the other side of the page (top of the ...
1
vote
2answers
36 views

How can I manually indent a paragraph inside an enumerate environment?

I would like to manually insert an indentation on some lines inside an enumerate environment but not others. I am using the enumerate environment to number examples, but then inserting line breaks ...
1
vote
1answer
20 views

Spacing between images in a figure environment

Example : \begin{figure} \centering \includegraphics[width=0.23\textwidth, trim={0 0 0 0}, clip]{example-image-c} \includegraphics[width=0.23\textwidth, trim={0 0 0 0}, clip]{example-image-c} \...
2
votes
1answer
26 views

verbatim-environment inside group implies unwanted paragraph-break. Why? How to avoid?

When I wrap a verbatim-environment into an additional group, a new paragraph will be started after that group. (In the example below, \parindent-glue is inserted before the YYY when \begingroup and \...
0
votes
0answers
13 views

The title is not appearing in full column. And also having issue in spacing

I am using the double column template provide by ASME journal. Using that template I am getting my title of the paper and authors information on the left side of the two columns. How to overcome this? ...
1
vote
1answer
76 views

glossaries: how to typeset the list of page numbers in \textsmaller and reduce the vertical gap

I use glossaries-extra to typeset the list of symbols in a book I edit. Since the book is large, the list of page numbers for each entry is long, making the whole glossary occupy too much space. I ...
13
votes
1answer
121 views

Understanding LaTeX 2e's \@esphack

I'm reading source2e.pdf and I have problems in understanding the sense of the definition of LaTeX 2ε's \@esphack: Commands like \label{...} , which themselves do not/shall not produce ...
1
vote
0answers
15 views

Uneven spacing between glossary entrances in the list

I am trying to make a glossary list and there is something weird going on: the spacing between entrances is uneven for no obvious reason. The minimal example of the code is below: \documentclass{...
0
votes
1answer
38 views

How much negative space needed? To recognizably remove a space by letting something be added? For macros whose argument is another macro?

Suppose that one has brea + (notice the space at the end). brea + is not printed yet. A macro \m{brea +} will replace + with \added ... how then does one define added, imagine it prints a d but only ...
0
votes
0answers
16 views

flalign inside list has extra space even after \setlength{\abovedisplayskip}{0pt}

I have defined this environment: \newenvironment{proofln}{\par \textbf{Proof}\list{}{\leftmargin=10pt\rightmargin=0pt\topsep=0pt}\item\relax}{\endlist\textbf{Q.E.D}} Now I use it like this: \...
0
votes
0answers
27 views

Space between Section and text

There is too much space between my section heading and the text written in that section. I have tried using \vspace but it is not working. What should I do to remove this bad box ?