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

2
votes
0answers
48 views

Setting a default horizontal spacing value for math mode

Is there a way to set a default value for the horizontal spacing in LaTeX math mode? I'm constantly writing $foo \; bar \; baz$ Where the \; macro sets the space that I am happy with. Is there a ...
0
votes
1answer
41 views

Add vertical space in aligned environment and explanation of the unequal space between two gather/align environments

I want to leave some space between the aligned environments and some below the texts in the environments so to have a nicer output. How can I do that? \documentclass[12pt]{article} ...
0
votes
0answers
39 views

Formatting is changing spacing

I'm currently working on my thesis, and have come across little problem. If you take a look at the attached images below: Here you can see, that there is clearly a problem in the first one, with ...
0
votes
2answers
51 views

Is there a way to know what is the vertical space that LaTeX is leaving before and after a theorem?

I would like to know if there's some code I can enter in order to find what is the vertical space (in cm or pt) that LaTeX is leaving before and after a theorem. I'm using ...
4
votes
1answer
68 views

Removing a half-blank line and precisely calculating a space

Consider the following MWE: Some text, Some text, Some text, Some text, Some text, Some text, Some text, Some text, Some text, Some text, Some text, Some text \begin{enumerate} \item This is a line ...
2
votes
1answer
124 views

newlfm package missing documented \greettoskipbefore command

While writing a letter using newlfm, I tried using the \greettoskipbefore command from page 8 of the manual and I received an "undefined control sequence" error. Looking at the source, it looks like ...
3
votes
1answer
93 views

How can I delete spacing?

How can I delete the spacing shown in the following image: And here is my code: \documentclass[11pt,a4paper,sans]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, ...
2
votes
2answers
44 views

How to add white space before an item?

How to add white space before an item ? \documentclass[12pt,english]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{babel} \begin{document} Dqfnqsdf qsdfjdqs qsdjqsd ...
3
votes
0answers
50 views

Controlling the space in section numbers

I want to control the space around the dots of the section numbers (and subsection and so on). I think the space sometimes is too small like the one with IV . sometimes to wide, eg when it involves a ...
1
vote
1answer
38 views

Stretching text within a certain size box

I would like to stretch some text within a certain size box, say two inches (I'm not sure yet how large I want the box to be). I came across this example to stretch text across the entire page: ...
9
votes
1answer
124 views

Equation alignment

I'm a little new at this so bear with me. What I intend to get is this: I used the following code to obtain it: \begin{flalign*} \quad f(x) &= e^{x} - x - 1 ...
4
votes
1answer
34 views

Adjust indentation of the subsequent lines in description environment

How do I control the indentation of subsequent lines without affecting the other settings? That is, I want the spacing of the first three components to remain as is, but when the content of the line ...
2
votes
1answer
55 views

Automatically add a vertical spacing in formula numbering [duplicate]

I have a document with several equations that fit the text width, so the tag is below the equation in those long formulas. I don't want to use splitting enviroments but in some cases, specially in ...
2
votes
1answer
93 views

How can I insert a thin space (\,) in a listing?

Is it possible to create small space in listing? I tried / and \, but it doesn't work in listing environment \begin{lstlisting}[caption={Inicializace ELM327.}, label={lst:initELM},captionpos=b] ...
2
votes
0answers
53 views

Emulate tabular vertical spacing with parskip package

I would like to emulate the vertical spacing of tabular without using tabular. When the \parskip package is used, using \par leaves too much vertical space, so I thought I'd emulate it with use of a ...
0
votes
1answer
42 views

Strange spacing when using lstlisting

I am trying to use the lstlisting package in order to show some code in my document. However, it aligns it to the right of the page, as opposed to left as expected. \begin{lstlisting}[frame=single] ...
0
votes
1answer
43 views

Latex mirror margins

I need to have my document binded after being being printed, and so I need a 3.75 margin on every page on the side that will be binded. Is there any way of doing this?
0
votes
0answers
26 views

Adding space after paragraphs affects references

I am using the following command in order to have an empty line after each paragraph. \setlength{\parskip}{\baselineskip} \setlength{\parindent}{0pt}% However, by doing so, the references generated ...
2
votes
0answers
82 views

Identical space around \[ \] and the amsmath environments set to a personnal value

I wish to have the same spaces around the brackets \[ ... \] as the space around the environments align and equation (above and below, short or not) from amsmath, ideally (I set \parskip=1ex), ...
2
votes
1answer
73 views

tikz spacing between circles

How to reduce distance between circles ? and how to colorize each circle ? \documentclass{article} \usepackage[paperheight=30cm,paperwidth=35cm,margin=1in,heightrounded]{geometry} \usepackage{tikz} ...
5
votes
2answers
79 views

Problem with spaces in listings package and hyphenation

I use the listings package and there is a space that is inserted when the line breaks and the code goes to that new line. Why is this space inserted in the new line? How can I remove it? ...
6
votes
1answer
82 views

Using whitespace in TeX informatively to typeset predicate calculus

I am using this set of macros to write up some predicate calculus notes. The issue I am having is that in the math environment of LaTeX, things are automatically spaced in ways that are not most ...
9
votes
3answers
217 views

A phantom-like command that instead replaces the text with a horizontal line?

I'm trying to find a way of replacing part of text with a horizontal line. I'd like it to behave like the phantom command which replaces the text with an empty box of the correct width (and height), ...
2
votes
0answers
37 views

Spacing in list of algorithms within classicthesis template

Consider the following screenshot: Differently than \listoffigures, \listoftables or \lstlistoflistings, the \listofalgorithmes command is adding an extra white space between chapters in the ...
3
votes
2answers
162 views

TikZ + scalebox: Vertical text spacing in node

As this issue: TikZ: Text becomes invisible in large PDF could not yet be solved, my constantly growing PDF needs to become even smaller to stay out of invisibility range. As a consequence, \tiny is ...
1
vote
1answer
33 views

How to force single word spacing in section headings for two-column articles

I do not know how to force a single space between the words "Discussion" and "and" in the section heading below. \documentclass[12pt,twocolumn]{article} \begin{document} \hyphenation{Conclusion} ...
1
vote
0answers
24 views

Curious behaviour of vertical space in one and two column document

When I use the first code (in a two-column document) the vertical space between the text and the gather environment is small. When I use the starred version or a one-column document then the space ...
1
vote
0answers
39 views

How to change the default top margin for an invoice?

Here is what I've got: \documentclass{letter} \newcommand*{\BottomLeftX}{1.0in+\hoffset+\oddsidemargin}% ...
7
votes
1answer
70 views

Eliminating extra vertical space around quotes in letters

Eliminating vertical space around a quote, as described here, succeeds when the documentclass is article \documentclass[11pt]{article} \usepackage{quoting} \quotingsetup{vskip=0pt} \begin{document} ...
1
vote
0answers
21 views

Which macros define spaces around table and float environments? [duplicate]

I am trying to define the length of vertical space between tables and text globally in my document. So far, I have been using \setlength{\intextsep}{0cm} \setlength{\floatsep}{0cm} ...
0
votes
0answers
25 views

References alignment problem in IEEtrans

I just wanted to ask if anyone has an idea on how to fix an alignment problem I am getting when using the IEEE template. In my references, the first 10 entries are aligned and rest are misaligned. I ...
17
votes
4answers
684 views

Which commands consisting of a non-letter eat spaces afterwards?

Command names consist of a sequence of letters (until and excluding the first non-letter) or of a single non-letter. Command names ending in a letter (including of course those consisting of a single ...
3
votes
3answers
81 views

Horizontal space in a new environment after \label{}

Why is the horizontal space inserted in the following mwe? \documentclass{scrartcl} \usepackage[american]{babel} \usepackage{environ} \usepackage{amsthm} % proof environment \makeatletter ...
2
votes
2answers
63 views

White space in tex file vs. white space in output

Googling around has not produced an answer to this, possibly because of the complexity of the question doesn't lend itself to easy googling. What I want to be able to do is control how white space ...
5
votes
1answer
35 views

Reducing space before chapter works with english but not with hungarian babel package

I write my thesis recently and I want to reduce the spaces before chapters. I find the solution, but it isn't working for me with \usepackage[magyar]{babel} I use the following codes: ...
4
votes
1answer
84 views

Add a symbol in ToC between the section number and its section

My problem is that there exists an overlap between the symbol to introduce and the section title; it is manifest with two \heartsuits \documentclass{article} \usepackage{tocloft} \usepackage{lipsum} ...
2
votes
2answers
93 views

How can I change the default \\ spacing?

So, I have a definition which takes in data like this: ...{apple\\orange\\cat\\imperial green tea\\left-handed president}... In the document I get the following after compilation: apple orange ...
3
votes
0answers
27 views

Changing a macro's output depending on immediate context

I've set up a macro for differential parts as so: \newcommand{\dd}[1]{\,\mathrm{d}#1} which is useful for differentials at the end of integrals because of the space. (I realise the argument ...
3
votes
1answer
118 views

moderncv banking style: How to move the title block all the way to the left?

In have used banking style in the moderncv class. I have modified things a bit. The code is so huge and messy that for me to provide the MWE would be impossible. In, the moderncvstylebanking.sty file, ...
1
vote
2answers
69 views

The distance between the caption and the table

I use the following table in Latex. And I want to decrease the distance between the caption and the table. And also I want to adjust the distance between the table and the above text; the distance ...
2
votes
1answer
83 views

How to reduce vertical spacing between proof environment and enumerate environment

How can I reduce the space between the proof environment head and the enumerate environment in the minimal example below? Note: This is most likely not a duplicate question. Some while ago, I posted ...
4
votes
1answer
86 views

Image vs Text Arrangement [duplicate]

When I write a multi-page paper with imported images, I usually try to group the picture with the text referencing it. Sometimes, there is not enough room at the end of the page for the picture, and ...
6
votes
3answers
142 views

Horizontal spacing after cases bracket in equation

How can I add a little horizontal spacing after the cases bracket, at the depicted position, so that 1 and 0 move to the right (the given screenshot looks okayish, but I'm using a different font where ...
5
votes
1answer
64 views

Stretching an \fbox horizontally to fit the page

I have a frame box next to some text (Komentar:), and I would like to stretch it so it fills up the page. I've done this using the calc package by subtracting \widthof{Komentar: } from \hsize (or ...
2
votes
0answers
43 views

Cancel the use of \baselineskip when at the top of page

I've defined a macro \myaddress which prints my address at the end of a document, cf. Simplify how I write my address in documents. That macro includes the use of \vspace{\baselineskip} to separate it ...
1
vote
1answer
73 views

Is it possible to change the spacing between particular columns of a table?

I am struggling to make a longtable fit on A4 pages in portrait mode. The problem is that the table is too wide. I am not allowed to use smaller fonts (that would solve my problem but it's not an ...
1
vote
0answers
39 views

Reduce space below an algorithm

I am using the algorithm package for my algorithms in the paper. I find that the space below the algorithm is very large after generating a PDF, so I want to shrink the space. Firstly, I come to add ...
1
vote
2answers
152 views

Problems with fractions in a square root [closed]

whenever i have a fraction inside a square root, the square root symbol drops down below the line and intercepts whatever is on the next line. I think the package savetrees may be causing the ...
3
votes
1answer
55 views

What spacing/justification change might fix this hbox overfill in an enumerate environment?

I'm planning on cleaning up a large TeX file for viewing on an e-reader (hence, small page size), and as I'm new to TeX I'm practicing on a sample file and following these instructions. However, I'm ...
2
votes
2answers
67 views

Special Table Spacing in Latex

I have a table in which I display a row with say "x" and in the following row below "x" I display the standard error of "x". However, I want those two rows to be close to each other and also to be a ...