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

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Multi-column list with columns of different widths and fitted to height

The simplest way to create a list with two columns of different widths is probably by splitting it into two minipages: However, the right column's text is taller than the left column. I want the left ...
The Footprint's user avatar
0 votes
1 answer
35 views

Beforeskip of @startsection has no effect

Consider the following MWE: % !TEX TS-program = pdflatex \documentclass{book} \usepackage[showframe]{geometry} \catcode`@=11 \renewcommand\section{% \@startsection{section}% {1} %Level {\z@} %...
tush's user avatar
  • 1,103
3 votes
3 answers
191 views

How to reduce space proportionally to a symbol's height?

I'd like to reduce the vertical space between the arrow and the symbol above it in the \xrightarrow command. Of course, "hard-coding" a value leads to unfortunate results: \documentclass{...
Clément's user avatar
  • 5,439
3 votes
2 answers
124 views

Ellipsis with surrounding spaces

I'd like to get dots without extra spaces before and after; the rendering with babel for French is the one I'd like. I need to have breaking spaces. \documentclass{article} %\usepackage[french]{babel}...
projetmbc's user avatar
  • 13.6k
8 votes
1 answer
209 views

How to determine if a symbol / command is a relation?

I am using \sim as a binary operator and was wondering which of the following two was correct: \documentclass{article} \begin{document} \[a \sim b\] \[a \mathrel{\sim} b\] \end{document} ...
Clément's user avatar
  • 5,439
0 votes
2 answers
94 views

How do I disable the auto-centering of equations when using \[\] [duplicate]

so yeah, I'm trying to stop using $$ for equations, but the fact that \[ automatically places equations in the center is a bit annoying, is there a command to disable that.
Onni Torppa's user avatar
1 vote
0 answers
29 views

White space above and below images using two columns

So I'm writing an article using the "LaTeX Templates Journal Article", and I seem to have trouble getting my white space above and below figures under control. I have tried redefining the ...
NooCh's user avatar
  • 11
1 vote
0 answers
15 views

no spacing in the tableofcontents between number of section and name of section [duplicate]

I'm using the article documentclass to write a simple document, but when i compile the code the tableofcontents look like this: From section "Progetti" there is no space between the number ...
michi_srt's user avatar
0 votes
1 answer
47 views

Correct way to remove spaces when adding hooks to environment

Please see addendum before reading the question. I have not deleted or made major edits to it so as not to invalidate @cfr's answer. I'm trying to add some hooks to a theorem environment, and I ...
mbert's user avatar
  • 3,460
0 votes
1 answer
38 views

How do I avoid overlapping header and first sentence of the page while using fancyhdr?

I am using fancyhdr to put some header and footnote in my document but from second page onward, the first line of the page and the header are overlapping like the following. How can I resolve this? I ...
melatonin15's user avatar
1 vote
1 answer
49 views

Why does in the output of an article i get a small space at the beginning of a new paragraph? [duplicate]

I've been using Latex for some years but in the recent days I started facing a samll issue. When I end an itemize (or similar) block or when I start writing the abstract or again in general when I ...
Leonardo Acquaroli's user avatar
0 votes
1 answer
74 views

Box that doesn't affect the vertical spacing of the main document

Consider the following example: \documentclass{article} \begin{document} Text A. \vspace*{5cm} Text B \end{document} Now I want to change this to \documentclass{article} \usepackage{environ} \...
Julia's user avatar
  • 1,626
0 votes
1 answer
45 views

Hyperlink in math mode with correct spacing for flexible use with subscripts and superscripts

I want to use hyperlinks in math mode without changing the spacing or kerning. I.e., I want to define a command \mathhyperref similar to Correct kerning of hyperlinks in math mode but more flexible (I ...
Jakob's user avatar
  • 919
1 vote
2 answers
119 views

How to define a command that can be used as a superscript without {} and that can have a subscript

I have used \theta hundreds of times in my document. Now I decided that I would like all thetas to be in red color. So I would like to redefine the command \theta to create a red theta. MWE: \...
Jakob's user avatar
  • 919
5 votes
2 answers
103 views

Why do optional arguments of commands affect spacing of \mathcolor

I am very surprised that simply adding an optional argument to the definition of my command changes the spacing in formulas in combination with \mathcolor. Why does this happen? How can this be fixed? ...
Jakob's user avatar
  • 919
0 votes
0 answers
29 views

Fixed width listings columns without extra spaces after copy from pdf

I would like the code listings from my Beamer slides to have the same spacing after having been copied from the pdf, and pasted into a text editor. I have been working with the columns option of the ...
user4417's user avatar
  • 1,044
4 votes
1 answer
268 views

(Staircase) Kerning in display math

Simple problem: spacing in math mode can often be awkward, especially with large fences and super- or sub- scripts. Usually, this amounts to exponents being too far from the parenthesized expression, ...
Akioweh's user avatar
  • 41
4 votes
2 answers
96 views

Box with text that takes up no space

On the cover sheet of an exam I'm writing I have a box for students to write their name. I'd also like to typeset the exact same box with some text written in place of the name. Here is a MWE. I want ...
Matthew Leingang's user avatar
0 votes
1 answer
30 views

Equal spacing between equations using align or gather

Is there an option for equal spacing between equations with and without fractions? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{section}{title} text \begin{gather} a + ...
Sylvia's user avatar
  • 151
3 votes
2 answers
167 views

Remove space between two lines

I can't find, how to remove the space between the blocks here? (the fbox will ultimately be removed, they are just used to show the problem) And more generally, how could I debug this in order to find ...
tobiasBora's user avatar
  • 7,803
3 votes
2 answers
114 views

What's the correct way of writing a systems of equation in latex?

i was writing some equations in a paper for an exam, and i was wondering what was the correct ways of writing a system of equations, including the use of punctuation. For example i was writing: \...
forgetfuled's user avatar
1 vote
0 answers
46 views

New environment as a single box [closed]

I am making my new environment for headings. It is as follows: \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \begin{document} \newlength{\headspace} \setlength{\headspace}{3mm ...
Vladimir's user avatar
  • 589
1 vote
1 answer
104 views

How to prevent vertical spacing accumulation?

By "spacing accumulation", I mean the resulting spacing when two \vspace{} commands meet. For example, let's say you set an after-skip for the figure environment and a before-skip for a ...
Daniel Vartanian's user avatar
2 votes
1 answer
27 views

Beamer: Sub-itemize environment leaves gap behind

I have a nested itemize environment, which should only be shown on the first slide: \begin{frame} \begin{itemize} \item<1-> A \begin{itemize}[<1>] \item A1 ...
jonathandoe's user avatar
0 votes
0 answers
8 views

Controlling space between entries in lists (LoF, LoT, nomenclature)

i) Is there any way to control the spacing between each entry in the LoF, LoT and nomenclature? The solutions I've found require packages like tocloft, which don't seem to be recommended for use with ...
TRJW's user avatar
  • 438
0 votes
0 answers
26 views

CurVe document class: reduce the extra horizontal space between the key and its content in a \entry* row

I am using CurVe document class to create my CV. I want to know if there is anyway to reduce the extra horizontal space between the key and value in one entry (\entry*[...]...). As shown by Figure 1, ...
Sun Haozhe's user avatar
0 votes
0 answers
17 views

LATEX: how to change the positon of author affliation to the bottom of first page

The affliation will be placed under authors. How can i make it to the bottom of the first page not as footnote, but show like in the picture? \documentclass[a4paper, 10pt,twoside, ]{article} \...
ZHENLI YANG's user avatar
0 votes
2 answers
45 views

User defined spacing in alignat environment

I use the alignat{2} environment with & and && between the items: \usepackage{geometry,amsmath} \geometry{left=1.5cm,right=7cm,top=2.5cm,bottom=1.5cm} \begin{document} \begin{alignat*}{2} ...
Haoran Chen's user avatar
1 vote
0 answers
102 views

Issue with Vertical Spacing in LaTeX Box

I am currently working on a document in LaTeX and have encountered an issue with the vertical spacing within my custom box environment. I am using the tcolorbox package to create a custom box for ...
wrb98's user avatar
  • 842
1 vote
1 answer
121 views

Space vs "\ " in TeX

On page 5 of the book The TeXbook, there is If your keyboard does not contain a left-quote symbol, you can type \lq, followed by a space if the next character is a letter, or followed by a \ if the ...
Y. zeng's user avatar
  • 1,801
1 vote
0 answers
63 views

How do I make the spacing between each section the same?

I'm using the LaTeX resume template provided on the r/EngineeringResumes wiki, and in it they manually add \vspaces of different lengths to make the spacing between the sections the same. This is not ...
seasonedfish's user avatar
0 votes
2 answers
38 views

How to merge two tables with different column sizes with no space between them

I try to put tables from the tabularray package together but without changing the Sizes of the table. In the End it should look like this: My idea to accomplish this is by creating two different ...
jensseyfarth's user avatar
11 votes
2 answers
561 views

Why are these sentences in Libertine so cramped and what can I do about it?

Recently I was writing a document in LaTeX using Linux Libertine. Overall I love this font, but I found a strange case of italicized text where there is almost no space between the word of and a ...
user134824's user avatar
3 votes
2 answers
98 views

How to remove excess vertical space between tiny text in a tabular?

Excess vertical space in plain text Following MWE typesets text in \normalsize vs. \tiny and \huge (this last size just for information). \documentclass{report} \begin{document} Comment ça va ça va ça ...
Karlo's user avatar
  • 3,247
0 votes
1 answer
19 views

Revtex4 separate title and abstract page

I am writing a paper using Overleaf and Revtex4. However, I need the title and the abstract to have their own separate pages. I have a very bashy solution of adding \vspace{30cm} before the abstract ...
codingfan109's user avatar
0 votes
1 answer
39 views

Correct usage of display math inside algorithm with algpseudocode based package. Alignment and spacing problems

I am learning how to use Algpseudocodex which is an enhanced version of algpseudocode I am having hard time with getting correct spacing around \begin{align*}...\end{align*} when using inside the ...
Nasser's user avatar
  • 20.7k
3 votes
1 answer
90 views

Voltage shift command in circuitikz package

Im currently trying to change the distance between the components and the voltage arrow. But im running into problems. Without shift is the left circuit. With shift is the right one. It seems that the ...
UserUnkn4wn's user avatar
1 vote
1 answer
21 views

indentation of long lines in algorithm2e and vertical spacing problem

After spending 2 hrs on this and trying all sorts of things, I give up. I am using algorithm2e and when I have long description lines, the new line gets shifted a little to the right. Also, even ...
Nasser's user avatar
  • 20.7k
2 votes
1 answer
38 views

Spurious space in Hebrew polyglossia+fontspec [closed]

I use a tabular environment with paragraph cells. In one of the cells I include a Hebrew paragraph. The result is that I get a spurious space at the end of the first line (and therefore on the left, ...
yannis's user avatar
  • 1,992
0 votes
1 answer
32 views

Problems with tabular-spacing for diagonal table header

I want to put diagonal markers over words. I tried to implement this using a table and I'm almost satisfied with the result: But as you can see, the spacings between the words of the sentence are too ...
Korbinian Hutter's user avatar
1 vote
1 answer
27 views

Delete extra spacing and improve spacing when we use the command "\choice"

\documentclass[12pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsfonts,amsmath,amssymb,graphicx,amsthm,mathtools,systeme} \usepackage[tikz]{bclogo} \...
Student's user avatar
  • 1,154
0 votes
1 answer
45 views

Put text within equation centered

I want to put text between the two equations, but have no idea to make this better, which means that I want there is each space on the both sides of "or". The codes: \begin{align*} I = (0,...
Un petit mensonges's user avatar
1 vote
0 answers
42 views

Why is spacing after the "eduation" section different from the other sections?

The spacing after the "education" section is smaller than the spacing after the other sections. What is the difference? Also, how do I make them all alike? %------------------------- % ...
helpme82628's user avatar
1 vote
2 answers
125 views

How suppress new paragraph after item's description in enumerate-with-description?

The command \descitem below allows an item in an enumerate list to include a description. (Sorry, I cannot find the source of that definition now at tex.stackexchange.) The idea is to allow an ...
murray's user avatar
  • 7,770
0 votes
0 answers
41 views

How can I duplicate the chapter heading on another page without calling \chapter again?

I basically want to reprint the chapter heading with all the same formatting/spacing/etc and have it print onto the next odd page. I sort of hacked together the spacings and everything with vspace ...
J M's user avatar
  • 1,102
1 vote
2 answers
84 views

Need help to reproduce simple CV template in latex

I've been attempting to recreate this CV: https://rishabhjoshi.github.io/assets/pdf/vitae.pdf in LaTeX. Unfortunately, I haven't been able to replicate it exactly as I'd hoped, and the code seems to ...
stoicbatman Batman's user avatar
1 vote
2 answers
106 views

Underfull \hbox

The following code gives me the following error "Underfull \hbox (badness 10000)" \documentclass{article} \begin{document} text \\ \\ text \end{document} I found some alternatives,...
Alessandro Lin's user avatar
0 votes
0 answers
15 views

Endnotes starting with a quote: Align

In my document, I have an endnote, which starts with a quote. My minimal working example looks as follows: \documentclass[12pt,a4paper,twoside]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{...
B.Hueber's user avatar
  • 199
0 votes
0 answers
26 views

Unusually large spaces between items in itemize environment [duplicate]

I have the following code: \documentclass[a4paper, twocolumn]{article} \usepackage[a4paper, portrait, right=1.5cm, left=1.5cm, bottom=1.5cm, top=1.5cm]{geometry} \usepackage{graphicx} \usepackage{...
Just_A_User's user avatar
0 votes
0 answers
34 views

Help with minipage/colum space

I am currently making a non-professional document in latex, I am using the typewriter package. I'm trying to put two photos (one below the other) and right next to them, as if it were another column, ...
CACM6's user avatar
  • 1

1
2 3 4 5
158