Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [spacing]

{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
2answers
12 views

Reduce spacing after glossary title

I would like to reduce the spacing after the Acronyms title to match spacing of a regular section, but don't know how. I tried to reduce it manually using \renewcommand{\glossarypreamble}{\vspace*{-\...
0
votes
0answers
14 views

How to change the text area of a particular page

I have very long (horizontally) equations on a page in the middle of my document. I have used \eject\pdfpagewidth=14in to change the width of that page, but I can't figure out how to change the ...
5
votes
3answers
48 views

How to get rid of & in cases environment but still get the same space in the surroundings

Recently I asked a question on chat but I was told that I have to ask it on the main site, so here I am. I am using cases environment to create multiple system of equations separated by a symbol e.g. ...
2
votes
3answers
30 views

Spacing in matrix entities

I will try to get something like in the picture below: I have tried a code but the spacing are quite large compared to the spacing in the picture \begin{equation} \begin{matrix} \xi_1 & = &...
0
votes
0answers
9 views

Row vector bracket size with double spacing [duplicate]

I have an equation in my thesis that needs a row vector. Since my thesis template is using the \doublespacing command of the "setspace" package, the bracket size of the row vector is not consistent ...
1
vote
1answer
23 views

The size of character changed in fbox

The source is as in the following \documentclass[a4paper]{ctexart} \begin{document} \noindent 【 \setlength{\fboxsep}{0pt} \noindent \fbox{【} \end{document} The output looks like As you can see, ...
3
votes
1answer
22 views

Is there a way to remove extra space when using qtree?

Is there a way to remove the extra space in the example below? (That is, to make the square brackets smaller but in such a way that the whole tree still falls within the brackets) Here is the code: \...
0
votes
0answers
27 views

newcommand/mathsurround if there are more then 2 simple text spaces

I want to use \mathsurround with more space then 0pt, but with the condition, that there are more then 2 simple text spaces between 2 math mode environments. The reason is, when I have an ...
0
votes
0answers
42 views

How do you remove a singular line of space at a time? [on hold]

When using the \align environment, it tends to create an extra horizontal space above and below itself. I want to remove whatever that space is. I know there is some kind of hspace command that could ...
2
votes
1answer
20 views

How to reduce the spacing between labels and text in an inline description?

I'm using the option inline of the enumitem package to create lists inline. The numbered lists are perfects, however, the descriptions produces a lot of withe space between the label and the text. ...
1
vote
1answer
34 views

Smaller \frametitle row in Hannover theme in beamer

\documentclass[aspectratio=169]{beamer} \usepackage{blindtext} \usecolortheme{default} \usetheme[width=2.3cm]{Hannover} \begin{document} \begin{frame} \frametitle{abc abc} \blindtext \...
0
votes
0answers
22 views

how to add vertical space between words and the underline effect?

I searched around here and did not find anything accurate to what I wanted. I would like to know other ways to increase the decrease in the space between underline and words as well as in this MWE ...
-1
votes
0answers
30 views

Vertical space between the title and the content of two interline

I want to adjust the vertical space between the title and the content in book class such a way that the distance that separates them is two interline. How could I do this without any package? Thanks ...
-1
votes
1answer
18 views

How can I structure subtitles and text in two columns

I'm writing a Techinician User Manual, and I need to know how can I structure text like this figure: Thanks for your help.
0
votes
0answers
29 views

Spacing around divide (|) symbol [duplicate]

LaTex by default sets fairly small spaces around "divide" symbol (|). Is there a way to force larger skip (e. g. force LaTex to treat | as binary operator or = symbol)? MWE would be fairly simple: \...
0
votes
0answers
13 views

How do I change the horizontal spacing within entries of ListofFigures and Bibliography?

My thesis requires that I have double spacing throughout the document, except "within entries of the list of figures, tables, and Bibliography." The school template set the spacing this way in the ....
0
votes
0answers
50 views

Unwanted extra vertical space [duplicate]

Today I encountered this problem after the dictation of some lines with Dragon 13. The problem is eliminated if I copy and paste the same content on another page, or when I delete part of the things ...
1
vote
1answer
18 views

Spacing issues from vertical margins

I am trying to make the text in my document to align with the margins of my document. Here's a MWE \documentclass[12pt]{report} \usepackage[top=1.0in,hmargin=1.25in,height=9.0in,letterpaper,showframe]...
2
votes
1answer
47 views

TikZ node: How to decrease vertical space between two lines of text?

Assumed we have some simple code to display text above a brace styled node in TikZ. Minimum working example (MWE): \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{...
1
vote
1answer
28 views

Indented paragraph next to a box

I am trying to indent a whole paragraph to the right of a numbered box. However, the paragraph does not appear vertically aligned with the box. I am using the below code: \documentclass[journal,...
1
vote
2answers
41 views

Move title into left margin and align with first line of paragraph

I want to move title of section left by the following code. However, it fails to move the section number. Why and how to deal with it? \documentclass{article} \begin{document} \section{\makebox[0pt][...
6
votes
4answers
638 views

Two spaces in LaTeX code

I have a simple question: does it make any difference whether at some point I have two spaces instead of one in the source code, say after a period? That is, will PdfTeX ever output different things ...
3
votes
1answer
40 views

How to increase the horizontal spacing around `=&' in the align environment?

I found it too squeezed around the operators when I use align for multiple lines of equations. See the example. \begin{align*} &a + b \\ =& c + d \\ =& e + f \end{align*} How to increase ...
0
votes
0answers
22 views

Fitting two pages into one

I have been working on my personal CV for quite a while and now I am stuck at this point where I can not fit two pages into one. As you can see in the link below the section that I am trying to squish ...
0
votes
0answers
17 views

Increase lstlisting vertical space in toc

I have found this post but the solution is not working for me. Grouping the list of listings by chapter I am using the package listings \usepackage{listings} \lstdefinestyle{sharpc}{language=[Sharp]...
1
vote
1answer
39 views

Use \scriptsize and shift a longtable to the left with revtex4

I have the following table: \documentclass[a4paper,preprint,aps, unsortedaddress]{revtex4} \usepackage[top=2.5cm,bottom=2.5cm, left=3.5cm,right=2.5cm]{...
0
votes
0answers
25 views

\LTleft, \LTright, and \scriptsize not working with revtex4 [duplicate]

I have the follwing table: \documentclass[a4paper,preprint,aps, unsortedaddress]{revtex4} \usepackage[top=2.5cm,bottom=2.5cm, left=3.5cm,right=2.5cm]{...
2
votes
1answer
19 views

Adjust spacing between personal information & photo columns in moderncv classic

I wish to reduce the spacing between the personal information column and the photo column in moderncv classic style. Here is a MWE \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{classic} ...
3
votes
3answers
41 views

Vertically filling frameboxes on page

I am trying to write a problem assignment, with textboxes containing the written solutions. The textboxes should be distributed evenly on the page, consuming all the available space. The intended ...
1
vote
2answers
56 views

Is it just me or $f(x) = x^2 + 17 \mod 43$ adds too much space before the mod operator?

\documentclass[a4paper]{article} \usepackage{amsmath} \begin{document} Instead of $f(x) = x^2 + 17 \mod 43$, I prefer $f(x) = x^2 + 17\hspace{-1mm}\mod 43$. \end{document} Why was the modulo ...
0
votes
1answer
22 views

remove automatic spacing to fill row

I'm writing my thesis, but I have a problem that I can not solve. Latex when there are few words in a stripe, adds spaces to completely fill the line. How can I remove the spaces to fill the line? NB:...
0
votes
0answers
32 views

tcolorbox tcblinputlisting unexpected behavior when filenames have spaces and/or underscores

I'm not a Latex expert, so I reached the limit of my knowledge in the tracking down of this problem. If someone can shed some light into this problem I think it would be very useful. The Problem ...
1
vote
1answer
28 views

Strange centring problem of side by side equations in an enumerate environment

I'm facing a problem in centring two side by side equations correctly inside an enumerate environment. This problem only occurs to me under certain conditions and I can't get my head around it. ...
0
votes
1answer
32 views

The is blank space appearing in the once in run a latex code for double coloumn

I am using ASME template which is a double column template. I have the following issues Question 1 I am getting a huge blank space in my final document. I tried to remove this by using \vspace but it ...
1
vote
0answers
32 views

How can I get consistent line spacing with highlighted, minted material in a paragraph?

I'm using a lot of inline minted material. To distinguish between code elements and text elements in my document, I'm giving everything a light background color. (The color used below is exaggerated ...
1
vote
0answers
37 views

Reduce distance between listings and their captions

I'm using the KOMA scrbook class to write my thesis. I have source code blocks that I wish to display with minted. An MWE can be seen here: % Intended LaTeX compiler: pdflatex \documentclass{scrbook} ...
1
vote
1answer
61 views

Removing unnecessary space

I would like to ask about this specifical spacing problem: Is there a way that I can remove that unnecessary blank space? Not all of it, but at least a good proportion of it. \documentclass{article}...
3
votes
1answer
26 views

glossaries-extra - wrong spacing around math relation

When I use a relation in math mode with the glossaries package, the output looks exactly the same as if typed directly. However, when using glossaries-extra, the spacing is incorrect. What can be the ...
0
votes
0answers
19 views

Exam class: Change distance (space) between questions

I am looking for a way to change (increase) the spacing between \question items within a \question environment (shown in red). I was only able to change the distance between the title and the items. ...
0
votes
1answer
38 views

Equal space between numerator and denominator in fraction

I'm working on a school book that requires spacing between numerator and denominator to be of equal size. Is it possible to achieve this in LaTeX.
4
votes
2answers
105 views

Add vertically-aligned text between two enumerate items

I'd like to get something like this: MWE: \documentclass{article} \begin{document} \begin{enumerate} \item $Y^2 - 1 = 0$ \quad (text) \item $Y^2 + 1 = 0$ \quad (text) \end{enumerate} \end{...
2
votes
1answer
121 views

Placing the little orange square at the end of the Exercise environment from Legrand Book Orange template

I wrote the notes of one of my courses using the very nice Legrand book template, but I have a little problem with those little orange squares at the end of the exercises. When I write \begin{exercise}...
1
vote
0answers
36 views

LaTeX package to insert fancy horizontal lines [duplicate]

I received a pdf written in LaTeX in which I noticed the use of the following horizontal spacer: Do you know which LaTeX package provides that one? Thanks a lot, Cheers
0
votes
0answers
41 views

figure+tikz+caption results in unwanted vertical gap before caption

The following code draws some datastructures and typesets comments to different parts of these datastructures. Some comments concern single lines, others concern multiple lines; I use braces drawn by ...
1
vote
2answers
23 views

Reduce spacing between authors in article title

I am creating the frontpage of an article I am working with using the \maketitlecommand. So far this is what I have: \documentclass[a4paper,11pt]{article} \usepackage[english]{babel} \usepackage[utf8]...
1
vote
1answer
19 views

Underlining a whole line with texts at different spots

I would like to underline the whole line with texts anywhere I choose on the line. I found this answer, which is almost what I want. I tried \titleline{homework \hfill assignment} but it does not ...
0
votes
1answer
29 views

Why are my columns colliding with package paracol?

I am trying to use the package paracol to display the same biblical verses in several languages. Why are my two columns colliding and how can I prevent this? Also, as a secondary question, I am ...
0
votes
0answers
23 views

Space between the 'Content' and the 'StartToc' [duplicate]

I'm trying to reduce the vertical space between the content title and the beginning of the toc (see the figure) by editing the definition of \tableofcontents and adding a vertical space with a ...
0
votes
1answer
25 views

Can I control / avoid the rubber space at a given position?

This is a quite general question. Examples include if I want to be certain about the v. space between two specified paragraphs but am ok to leave the rest for LaTeX algorithm to increase or decrease ...
2
votes
1answer
18 views

Imposing custom spacing within citation lists

I want to impose a custom spacing between items on a list of references listed by \citep command, akin to what I would do with `\hspace*' in text. One option is to write: \documentclass{beamer} \...