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
-2 votes
0 answers
46 views

How to prevent latex from making an empty line when making a new paragraph [closed]

This has been bugging me so much. When a line is full, latex does not stop at the end of the line, but apparently moves onto the next line. This behavior is normally fine, but not when I use a \par ...
user avatar
  • 1
1 vote
2 answers
36 views

How to add spacings within one line?

MWE \documentclass[a4paper]{article} \usepackage{unicode-math} \unimathsetup{bold-style=ISO,sans-style=italic} \setmathfont{XITS Math} \renewcommand\baselinestretch{114514} \usepackage[fontset=none]{...
user avatar
1 vote
3 answers
56 views

Weird word breaks in table

The first table has these strange white spaces between the words and I really just do not understand how to get rid of them. I've used \raggedright, \sloppy and \usepackage[none]{hyphenat} but the ...
user avatar
  • 11
0 votes
1 answer
35 views

How can I automatically overwrite a wrapped line?

This is probably the opposite of what most people are going for but I'd like to let the text of my lines overwrite themselves. As an example, if I have: \documentclass{article} \begin{document} These ...
user avatar
0 votes
1 answer
22 views

Setting left margin in itemize pushes right-margin to be unaligned to section-right

I’m using “Abey Resume Template” from Overleaf’s Resume templates. I want to indent everything in each section, so I change: \newcommand{\resumeSubHeadingListStart}{\begin{itemize}[leftmargin=0.0in, ...
user avatar
  • 17
0 votes
0 answers
22 views

Lower the superscript of a hat variable

I have an inline math expression involving a superscript and a hat: \documentclass{article} \usepackage{lipsum} \usepackage{amssymb,amsmath,amsthm} \setlength{\parindent}{0pt} \begin{document} \...
user avatar
  • 143
0 votes
0 answers
17 views

Latex: How to set text spacing for specific part of resume

\documentclass{article} \usepackage[margin=0.25in]{geometry} \usepackage[hidelinks]{hyperref} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{setspace} \begin{document} \sffamily \begin{...
user avatar
  • 1
1 vote
1 answer
24 views

Weird space before each bibliography in beamer

I get this weird space in [] before my bibliography inputs. How can I remove this and just keep the number or [1] format? \documentclass[aspectratio=169,9pt]{beamer} \mode<presentation> { \...
user avatar
  • 119
2 votes
1 answer
50 views

What is `\mathopen{}` for?

On mathtools manual, page 27, there is an example defining a command \Set: % just to make sure it exists \providecommand\given{} % can be useful to refer to this outside \Set \newcommand\SetSymbol[1][]...
user avatar
  • 6,080
1 vote
1 answer
45 views

how can I diagnose inserted vertical (rubber) space?

I am tinkering with my somewhat unusual math definitions for my finance textbook (which sadly has to use the outdated eqnarray instead of align for many reasons). I am fighting against the various ...
user avatar
  • 3,391
0 votes
1 answer
72 views

Using different font sizes and double spacing to be same as in MS Word

\documentclass[12pt,fleqn,usenames,dvipsnames]{report} \usepackage[a4paper,left=4cm,right=2cm,top=3cm,bottom=3cm]{geometry} \usepackage{amsfonts,times,etoolbox,titlesec,color,fancyhdr,anyfontsize,...
user avatar
1 vote
0 answers
45 views

The "caption" package adds a white space below the floats - How to remove it?

I noticed that with the caption package loaded, the vertical space separating an h-float with the text is not the same above and below the figure. Here are the (approximate) measurements I made: With ...
user avatar
  • 303
2 votes
1 answer
56 views

Increase the space around \circ in script style

Is there some way to increase the horizontal space around \circ when it is in script style? For example, the label over the arrows in a commutative diagram is often put in script style, and left ...
user avatar
  • 6,080
0 votes
0 answers
16 views

How do I globally adjust/stretch the in-between vertical spacing of items in lists only when they include display style fractions in inline math mode?

Here's my MWE compiled using LuaLaTeX: \documentclass[oneside,DIV=12]{scrbook} \usepackage{scrhack} \usepackage[automark]{scrlayer-scrpage} \usepackage[english]{babel} \usepackage[babel]{microtype} \...
user avatar
1 vote
2 answers
38 views

Flexible sized underline

I want to have a blank line followed by 5 check boxes, such that together they occupy the entire horizontal space available. The current way I have "solved" this problem is: \usepackage{...
user avatar
0 votes
0 answers
22 views

before skip and after skip only for text with tcolorbox

I want to keep the same vertical space between boxes and text/other boxes. If I set before skip=0.3cm the spaces between boxes add up and create a gap. MWE: \documentclass{article} \usepackage[utf8]{...
user avatar
  • 145
0 votes
3 answers
43 views

Is it possible to use Tab space to create a horizontal space and then align the texts ? I used \quad and \qquad but it doesn't work

\begin{itemize} \item Structure porteuse (y. c. infrastructure) \qquad \qquad \qquad \qquad 75 ans \item Parapets / bordure de pont \qquad \qquad \qquad \qquad \qquad \...
user avatar
0 votes
1 answer
23 views

Roman pagenumbering on top with horizontal lines

I have the problem that I would like to have Roman and Arabic pagenumbering on top right with a horizontal line below. However, if I use this package: \usepackage[automark]{scrlayer-scrpage} with ...
user avatar
0 votes
0 answers
17 views

How to force space in table environment? [duplicate]

I have a table with the following row: Currently, 'SVM' and 'RF' are shown next to each other in the 'Algorithm' column. Instead, I want RF to be shown underneath in the same row. I tried to do this ...
user avatar
  • 317
0 votes
1 answer
19 views

Space size before a title in the Article class

What is the space size before a title in the Article class? I want to use \droptitle from titling to place the title immediately after the top margin and I need the value to drop. By immediately I ...
user avatar
  • 133
9 votes
1 answer
318 views

Extra spacing on the left of operator?

When I have an operator (\sin,\det, or defined with \operatorname, \DeclareMathOperator) enclosed in |...|, it seems that there is an extra spacing on the left. See the output of $|\sin x|$ $\lvert \...
user avatar
5 votes
1 answer
69 views

Extra space between fractions

I have heavy fractions in my LaTeX equations. When there are 2 or more consecutive fractions in a row (i.e. I evaluate a product), they are too close to each other. Is there any way to add an extra ...
user avatar
0 votes
0 answers
31 views

Wrong spacing when inserting text with command [duplicate]

I defined a new command called \dofile to reference a file that does not have a permanent name yet. The command by default returns the name of the file in typewriter font, since that is how I want it ...
user avatar
0 votes
0 answers
27 views

How to create a second column of evenly spaced equations/text

I am making a problem set for a calculus class using LaTex, and I am running into an issue. My code below: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[margin=0.5in]{geometry} \...
user avatar
0 votes
0 answers
30 views

How to \NewDocumentCommand/RenewDocumentCommand using \texordpdfstring?

I use \,, \thinspace and my own hairspace-command \hrsp all the time, but I don't want to care whether it's used in a pdf-string (often in sectioning- and cite-commands), which is to get rid of ...
user avatar
1 vote
1 answer
33 views

Equal spaces between my entries in my column

I am trying to gather some values in a Table, but the result is not as beautiful as I would like. Here's the Table I have \begin{table}[!h] \setlength\tabcolsep{0pt} % default: 6pt \centering \begin{...
user avatar
  • 13
0 votes
1 answer
29 views

TOC spacing problem

I have a problem with spacing in my TOC. Parts and chapters are well spaced right now, but the unnumbered sections are not. How can I fix it? \documentclass[a4paper,openany,book,12pt]{memoir} % ...
user avatar
0 votes
0 answers
39 views

How to fix header spacing

I want to move all headers and text closer to the top of the page, eliminating the empty space above every header. I have tried \vspace but I don't think this is the correct solution to the problem. ...
user avatar
  • 3
2 votes
1 answer
118 views

Why is there a space before the last full stop in the citation?

When I write a citation, the compiled file has a space before the last period. Example: Butt, Miriam. 2012. Modern approaches to case: An overview. of Malchukov & Spencer . Note the space ...
user avatar
  • 21
1 vote
1 answer
33 views

Getting spacing right with hangindent

I want a definition to hang to the right of the symbol being defined (in this case, the $\chi...$ stuff). Here is what I wrote: \documentclass{amsart} \begin{document} {% \leftskip=\parindent\...
user avatar
  • 227
1 vote
1 answer
45 views

Extra space in a math expression

Does anyone know why the code below adds an extra space in the math expression below? The example \documentclass{article} \usepackage{mathtools} \NewDocumentCommand\withouthspace{m m}{% \frac{d#1}...
user avatar
  • 819
3 votes
2 answers
102 views

Remove indentation

How can I remove indentation between enumeration and text? I tried \noindent but it didn't work. \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \...
user avatar
  • 115
0 votes
1 answer
20 views

How to fix "Underfull \hbox (badness 10000) in paragraph " in a two-column format?

How can I fix this warning? I read that it can be ignored in most of cases but I want to fix it. Underfull \hbox (badness 10000) in paragraph at lines 16--17 \documentclass[lettersize,journal]{...
user avatar
  • 103
0 votes
1 answer
45 views

How to make vertical space around fancyvrb symmetric?

How can I get rid of the extra space that appears here? I want the space above and below the Verbatim to be the same, but here it seems that about 4-8pt of extra space is being added only to the ...
user avatar
  • 415
0 votes
1 answer
17 views

Equation over multiple lines overshooting column width in two column format

I am currently trying to have a system of equations plotted across multiple lines, but I am having an issue with doing this with a two column document format. Specifically it overshoots the width of ...
user avatar
1 vote
2 answers
66 views

Limit interword shrinking without affecting the normal interword spacing

There are many questions about interword spacing in Latex, but this question is different. I'm generally OK with the default spacing and do not want to change it. However, sometimes Latex shortens the ...
user avatar
  • 135
0 votes
0 answers
23 views

Increase the spacing of references

I am using Texmaker and the spacing between lines is too close in my references. I want to increase it. Here is what it looks like: Here is my current latex setup \documentclass[12pt,letterpaper]{...
user avatar
0 votes
1 answer
35 views

How to remove spacing after centering

Question: How do I remove the spacing after the centered text "FALSE:" below? I'll need to do this for five centered spots in the document. % BEGIN PREAMBLE \RequirePackage{fix-cm} \...
user avatar
0 votes
1 answer
41 views

Deleting extra vertical space when figure caption is not given

I wonder how I can get rid of the space created by deleting the table title (highlighted in red)? I used the example from: https://latex.org/forum/viewtopic.php?t=1279 \documentclass{article} \...
user avatar
  • 103
0 votes
2 answers
44 views

How do I remove this offset from the top?

\documentclass[14pt,a4paper,oneside]{extarticle} \usepackage[left=30mm,right=15mm,top=20mm,bottom=20mm,bindingoffset=0mm]{geometry} \setcounter{page}{2} \renewcommand{\baselinestretch}{1.5} \...
user avatar
0 votes
1 answer
51 views

Set exact spacing value between rows in array environment

I'v aware of this method for increasing or decreasing the spacing in \begin{array} environment \renewcommand{\arraystretch}{2} but is there any way I can set the specific dimension value, exactly one ...
user avatar
  • 1,995
0 votes
0 answers
26 views

Can someone help me in formatting the table of contents pages in Overleaf? [duplicate]

According to the subject matter of my report, there is two table of contents pages. The problem is the spacing of the first page seems ok from the header. But for the next page, it starts from the ...
user avatar
1 vote
0 answers
44 views

Change parskip in beamer without side effects

Background If I understand correctly, beamer does not distinguish between lines and paragraphs, as far a vertical spacing is concerned. As an example, there is no visible difference in this MWE: \...
user avatar
  • 2,914
0 votes
0 answers
20 views

Empy lines at the end of a column

I get empty lines at the end of a column like in the picture. I use save-space commands are as follows: \usepackage[all=normal, floats, bibnotes, wordspacing, charwidths, indent, lists]{savetrees} \...
user avatar
  • 7
1 vote
2 answers
64 views

Dot spaces in Contents and Index

First an MWE and its output: \documentclass[a4paper, 10pt]{book} \usepackage{hyperref} \usepackage{imakeidx} \makeindex \newcommand{\AddIndexLetterToTOC}[1]{\textbf{#1}\phantomsection\...
user avatar
  • 3,019
1 vote
2 answers
42 views

Long table doesn't fit on page width - big left margin [closed]

I would like to gain more space for my table by removing the white space on the left but I'm not able to find a good solution. Anyone can help? If possible I would keep the cell and font size. \...
user avatar
1 vote
1 answer
37 views

How do I align the start of each \item in an enumerate environment with left-aligned labels?

Here's my MWE using LuaLaTeX and the scrbook KOMA-Script class: \documentclass[% % draft, twoside, headings=openany, % parts/chapters start on any page whether it's odd or even DIV=15, % division ...
user avatar
0 votes
1 answer
55 views

How to adjust vertical space before and after center environment

It seems that there are vertical blank spaces before and after the center enviroment, as shown in the attached picture. My question is: how to adjust these vertical blank spaces? Code: \documentclass{...
user avatar
  • 2,321
4 votes
1 answer
110 views

How to facilitate inclusive writing in french?

When I write in french I often have to use the inclusive form: The students did their homework. Les étudiant·e·s ont fait leurs devoirs. However, it is not easy to get a good-looking example with ...
user avatar
  • 1,087
0 votes
0 answers
26 views

How can I remove space between a subsection title and its content?

I am working with LaTeX and in a section I am writing, there is a big vertical space between the title in the subsection and in the content. I don't know how to remove this space (I attach a photo for ...
user avatar

1
2 3 4 5
148