{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
0answers
37 views

Count Characters without Spaces [duplicate]

I'm writing my BSc thesis right now in LaTeX using texmaker. The maximum amount of characters (without spaces) for the thesis is 70'000. Is there a decent way to count this? Copy-pasting it into Word ...
2
votes
1answer
64 views

Single spacing in todonotes with Elsarticle Class

I would like to know how I can use single spacing (\singlespacing) in todonotes, considering Elsarticle Class, because I always get an error message about paragraph? Following a minimal example: %!...
2
votes
1answer
47 views

Tabular with prescribed width and options

My purpose is to reproduce this document : I want to create a tabular, but I want the first column to be, for example, of 6 centimeters in width. Other point : sometimes I need a lot of room in a ...
2
votes
2answers
102 views

Making a text box replace a \vspace

I have an enumerate list that has it's items separated by a \vspace {1 in}. Each \item is a question that needs to be answered within that space, and, I want to create a "possible answers sheet", ...
3
votes
1answer
78 views

How to get uniform spacing between paragraphs across several pages?

I am using \flushbottom to get pages of equal height. When I now insert a tcolorbox which is set to be unbreakable such that a page break becomes necessary, only the spaces between paragraphs on the ...
1
vote
1answer
62 views

Unsatisfying visualization - Tick labels touching each other

On the bottom right part of the added picture you see that the x and y tick labels are almost touching each other. Which isn't really beautiful in my opinion. Are there any good solutions of this ...
2
votes
1answer
31 views

Why does combining arrays and \left/\right cause alignment?

The following MWE is rendered as shown below: \documentclass{article} \begin{document} \begin{array}[t]{@{}l@{}} \left[\int abc\right]\\ \left[abc\right] \end{array} \end{document} Why aren'...
1
vote
0answers
25 views

Space ending at a pre-set position

I will start by saying that defining the problem I would like to solve is not really easy...I guess it could be called 'Tabular without tabular environment' but the best description is IMHO the ...
8
votes
2answers
340 views

Inconsistent superscript placement in $q_x^{n_x} q_y^{n_y}$

As part of a document, I am typesetting the objects q_x^{n_x} and q_y^{n_y} right next to each other, as \frac{ q_x^{n_x} q_y^{n_y} }{2} It bugs me that the n_y gets displayed at a different ...
2
votes
1answer
33 views

Wrap part title in part's page with titleformat

I am using titleformat to make some adjustments in the part's page and I want to wrap the title in half, to be centered as a text, but on the right side of the page. Any ideas? This is my code \...
2
votes
1answer
47 views

Skip after the label of inline description environment

I'd like to turn a paragraph containing several “subparagraps” into an equivalent inline list. See the following code. \documentclass{article} \usepackage{amsthm} \usepackage{enumitem} % \usepackage{...
0
votes
1answer
40 views

Remove white space before a single chapter

I've searched this sites for similar questions, but can only find answers that remove the space for every chapter, whereas I only want it removed in one chapter. The MWE is quite minimal :) \...
3
votes
2answers
60 views

Encode into an `enumerate` environment (Version 2)

From the following code, a selection from a multiple-choice test is rendered. The four problems should be enumerated as 1.), 9.), 16.), and 25.). How do I do that with an enumerate environment? I ...
1
vote
1answer
57 views

Custom spacing of figure

I'd like to custom place a figure beside some text. I tried two approaches. First, I placed the text with tabbings in one minipage and the figure in a second minipage...and both minipages into a ...
5
votes
2answers
110 views

Create a blank space the same size as text, equations etc

I would like to create a space in my document the same size (height and width) of a certain set of text. (For context, it will compile the TEXT when I want solutions and SPACE when I only want the ...
14
votes
3answers
976 views

How to create these nice operators?

I'm trying to typeset a paper in Haskell, and I want to typeset these operators: I'm talking about <*>, <$> and <$. I've seen these before in articles about Haskell. Is there a ...
2
votes
1answer
178 views

Different positions of headers and footers in different pages

I could not figured out why I'm getting different positions of headers and footers in different pages (please see MWE below). Any help in this regard will be highly appreciated. Thanks \documentclass[...
2
votes
2answers
27 views

text in align-environment

Is there a way to coordinate the space here? \documentclass[a4paper, 12pt, oneside, titlepage]{scrbook} \usepackage{amsmath} \usepackage{amssymb} \usepackage{colortbl} \begin{document} \begin{...
3
votes
1answer
70 views

Justify text when using a tabular environment

I'm using \documentclass[10pt,twocolumn]{article} \usepackage{hhline} \usepackage[left=1cm,right=1cm,top=1cm,bottom=2cm]{geometry} \addtolength{\columnsep}{0.4cm} \addtolength{\textwidth}{\...
2
votes
1answer
62 views

Specific chapter page formatting

I bought a recent math book, and it was clearly made using TeX. Here's an example from the chapter page: I wanted to reproduce this chapter style for other texts I'm working on (same fonts, sizes, ...
0
votes
0answers
27 views

Italic correction after a reference

It seems that italic correction doesn't work after a \ref. I wanted to name a variant of a theorem with a prime, and this causes a problem if there's a reference in italic mode. Here's a simple ...
1
vote
2answers
64 views

Too much white space above png figure after latex-dvi-pdf compilation

I have searched the other question here extensively as the problem of spacing seems to re-occur often, but still have not found the solution to my specific problem: I have way to much white space ...
5
votes
2answers
125 views

Inter-sentence space without a period?

How can I insert an inter-sentence space without using a period? I can easily get an inter-word space via \␣ (backslash followed by a space), or ~ if I don't want line breaking. Is there something ...
6
votes
1answer
76 views

How to automatically remove additional space introduced by primes of left superscripts?

I need to use left superscripts. I know that there are packages as mathtools, tensor and leftidx. But they all suffer from the same typographical problem. If I typeset a left superscript and this ...
4
votes
1answer
135 views

Highlight Text with Background Color

I try to highlight text with \texttt font and background color (somehow like the highlighting on StackExchange: this). I tried with a colorbox, but the problem is that it doesn't support line breaks, ...
0
votes
1answer
35 views

Non-breakable space in chapter name

How could I move last word in following example to the next row without making \newline (which will also effect ToC)? I need non-breakable space, however ~ doesn't work here at all. Thank you. \...
1
vote
1answer
52 views

To insert a blank space between two paragraphs, should I use medskip and vphantom?

There are at least 2 ways to insert a vertical white space between two paragraphs: medskip and vphantom. Which one should be preferred for example for spacing paragraphs in "The Chaos" poem?
1
vote
1answer
28 views

Move two captions to the top and to the left respectively

I have two captions in the following table: \begin{table}[!htbp] \caption{Stuff Stuff Stufff.} \begin{tabular}{l |l l| l} \hline & aaaaaaa & aaaaaaa & aaaaaaaa \\ \hline bbbbbbb & ...
0
votes
1answer
28 views

Enumitem Vertical Spaces: Control top and bottom vertical spaces seperately

I am trying to customize the vertical spacing in description environment. A global setting such as: \setlist[description]{% topsep=10pt } adjusts the vertical spacing both “before” and “after” ...
0
votes
0answers
26 views

Avoid the insertion of spaces when using newlines in latex source code

I have a problem with some Latex code that I need to write. In this code, I am putting elements into a table using a macro. This Macro also does some magic with the content it is inserting into the ...
2
votes
1answer
58 views

add a space in \addcontentsline command for list of equations

This is a follow-up question to Creating List of Equations. I think the spacing issue happened when the equation number is greater than 9 (shown in the image). I tried to add a space with \vspace and ...
0
votes
0answers
39 views

How to avoid vertical space between header and paragraph

How to avoid the space between the text continuous from previous paragraph and header? I have shown the picture of my document. please help on this issue... The image shows the unnecessary space by ...
1
vote
2answers
46 views

Force text between part and chapter to be on the next page after the part title

I have not found a better title sorry. I have a document (book class) in which I have something like : \part{MyPart} The brief introduction of my part, where I present the three chapters I will ...
2
votes
1answer
46 views

Row spacing ignored between nested tabulars

In a tabular environment, \\[<spacing>] does not always insert the requested spacing between rows containing themselves tabulars. For instance, the two horizontal lines should not be aligned ...
1
vote
1answer
40 views

Extra inter-line spacing in a tabular environment (Version 2)

I have a table that is typeset using a tabular environment. (I want to keep it in a tabular environment.) The inter-line spacing in each table is determined by \\[1.2\normalbaselineskip]. What ...
7
votes
1answer
496 views

How can I make a “really zero-height” box?

In my document I need to show some labels in draft mode. But they should have zero height and depth (the purpose is not to affect on resulting text: all exept labels should be the same in both draft ...
3
votes
4answers
237 views

Auto-indent the second line of a paragraph

When working with numbered lists with long content, I get outputs like this: However, I would like to produce an output like where "z" and "planes" are aligned with the word "Giving". Using ...
2
votes
1answer
74 views

How to prevent \vec from making \left(\vec{f}\right) ugly?

It seems like \vec makes \left( and \right) expand in an ugly fashion: \begin{align*} \ g(\vec{f}) \ g\!\left(\dot{f}\right) \ g\!\left(\dot{\vec{f}}\right) \ g\!\left(\vec{f}\right) ...
0
votes
1answer
57 views

How to adding vertical spacing in \raggedright or \RaggedRight

I usually use \\, \par, \newline, etc. to add whitespace to LaTeX. However, when I use raggedRight, the pdflatex spits out a ton of messages saying "There's no line here to end." Ultimately, all ...
1
vote
0answers
58 views

Space in fraction

See distance from/to fractionline...How can i lower little bit \partial W? \documentclass[10pt,a4paper]{letter} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{...
7
votes
2answers
78 views

Vertical space different at top of first page

I've been working on a document with extra vertical space at the top of some pages and noticed that in certain contexts the spacing comes out differently on the first page compared with later pages. ...
3
votes
1answer
51 views

Reducing space between items of reference

I want to reduce the space between items of my references. After reading many related posts and trying various methods, I was still unable to do that :( I use BibTeX and here is my code (the ...
3
votes
1answer
58 views

How can I make “headings” inside a figure?

I have a figure that is built up of multiple parts and I want each part to have a "title". How can I do that in a way that looks nice? Right now I am just using \textbf for the "titles" and everything ...
0
votes
1answer
70 views

Extra inter-line spacing in a tabular environment [duplicate]

I have a table that is typeset using a tabular environment. (I want to keep it in a tabular environment.) The contents of each row is an expression involving radicals. The inter-line spacing is ...
1
vote
1answer
42 views

Alignment in \addchap left and right at the same time

I'm using scrbook and want to accomplish the following: The chapter (unnumbered) shall be devided in two parts - one ragged left and bold and - one ragged right and normal font Now I get a strange ...
3
votes
2answers
51 views

Wider space between minus sign and number when surrounded by verts

When I write the following: \documentclass[12pt,a4paper]{article} \begin{document} $$ -1, -2, -3, \dots \| -1 \|, \| -2 \|, \| -3 \| $$ \end{document} It produces the following: As you can ...
3
votes
2answers
33 views

Regulation of the distance between the first verse and the previous paragraph using `verse`

The insertion of poetry in a given prose text using the ambient verse introduces a distance between the first verse and the previous paragraph, as well as between the last verse and the following ...
2
votes
1answer
45 views

Font size too in first row big for table

I'm trying to make a good looking table for my project but when I'm trying to make the font size larger on the first row of the table they get too big and parts of the letters crosses the top line. I ...
4
votes
1answer
45 views

Typeset siunitx-like percentage value in math mode

I'd like to typeset "10 %" with exactly the same spacing between 10 and % as in \SI{10}{\percent}. For some reason I'd rather not use siunitx in this particular instance. How do I replicate the ...
1
vote
2answers
53 views

spacing between rows in a table

I have a table here. But it does not look right. First thing is regarding the spacing between rows. I need to increase the spacing. Second thing is at row 25, the number somehow exceeds the column. ...