{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}.
1
vote
1answer
46 views
LyX: Vertical spacing only some lines in a paragraph/ only the inline formulas
I have the following problem in LyX:
I get many paragraphs with awfully long in-line formulas, which by multi-lining come to be vertically adjacent. The aesthetic effect is quite awful, so I would ...
9
votes
2answers
99 views
Mixing math character classes (e.g. \mathord to the left and \mathrel to the right)
It is possible to have a symbol or group behave to the left as if it had one particular math character class and to the right as if it had another?
One typical case where this comes up is when one ...
10
votes
3answers
230 views
Whitespace that breaks across pages (e.g. for handwritten answers)
I'm creating a document where I want to leave white space of varying heights, e.g. for handwritten answers to questions.
It doesn't matter whether this empty space is bordered or not.
The key thing ...
5
votes
1answer
67 views
Decrease space before and after chapter in fncychap
I would like to decrease the space before and after the chapter name due to space constraints. I am using the fncychap. Here is the MWE:
\documentclass{report}
\usepackage[Glenn]{fncychap}
...
7
votes
1answer
83 views
Extra spacing around restatable theorems
I'm learning how to use the thmtools package, and I came across a strange quirk. A minimal example is as follows:
\documentclass{article}
\usepackage{amsthm}
\usepackage{thmtools}
...
5
votes
1answer
55 views
`\hfill`-like spacing in math mode without using `align`
In question 83509, a way of getting \hfill-like behaviour in the align environment is described, but for my purposes, I need one that works in the equation environment. (I want to display some ...
3
votes
2answers
72 views
Too much space around wrap figure
I am using the wrapfig package to have my text around the figure but there is too much space around it as you can see below.
Here is the code that I am using, I looked at the wikibook on LaTeX for ...
4
votes
1answer
46 views
Hyphen within variable names (Proteins and Amino acids)
I have to Amino acids as variable-names within LaTeX. So far I am using (and found out):
\documentclass{a4paper}{article}
\newcommand\dTRP{\mathit{d-TRP}}
\begin{document}
$[\dTRP] = 3$ (Ignore ...
1
vote
2answers
65 views
Problems with mdframed
I am trying to put a box around matlab code but the bottom of the box sits extremely close to the next line. I try a line break but it does not work. Any ideas?
\documentclass[a4paper,12pt]{article}
...
1
vote
1answer
49 views
No spacing between citations
I'm trying to eliminate the space between the numbers in multiple citations, and I've tried using the \usepackage[compress]{natbib} and \usepackage[nospace]{cite} packages and commands to do it, but I ...
1
vote
2answers
50 views
Spacing between a special character and text
Why do I get output like this ?
Why is the alignment varying if I embed the special characters like lambda and eta ?
code sample 1:
\begin{gather}
\label{eq:Highest spatial frequency}
\frac{2 ...
3
votes
1answer
94 views
Chapter title alignment with titleformat
I am trying to typeset a title with titleformat as in the following example:
I like the overall result, but when the title wraps around it is not left-aligned. Is there any way to indent the second ...
4
votes
2answers
73 views
LyX: reduce spacing in TOC
Is it possible to reduce line spacing in the Table of Contents?
I have tried adding \singlespacing before the TOC but I get "Undefined control sequence"
I have also tried \setlength{\itemsep}{0mm}
5
votes
1answer
65 views
How to eliminate spacing in tikzpicture?
It seems that, when using Tikz, nodes and/or the tikzpicture environment add space around a drawing. An example is shown in the following MWE, where a simple square is drawn three times. First it is ...
4
votes
0answers
45 views
Aligning a table (vertically) with a subfigure [closed]
I want to show three pictures and a tabel with explanatory text:
--------- ---------
| | | |
| Pic 1 | | Pic 2 |
| | | |
--------- ---------
...
2
votes
1answer
44 views
Control interword glue
I know that TeX (and thus LaTeX) uses boxes and glue to lay out text, but I can't find how to control the glue dimensions.
Specifically, I have one troublesome paragraph that doesn't justify well ...
4
votes
1answer
91 views
Fill empty vertical space with a single diagonal line
I'm currently writing a document with the book class.
At the end of every part, I have a box where I put my name and I can sign. This box fills the whole horizontal space but is only a couple of ...
1
vote
0answers
80 views
LaTeX creating unnecessary space
I'm getting unnecessary white spaces as in the snapshot.
It's mainly because of my figures. I'm putting my figures as
\begin{figure}[H]
\centering
\input{figures/,,,,,,.tex}
\caption[h]{....}
...
2
votes
1answer
41 views
How to adjust space between columns in longtable environment?
In the regular tabular environment, we can use \setlength{\tabcolsep} to specify the size of the space between the columns, but this doesn't work in longtable. Is there a similar command?
...
6
votes
2answers
92 views
Equations and defining equation variables
I have a main equation that should be numbered and now I want to define the variables of the equations which may contain another set of equations. For example please have a look;
code:
\begin{align}
...
8
votes
2answers
94 views
Odd vertical gap with multicol, scrreprt and parskip=half
I'm having a weird vertical gap in one of my documents, which only is there when I use multicol together with \documentclass[parskip=half]{scrreprt}.
Minimal example
...
2
votes
1answer
60 views
Paragraph Spacing within a Tikz Environment
I am looking to replicate the look of paragraphs within a tikz environment (actually a minipage).
\documentclass[letterpaper,12pt]{book}
\usepackage{tikz}
...
2
votes
1answer
61 views
Line return/spacing after \hrulefill
I'm new to LaTeX and am trying to make a simple resume. I'd like my left-justified name to appear above an \hrulefill line followed by my right-justified address on the next line.
However, when I do ...
4
votes
1answer
52 views
Spacing below section title
The document class acm_proc_article-sp seems to be incompatible with the package titlesec. At least I can not load it. It fails with
(/usr/share/texmf-texlive/tex/latex/titlesec/titlesec.sty
! ...
9
votes
1answer
91 views
Where is the trailing space after TikZ node text gone?
I've been fiddling with TikZ nodes to get framed text (part of mdframed boxes, but that's beside the point) when I discovered something that puzzles me. If you run the code below:
...
6
votes
1answer
75 views
How to remove space surrounding a colored theorem box?
This is a follow-up question of Combining spacebelow with shaded parameter in thmtools package. Bug?. How can I get rid of the space above the theorem box? If I comment out the mdframed=... line it ...
5
votes
2answers
72 views
New enumeration
\begin{enumerate}
\item
\item
\item
\item
\end{enumerate}
How to define new numeration: I would like to have bigger spaces between every two points and equal indents for all points.
...
5
votes
1answer
86 views
Formatting a logical (PD) derivation
I'm trying to format a PD derivation but I'm having trouble getting subderivations to display well. Essentially what I'm trying to accomplish is this:
1 | P Assumption
2 | Q ...
6
votes
2answers
95 views
Custom verbatim that sets all spaces (“ ”) as visible spaces (“␣”) that can line-break
It makes sense to typeset code in a monospaced font. Sometimes such code needs to be embedded in a paragraph context, and then it will be useful to allow it to linebreak. In order to visualize spaces ...
0
votes
1answer
82 views
How to reduce the margins and spacings in this document
I'm using the res.cls to create a one-page CV (I know, res.cls is old, but I prefer its layout). Since the CV is one-page only, I need to squeeze some more space for its content. This is what I have ...
2
votes
1answer
39 views
How to prevent \xspace from adding a full space after a period?
I have a little macro that I use for doing adding an e.g. in my writing:
\newcommand{\eg}{\emph{e.g.}\xspace}
The problem I have is that LaTeX is treating the g. as the end of a sentence and is ...
2
votes
1answer
34 views
How may I insert white vertical space between subequations?
I have the following MWE
\documentclass[11pt]{article}
\usepackage{empheq}
\newcommand*\widefbox[1]{\fbox{\hspace{2em}#1\hspace{2em}}}
\begin{document}
\begin{subequations}
...
2
votes
2answers
66 views
\hspace is not working after \newline command
I am currently working on my thesis report and would like to add affirmation to it. Following is the minimal code for the same :
\documentclass[]{article}
\begin{document}
\section*{Affirmation}
...
3
votes
1answer
100 views
How to remove space between back address and address in scrlttr2?
There is a blank line between the back address and the address? How can I remove it?
\documentclass{scrlttr2}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ngerman, ae}
...
2
votes
0answers
58 views
Wrong spacing with siunitx and gnuplottex [closed]
EDIT: This question turned out to be a gnuplot problem. If you are facing the same issue, update your gnuplot installation.
Versions known not to work: 4.4
Versions known to work: 4.6.2, 4.6.0
...
2
votes
2answers
94 views
Kind of spurious space
I'm trying to write a \spaced macro: it takes a string as parameter, decompose that string and then recompose it spreading avery token from the others according to a given \spreadratio. Here are the ...
1
vote
1answer
56 views
How to properly space multirow subfloats
I have 3 subfloats, but they will not all fit on one line, so I have two in the top row and one on the bottom row. My first problem is the floats are all different sizes and they are not being spaced ...
7
votes
2answers
83 views
Is there something between singlespace and onehalfspace?
Perhaps there is a trivial solution for this, but I wonder if there is anything between singlespace and onehalfspace. The reason is that, when I use singlespace it seems to be very compact while ...
3
votes
1answer
40 views
Globally setting the separation length for _subitems_ in Beamer
How can I globally change the item separation length for subitems in Beamer? I need a command such as the below, only working.
\setbeamertemplate{itemize/enumerate subbody begin}{\normalsize ...
2
votes
2answers
131 views
barchart in pgfplots looks really bad
Problems:
The bar value "90" is written over a black line, almost impossible to read
The value "58" is written over an x tick, hard to ready
Bar spacing is bad. There is too much space between the ...
1
vote
1answer
62 views
Moving the table caption
I want to move a wrapped table and caption, I'm trying to use vspace but it doesn't move the caption. Any ideas?
\documentclass[12pt]{article}
\usepackage{wrapfig}
\usepackage{floatrow}
...
7
votes
3answers
125 views
Can \left( … \right) be instructed to ignore nonexistent upper or lower limits of summation? [duplicate]
In a formula such as
\[ \left( \sum_{n\in\mathbf{N}} \right) \]
the left and right delimiters extend not only downwards to cover the lower limit of the sum, but upwards an equal amount as if to ...
2
votes
1answer
86 views
Variable white space between paragraphs
I am having trouble finding out why the white space between my paragraphs is variable. Sorry, I am not allowed to post images but sometimes there is no white space (like it should be), just an indent ...
0
votes
0answers
19 views
How do I change the margin under chapter? [duplicate]
I am using the scrreprt class and the margin between \chapter and the text is too big. I tried to change it with \titlespace but later found out that titlespace does not work for chapters. Is there an ...
2
votes
3answers
84 views
How to define the proper space between elements of a matrix?
I need to draw a simple matrix, with column corresponding to some sets. I tried the following:
\[D^{4}_{2}=
\left[\begin{array}{cc}
\diagdown & {\begin{array}{cccccc} \{1,2\} & ...
1
vote
1answer
106 views
Layout for seminar paper; justified, font, size, spacing
I just started university and decided to graduate from Word for writing my papers, thesises and so on.
But I have some problems with probably the most simple things... I got this template:
here the ...
3
votes
1answer
78 views
Rubber margins in chapters
I couldn't find a Google hit with what I need (try: LaTeX rubber margins). So, is it possible to stretch left/right margins, within defined acceptable limits, so that pages are filled optimally? I'm ...
7
votes
1answer
125 views
How to automatically add \! in subscripts?
This code
\documentclass{article}
\usepackage{fouriernc}
\begin{document}
$a_1$
$a_{\!1}$
\end{document}
produces this output:
I like the spacing on the lower one much more.
Is there a way to ...
1
vote
2answers
102 views
Spacing before and after section titles
I know this subject has been mentioned before, but I'm still having a problem in creating a space under a section title. I used the titlesec package and then tried using the command ...
2
votes
1answer
61 views
Customising list of tables to include “table” word
I am customizing the list of tables and list of figures in a report class document. I am trying to produce lists that start this way: "Table 1: Some info" and so on, instead of the default beginning ...



