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}.

Filter by
Sorted by
Tagged with
1
vote
2answers
18 views

\hfill in math mode for multiple alignments

I would like to reproduce something like the screenshot attached here, with two separate equations in each line, each set of equations aligned amongst themselves. On my end, LaTeX always pushes ...
0
votes
0answers
22 views

Increase spaces above and below theorems

I realize that the spacing between my theorems and the remaining texts of the document is so small and below is the latex code in question. I need there to be some reasonable space above and below ...
0
votes
1answer
26 views

How to get chapter title better aligned?

this question : Margins of Section Title is Out of Bounds unfortunately does not help me. When I run the bottom code, the top line is shorter than the bottom which seems awkward in documents where ...
0
votes
1answer
28 views

Horizontal space within proof

I am typesetting a few proofs in LaTeX that have multiple cases, and sometimes I wish to indent each case to make my proof clearer (with about the same amount of horizontal space as a \qquad). I have ...
2
votes
1answer
29 views

Adjust space between base and superscript

I noticed that, in math mode, the top right corner of some letters, such as N or K, seems to clip into the superscript that follows the letter. I'm attaching an example: I guess a local solution ...
1
vote
0answers
12 views

Long abstract for technical report orphaning Abstract title due to vfil

When using a custom template to prepare a report I noticed that long abstracts split across pages, fine, but it leaves the abstract title hanging by itself on it's own page. How can I structure the ...
0
votes
3answers
26 views

How to shrink a large table within the default margins?

I have this large table and wish to squash it to fit the default margins, is a solution please? \documentclass[12pt, a4paper]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \...
4
votes
5answers
160 views

Adjusting vertical spacing in fractions?

Consider the following MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} t = \frac{\dfrac{T_1}{T_2}}{1+\dfrac{Q_1}{Q_2}} \end{equation*} \end{document} It ...
3
votes
1answer
53 views

Mysterious horizontal space when using conditional macro

In order to deal with both burdensome expressions $K$-vector space and $K$-vector space $E$ at once, and this in both text and math mode alike, I defined a fine working shortcut taking two arguments, ...
1
vote
1answer
19 views

Extend line spacing for two rows of enumerate items when combined with itemjoin

Problem: I wish to extend the line spacing for an enumerate list that divides over two rows when using itemjoin. Minimal Working Example (MWE): \documentclass{article} \usepackage{amsmath} \...
1
vote
2answers
40 views

Create intersect for Venn diagram and resize circles to adjust to box size

Problem: Two minor issues which I have not been able to solve. How do I fill the intersection for the second figure (on the right)? How do I create "padding" or more "air" around the circles in each ...
3
votes
1answer
23 views

\midsloppy and \lettrine do not play nice

My issue has to do with the word spacing of the small caps the follows the lettrine. I'd like it to flow and wrap with the rest of the text, but it doesn't. Here is a MWE: \documentclass[...
1
vote
1answer
73 views

Constant word spacing

is there a way to achieve constant word spacing in paragraph using latex/ luatex/ xelatex/ context? I came across posts that mention Tex applies glue between words, but am not sure how to exactly ...
0
votes
0answers
24 views

Left sided margin in beamer

I'd like to ask you how the main text "(i) X'' weakly..." would be placed slightly more right side? I hope that the sentences (i) and (ii) start right below "The ..." in conjecture. Maybe it's easier ...
0
votes
0answers
33 views

variation of vertical spacing with tabu

I came across a practical problem while using tabu: one of my tables requires to change the vertical spacing mid table, for example the first 6 rows with spacing A and next 4 rows with a shorter ...
0
votes
1answer
24 views

How to keep my default floating environment spacing before them, while reducing my figures spacing after they?

I am using \setlength{\belowcaptionskip}{-10pt} from How can I reduce padding after figure? to reduce the spacing after my figures. And it is working fine. But it is also affecting my new floats ...
0
votes
1answer
41 views

Can I tell Latex to hyphenate first, only then try to stretch?

Earlier today on Why my document is not hyphenating on words starting with upper case letter? (I am not using \uchyph=0) I figured out that increasing the value of \emergencystretch too much will ...
3
votes
1answer
54 views

Annotated bibliography: two bibliographies, one bib file

I'm working on an annotated bibliography project. I have one bib file and need two bibliographies: one sorted chronologically, and the other sorted alphabetically. I want both bibliographies to ...
9
votes
1answer
187 views

Why my document is not hyphenating on words starting with upper case letter? (I am not using \uchyph=0)

I recently noticed on my thesis (template here) that words starting with upper case letter are not hyphenating. Then, I researched and found about the usage of \uchyph=0 How do I prevent TeX from ...
0
votes
1answer
55 views

Remove space after the Chapter

I'm almost at the end of my report, this time a mysterious space appears after the last chapter. at the beginning of the report i add this code before the main chapters : \thispagestyle{empty} \let\...
1
vote
1answer
38 views

\underline and \overline spacing problem in the definition of mathematical operators

Disclaimer: I searched the TEX.SE before deciding to post this question since, despite having see several question addressing the spacing behavior of the \overline and \underline operators, no one of ...
0
votes
0answers
56 views

Typing vector space Rn in LaTeX

I am a beginner in LaTeX. I have trouble typesetting V = Rn My code is: \textit{V} = $\mathbb{R^n}$, but it doesn't give me the n, that I want. This is what I want: Instead my output is :
2
votes
2answers
53 views

Decrease length of spaces in inline math

It is a requirement of the journal I'm submitting to that inline math be formatted as $x\!=\!3$, i.e. that we insert a thin negative space around operators. Is there a way that I can set this ...
0
votes
1answer
29 views

Section headings not vertically aligned on different pages (font dependent)

Consider the following MWE where the first section heading contains letters with ascender and the second does not: \documentclass{article} \usepackage{fontspec} % https://github.com/adobe-fonts/...
1
vote
1answer
34 views

Unwanted space due to colored beamer blocks

The code below redefines beamer's default block environment to allow for style customizations. Unfortunately it somehow also changes the horizontal spacing of the last column (the rule of the third ...
5
votes
1answer
39 views

Weird spacing after string in lstlisting

Why is spacing before and after vertical bar inconsistent in this listing? \documentclass{article} \usepackage{listings} \lstset{ morestring=[b]', basicstyle=\ttfamily } \begin{document} \...
2
votes
2answers
115 views

Distance between horizontal tree levels

My problem is that the following tree produced with tikzpicture squeezes my nodes way too close together, as you can see in the picture below. I have been trying to use level distance to move the them ...
2
votes
1answer
27 views

Changing vertical spacing of text under an underbrace?

New to all this, still lots of learning. I've been able to modify the vertical spacing between the underbrace and the equation, but when I try to put text underneath the brace it seems to be hugging ...
1
vote
2answers
68 views

Decrease spacing between a bullet point and its subbullet point

This is my code: \documentclass[a4paper,10pt]{article} \usepackage[top=0.75in, bottom=0.75in, left=0.55in, right=0.85in]{geometry} \usepackage{graphicx} \usepackage{url} \usepackage{palatino} \...
1
vote
2answers
64 views

Add space below a \colorbox

I have created a new command using colorbox as follow: \newcommand{\resheading}[1]{{\small \colorbox{mygrey}{\begin{minipage}{0.975\textwidth}{\textbf{#1 \vphantom{p\^{E}}}}\end{minipage}}}} This is ...
1
vote
1answer
17 views

Suppress text (space) output when using \glsadd{}

I'm using the glossaries (or glossaries-extra) and am trying to add terms to the glossary silently. That is, inside my document, I occasionally want to add a term to the glossary without it appearing ...
5
votes
1answer
84 views

lualatex: too little space inside f\Bigl(

Consider the following example: \documentclass{standalone} \usepackage{unicode-math} \setmathfont{TeX Gyre Termes Math} \begin{document} \(f\Bigl(\Bigr)\) \end{document} If you compile it with ...
2
votes
1answer
33 views

Large space appearing before my newcommand

I've created this code which hopefully will make glossing a lot easier, the first input decides the order of a Transcription, Phonemic reading, Phonetic reading, and Gloss, and uses the input to ...
1
vote
1answer
21 views

How to remove the space after references/bibliography title?

After 'References' title and before the items list, there is a space between them, as shown in the following figure: My code is: \documentclass[a4paper]{article} \usepackage{enumitem} \usepackage{...
0
votes
0answers
19 views

need to remove spacing after title in ToC, LoF and LoT for \tableofcontents, \listoffigures and listoftables

%% Thesis.tex is an AMS-LaTeX file using siugrad.cls style %% file. %% This file can be used with PCTeX or with MikTex. %% Images are included in .ps and .pdf formats. %% PDF formats are ...
0
votes
2answers
41 views

How do I increase spacing between chapter number and chapter title in thesis

I want to give space between chapter number and title, I tried in .cls file but not getting any idea. %% %% This is file `iitbreport.cls', %% %% Time-stamp:<2016-04-18 01:32:05, v1.3 sunthar> %%...
0
votes
1answer
18 views

Spacing in front of citation (natbib, super)

I am using \usepackage[super]{natbib} for my citations. When using that, the horizontal spacing in front of and after the citation are different. How do I increase the spacing in front of that ...
1
vote
1answer
28 views

More spacing between columns in a table

I would like to have more spacing between the column AIC and BIC such that the minus sign in the column BIC does not overlap the numbers in the column AIC. How can I fix this? \documentclass[...
1
vote
1answer
31 views

How to reduce space between a text line and differents \hline in a table - trying to use negative \vspace value

On the following figure, I try to make decrease the space betwen the line "Nombre de bins : (Y1) :5 ..." and the two \hlines above. More over, you can see that line "Nombre de bins : (Y1) :5 ..." is ...
2
votes
0answers
19 views

What is the vertical spacing between the first line and the top of the document

I have set margins zero and no indent for a document (memoir). I’m trying to figure out what the spacing between the top of the page and the first line is and how to change it. I’ve discovered a ...
0
votes
1answer
23 views

Specific-length vertical padding in table (with text wrapping, alternating row colors, and specified widths)

I'm trying to create fixed-width (i.e. spanning the whole \textwidth) tables, with alternating row colors and arbitrary alignments (horizontal and vertical), that have evenly-spaced specific-length (i....
3
votes
2answers
51 views

too much vertical space after tabularx with equations

I am attempting to use tabularx to put multiple numbered equations on the same line, as suggested in this answer. MWE 1: \documentclass{article} \usepackage{tabularx} \begin{document} blah blah text ...
2
votes
1answer
43 views

How to set all titles levels of a document following strict rules?

I'm writing a document with very specific rules: Section: 14 pt, bold, uppercase Subsection: 12 pt, bold, uppercase Subsubsection: 12 pt, bold Paragraph: 12 pt Document spacing: 1.5 Space between ...
0
votes
0answers
45 views

What is the proper way of spacing in parallel text

I am facing a spacing difference in both the sides of a parallel text, i was not able to find the solution for that how to make equal spacing in both the sides. Here is my MWE \documentclass[twoside,...
0
votes
0answers
23 views

Unwanted vertical space between \paragraph objects

I have the following LaTeX code: \section{Related Work} \paragraph{Paragraph 1.} This is a very nice paragraph, it contains some words. \paragraph{Paragraph 2.} This is a very nice paragraph as well, ...
1
vote
0answers
32 views

Add spacing at the end of inline mathmode $…$

A follow-up question of my question regarding \(...\), how can I add horizontal space (preferably \,) to the end of each inline mathmode triggered by $...$? Since the $ is used to enter and exit math ...
0
votes
1answer
35 views

Remove the spacing before the itemized list

Anybody knows how I can remove the spacing before my itemized list? \begin{document} {\bf main text }\hfill{year}\\ {title}\\ \renewcommand\labelitemii{$\square$} \begin{itemize} ...
0
votes
1answer
43 views

How to add a space following a paragraph but not before a new section header?

I want to skip a line after my paragraph ends. Currently I am using \setlength{\parskip}{1em} to achieve that. But an unwanted side effect is that there is also too much space between a paragraph ...
4
votes
2answers
184 views

Set vertical spacing between two particular items

Please consider the following list: There is a $(K_n)_{n\in\mathbb N}\subseteq E$ with \begin{itemize} \item $K_n$ is compact; \item $K_n\subseteq\overset\circ K_{n+1}$; and \item $d(\...
4
votes
1answer
51 views

`\underbrace` disturbs balanced vertical spacing

How do I avoid the empty spacing above equation elements between \left( and \right)? \documentclass{minimal} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} \begin{equation}\label{...