{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
76 views

Processing a command as having no horizontal or vertical space

Is there a way to tell LaTeX to process \marginpar{<arguments>} as taking up no space in the body text? Right now I end up with a really ugly white line. I am aware of the marginnote package, ...
4
votes
2answers
80 views

How can I write an 1,4 glycosidic bond in Latex text?

I want to write \documentclass[12pt, a4paper, openright, twoside]{report} \usepackage[english]{babel} \usepackage{textgreek} \usepackage[utf8x]{inputenc} %ÄÖÜß und griechische Buchstaben ...
1
vote
1answer
73 views

Best practice of spacing [closed]

What would be the best configuration of spacing of elements (lines, paragraphs, section titles, lists, list items, ...) in document (such as official report, thesis)? The criteria are: Perception ...
2
votes
1answer
35 views

Running command on new page

I have a special letterhead command called \newpageheader which adds a decorative figure and sets spacing for new pages: \newcommand{\newpageheader}{\newpage \thispagestyle{plain} \hspace{-1in} ...
4
votes
1answer
54 views

Controlling the white space: distance between headrule, text and footrule inconsistent

How to control the distance of white space between the rules and the body text? \documentclass{article} \usepackage{fancyhdr} \usepackage{lipsum} \fancypagestyle{plain}{ ...
4
votes
3answers
85 views

Automatically add List of Abbreviations (totcount and acronym)

I would like to have a list of abbreviations automatically added if there are abbreviations. I am using acronym for the abbreviations and am currently trying to count the \ac commands using totcount. ...
2
votes
1answer
57 views

Remove Spacing above Heading with removed Chapter-Text

I've a problem with removing the space above the Chapter text, when I've removed the "chapter". My minimal example is down below. In the image I show which space I'd like to reduce. I tried a lot with ...
3
votes
2answers
102 views

LaTeX table of contents header spacing

Here is my issue. The code below, which I found on a pdf devoted to memoir class title pages, compiles to form this: Unfortunately, the Table of Contents is a bit too low for my liking. I'm hoping ...
2
votes
0answers
50 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
47 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
40 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
54 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
77 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
194 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
110 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
50 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
54 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
40 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
133 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
38 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
57 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
94 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
71 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
46 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
50 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
83 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
78 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
91 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
88 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
223 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
67 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
270 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
42 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
26 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
45 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
79 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
30 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
706 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
97 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
68 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
39 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
96 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
96 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
28 views

Changing a macro's output depending on immediate context [duplicate]

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
187 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
78 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
100 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
91 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 ...