{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}.
2
votes
1answer
53 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
103 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
83 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
50 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
106 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
121 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
71 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
117 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
73 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
106 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
86 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
78 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
92 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
111 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 ...
2
votes
1answer
261 views
Beamer: Full width image, aligned to top with a frame title
I would like to include a full width image, aligned to the top of a frame with a frame title. The problem is, I cannot get rid of a line of white space between the orange frame title header and the ...
0
votes
1answer
101 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
47 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
42 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
87 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}
...
5
votes
1answer
152 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
70 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
98 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
72 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
98 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
48 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
158 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
73 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
137 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
117 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
20 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
93 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
145 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
83 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
128 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
120 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 ...
3
votes
1answer
84 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 ...
5
votes
1answer
65 views
Set indentation of choice in exam documentclass
I want to create an multiple choices question with this indenting format
1. ########
A. ###
B. ###
C. ###
2. ########
########
A. ###
B. ###
C. ###
The choices have same ...
3
votes
3answers
75 views
Spacing in QM-style integrals (differential first)
I'd like to write integrals with the differential first, the way physicists tend to: $\int dx f(x)$. The problem is that this puts an unsightly (to my eye) gap between the integral sign and the ...
1
vote
1answer
81 views
How to preserve relative spacing when changing paper size in beamerposter. (margins too big)
I recently made a poster in LaTeX using the beamerposter package, it was 48x36 inches, and came out great. I now need to re-print the poster in a smaller size. (36x24 inches)
I realize that this ...
3
votes
1answer
57 views
Horizontal spaces to the left and right of theorems
How do I get horizontal spaces to the left and right of theorems? My initial idea was to do the following bad idea:
\documentclass{article}
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
...
3
votes
3answers
93 views
\addtolength{\leftskip}{2em} does not apply to equations in the paragraph
I have a paragraph which should be emphasized using left and right skips. Thereby I recognized that it simply ignores equations in this paragraph. Is this reasonable?
\documentclass{article}
...
4
votes
1answer
59 views
No space above first \item inside mdframed [closed]
Problem
This is what happens:
But I want the same vertical spacing before the first list item inside the mdframed environment as outside of it. How can I do this?
Code
\documentclass{article}
...
4
votes
1answer
61 views
Remove unnecessary horizontal space from amsmath align between two &
How do you remove unnecessary horizontal space in an amsmath align environment between two &?
Consider:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Version 1:
\begin{align*}
...
0
votes
0answers
29 views
How to reduce space before image? [duplicate]
I m using includegraphics function for image.
Some text before image
\begin{figure}
\includegraphics[width=0.5\linewidth]{ABC.pdf}
...
0
votes
0answers
43 views
Inconsistency with needspace [closed]
I just found there is some inconsistency with\needspace command. Sometimes it adds spacing based on parameter while sometimes it does not. Is it because of package clash?
1
vote
1answer
94 views
Question on top margin in chapter page
In my LaTeX template, there is a page contained the chapter part that is too far from top of the page like the following:
My LaTeX file uses amsbook: \documentclass[11pt,a4paper]{amsbook}. This ...
3
votes
1answer
73 views
Overset placement is uneven
I'm using this code to show that one element of the equation is greater than zero and the second element is less than zero.
\begin{align}
\overset{+}{\pi_{i}} + \overset{-}{w_{g}(S)} > 0
...
2
votes
2answers
73 views
Changing space between atoms in Chemabove
Consider this example:
\documentclass{memoir}
\usepackage{fontspec}
\usepackage{chemfig}
\usepackage{unicode-math}
\pdfmapline{+arial arial <8r.enc <sAarial.ttf}
\begin{document}
...
6
votes
2answers
112 views
Several lines of formulas to the left of one curly brace pointing to equation number
How to make several lines of equations under one curly brace from the left side, such that it point to a reference number.
Now I do something like this:
\begin{align}
\left.
\begin{array}{ll}
a = b ...
2
votes
1answer
132 views
Text in moderncv’s left column overlaps with right column
I was trying to compile a Resume and I am not able to figure out why only the second line has superimposed text. The below is the code.
\documentclass{moderncv}
\moderncvtheme[blue]{casual}
...




