{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)

1
vote
1answer
22 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 ...
1
vote
1answer
10 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 ...
1
vote
2answers
27 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 ...
4
votes
1answer
46 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
13 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
47 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 ...
5
votes
2answers
59 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
16 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
17 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
15 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
21 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
27 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 ...
7
votes
3answers
401 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
21 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
55 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
65 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
25 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
32 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
38 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
40 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
31 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 ...
2
votes
1answer
21 views

No Vertical Spacing in Multicols

I just started using LaTeX this week. So currently, I am making exam-type files. I use the \itemsep=\fill option to make sure that there is a vertical space in between each \item. However, when I use ...
0
votes
0answers
10 views

Problems with acronym shortcuts (package: glossaries) [duplicate]

I am using the glossaries package to generate a nice list of acronyms. For often used acronyms I defined some shortcuts, e.g. \newcommand{\myshortcut}{\acrshort{myacronym}}. The acronym myacronym has ...
0
votes
1answer
25 views

Page setup in memoir class

I have been using the memoir class based template for sometime. All this while I have been having a problem with the top margin of the document. Following is the pagestyle code ...
0
votes
1answer
25 views

How do I fix vertical spacing between tables?

I have a document with about 50 tables in it. If one of the tables goes over the page, LaTeX automatically sends that table to the next page. The issue is that LaTeX increases the spacing between ...
0
votes
1answer
32 views

Increase spacing between item

I am using: Automatically itemize a paragraph to automatically create \item for my bullets and I was wondering how I would go about setting the spacing between each bullet point. The default for ...
0
votes
1answer
25 views

Reduce floating table vertical space in [H] environment

My document contains 5 parts vertically. "Header" Contains three minibox placed horizontally. Gap filled with \hfill. Giant row One. Table envoironment, [H] used to located the table. Giant row ...
1
vote
2answers
31 views

How can I reduce the space above the title of a single chapter

I am using a thesis template. And now my abstract is override 1 single page. I found the space before the chapter title is quite large. However, I just want to reduce such a space in the abstract ...
2
votes
0answers
47 views

How to remove extra space above the figure

This is tex file Thus, speculatively, higher-order antibunching might play a role superior to usual antibunching. Note that such a prominence of higher-order antibunching was discovered for the first ...
1
vote
0answers
20 views

Recommended practice for spacing between “and” and “\ref{}”?

It is widely known that one should insert a non-breaking space ~ between the name of a reference and the reference itself, e.g., As we can see from figure~\ref{fig:foo}, [...] This avoids the word ...
2
votes
1answer
28 views

What are the disandvantages for using a rule to define an \hspace-like command?

In the LaTeX2e source code \hspace and its star version are defined with \hskips. I have defined an alternative version using rules. I cannot see any obvious disantvantages of this approach other than ...
1
vote
0answers
41 views

Space between \hline\hline in `longtable`

I'm trying to use one longtable in my thesis while all others are created with table and tabular environment. I tried to find help visiting this link. But there only one type of table (longtable) is ...
4
votes
1answer
46 views

Typesetting a vertical box with as its top anchor the baseline of the first line in the vertical box

Introduction Since my real use case is obviously somewhat more complex than the problem presented in the MWE, I'll explain the use case first so that you can judge whether my approach is the correct ...
1
vote
0answers
33 views

managing the spaces between the pdf figures in latex document

I was creating a document containing pdf's figures after finishing I have got the following style in my document(((attached picture))), I tried to manage the distance between these figures but when I ...
0
votes
0answers
20 views

' and ^t to the left of a letter [duplicate]

There are times where I want, say, a superscript $t$ to the left of another letter to denote, say, the transpose of a matrix. Or, I might want to decorate a letter on the left with a prime, $'$, ...
2
votes
1answer
35 views

Problem with \vfill within enumerate and multicols

I am trying to make a large list of exercises with multicols and enumerate the thing is that when I just use enumerate and vfill there is no problem vfill does the work but when I use multicols vfill ...
1
vote
1answer
23 views

Automaticaly add paragraph spacing only between two textual paragraphs

I can use: \setlength{\parskip}{\baselineskip} \setlength{\parindent}{0pt} But this messes up the rest of the document as it also increases the spacing after chapters, sections, sub-sections, and ...
2
votes
3answers
40 views

alignat adds extra spacing

I want to achieve the following, except without the weird extra indentation before c. Also, what's with the lack of spacing between = and b, as well as between + and d? Is there a better way to fix ...
2
votes
2answers
38 views

How to space columns evenly in a table with multicolumns?

A hopefully very simple question. Why does the multicolumn in my example below screw up the spacing between the columns below? Obviously I would want columns A, B, and C to be spaced evenly (as they ...
4
votes
2answers
103 views

Align numbers on decimal point in tabular except for the column title

I am trying to align some numbers in a tabular on the decimal point. I have been using the dcolumn option but given that my column title is a year, it aligns also the year on the decimal point, which ...
2
votes
2answers
29 views

How can I reduce the space around alltt environment blocks?

How can I reduce the space around all alltt environment blocks? \documentclass{article} \usepackage{alltt} \begin{document} Test1 \begin{alltt} some code \end{alltt} Test2 \end{document} This ...
6
votes
1answer
68 views

Reflowing marginpars typeset using pdfsavepos

I'm trying to typeset marginpars more accurately on the correct side of the page using a solution based on pdfsavepos by David Carlisle. (The code below is a slight alteration of it.) I got most of ...
4
votes
1answer
85 views

Run a shell script (with parameters) from a PDF generated by LaTeX

I want to have a link in my PDF generated by pdflatex which executes a shell script, and this part works great. The problem I am running into is that I need the link in the PDF to be able to pass ...
10
votes
1answer
187 views

how to display upright letters in math mode without manually creating space?

\documentclass[11pt,a4paper]{article} \title{Title} \author{Author} \begin{document} \maketitle $\{ n \mid n\ \mbox{is\ even} \}$ \end{document} Since it is a relatively rare occasion for me to ...
6
votes
3answers
202 views

Align square root symbols in equation

I have the following equation in my tex document: \documentclass{article} \begin{document} \begin{equation} x_{ij} = \frac{ \sum_{t}{e_i(t)e_j(t)} } { ...
1
vote
1answer
28 views

tightly packed tables in a page

I have many tables that I want to squeeze in one page. The output of my current code shows lot of space between two tables. I want to reduce the space between the tables as small as possible and want ...
4
votes
1answer
28 views

Spurious white space from a page number conditional

In the example below I've introduced a page number conditional \ifnum\c@page=1\relax\else.... The page number conditional (in this case) checks for page number 1 and does nothing if the condition is ...
4
votes
1answer
32 views

mydots and linewrapping,

Can someone help me improve upon this command? \def\mydots{\leavevmode\xleaders\hbox to 0.40em{\hfil.\hfil}\hfill\kern0pt} I have been using his to fill space between raggedright and ragged left ...
1
vote
2answers
47 views

Change space between title and text in \paragraph command

I am wondering if there is a way to remove the space that comes between the title and the text when using the \paragraph command. I am working on my thesis, and have gotten it proof read by someone ...
2
votes
2answers
76 views

Disable \tabulinesep for some rows with tabu package

The \tabulinesep parameter with tabu package provide good paddings for tables with variant heights. But when using it with diagbox package, the paddings cause problem. \documentclass{article} ...