Skip to main content

Questions tagged [vertical-spacing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
32 views

Why is the line spacing between the bullet points so low?

Why is the line spacing between the bullet points so low? I want to have the line spacing by 1.25 \documentclass[12pt]{article} \usepackage{amssymb} %for \blacksquare \usepackage{multienum} \...
tro_latex's user avatar
5 votes
2 answers
148 views

Box taking exactly N \baselineskip

I'm trying to define a memoir's \fancybreak taking a vertical space of, say, 2\baselineskip (or any other exact amount of \baselineskip). But I have a problem with the height: if I do \documentclass[...
Iacobus1983's user avatar
4 votes
4 answers
204 views

Vertical centering of math in a table

I basically have a DI table that I want to construct and I have a slight vertical centering issue in the cells. This is the code: \documentclass{article} \usepackage[pdftex]{graphicx} \usepackage{...
Mitsos YT's user avatar
2 votes
1 answer
59 views

How can I avoid that vskip after {equation} and after {enumerate} add up?

After an enumerate item, latex leaves a vertical space. After an equation, latex leaves a vertical space. If the equation is the last line in an enumerate environment, latex adds both vertical spaces. ...
KlausK's user avatar
  • 163
2 votes
0 answers
39 views

How to get equal vertical spacing between all lines of a multiline equation? And should it be done? (EDITED) [closed]

Consider the following MWE: \documentclass[]{article} % PACKAGES LOADING \usepackage[]{mathtools} \begin{document} \begin{align} f(x)&=(1/n)(x)\\ &=(1/n)\sum_{i\in N}x_i\\ &...
EoDmnFOr3q's user avatar
  • 2,343
2 votes
0 answers
41 views

tcolorbox in multicols extra vertical space between color boxes

I am currently writing checklists using tcolorbox package. For readability and space saving I want to use a 2-column format. I use a parbox to simulate a table because tabular (and derivative) do not ...
renard's user avatar
  • 762
3 votes
2 answers
96 views

`\\[len]` is ignored for rows with line breaks in `tabular` when using `memoir`

Consider the following table in my memoir article: \documentclass{memoir} \begin{document} \begin{table*}[ht] \scriptsize \centering \begin{tabular}{l p{2.5cm} p{9cm}} \...
John Doe's user avatar
  • 231
0 votes
2 answers
57 views

How do I make displaystyle math (\[\]. \begin{equation}, etc.) vertical spacing equivalent to \centering \(\)? (Also having issues with unicode-math)

Essentially what I want is for environments such as align, equation, \[\], etc. to have the same amount of space as \documentclass{article} \begin{document} Fat \centering \(Fat\) \end{document} ...
Ferrius Undermine's user avatar
0 votes
1 answer
15 views

how to reduce the space in gb4e example translations?

I'm writing a linguistics paper and I use gb4e package. For the sentence below, I don't know how to reduce the space between the two consecutive translations. Any other solutions than using \vspace{}. ...
Lee12138's user avatar
1 vote
1 answer
265 views

Colored box paragraph that stays on text grid

Is there any straightforward way to produce this kind of output with the distance between the baseline of the last line before the box and the baseline of the first line within the box as well as the ...
keth-tex's user avatar
  • 452
2 votes
1 answer
75 views

How can I vertically center the question mark on the left of this theorem-like environment?

How do I modify the following environment to make the question mark appear vertically centered (whose spacing depends on the text length)? Here is the code that produces that question box: \...
Andrew Kelley's user avatar
1 vote
1 answer
28 views

Keep itemize items in fixed position when changing slides with subitems

I have some itemize items that I want to present sequentially. I also want to discuss each item, using for that subitems. The subitems should disappear after that item is discussed. I can achieve this ...
Guilherme Fraga's user avatar
6 votes
3 answers
219 views

How can I improve the spacing after a top float?

Context I'm trying to create a macro (called here \myCommand) that separates two paragraphs and adds a different vertical space depending on the context. But I suppose this is a general problem which ...
B Legrand's user avatar
  • 433
0 votes
1 answer
28 views

Question on caption/float spacing

I have asked two previous questions on vertical spacing (First Question: Question on overlapping parbox; Second Question: Question on overlapping tabular), and I have a final related question. As it ...
zgrizz's user avatar
  • 149
1 vote
2 answers
54 views

Question on overlapping parbox

I don't understand why the following lines don't overlap properly with a parbox involved. The First Line collapses perfectly, but the Second Line does not. Of course, if parbox is set to [b], the ...
zgrizz's user avatar
  • 149
5 votes
2 answers
91 views

How to adjust spacing above table of content in memoir?

In this simple memoir table of contents, there appears to be spacing between the heading and the table of contents. That is, the vertical space between the "Contents" rule and "1 Lorem&...
Anna's user avatar
  • 837
4 votes
4 answers
232 views

Small vertical spacing glitch

I'm having a small vertical spacing issue with the following fraction: \documentclass[12pt,letterpaper,twoside]{book} \usepackage{lmodern} \usepackage{amsmath} \usepackage{tensor} \usepackage{pifont} ...
Cham's user avatar
  • 2,328
2 votes
2 answers
255 views

How to add negative vertical space after `align*` environment?

How can I add a vertical negative space immediately after an align* environment? The following attempt does not work. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} a&...
Colas's user avatar
  • 6,842
1 vote
1 answer
52 views

How can I set the spacing below a cmidrule equal to that above?

I'd like the spacing below the rules in my tables to equal the spacing above. By default, the below-spacing is smaller. First: How can I find the spacing I need to add, without trial-and-error adding ...
Anna's user avatar
  • 837
0 votes
1 answer
33 views

Add a variable to longtblr, representing a vertical distance

This is a follow-up question to Add a long text in a longtblr spanning the entire width of the table. Given the following table (a longtblr): \documentclass{article} \usepackage[a4paper,margin=1mm]{...
Ommo's user avatar
  • 849
0 votes
1 answer
78 views

Avoid the warning "What does the phrase "Underfull \hbox (badness 10000) in paragraph", while keeping the line space as using \\[<space>]

There is plenty of advice to avoid line break by \\ and use an empty line for going to the next line. My problem is that the template I am using is full of warnings of Underfull \hbox (badness 10000) ...
Abbas's user avatar
  • 73
1 vote
0 answers
24 views

tcolorbox: Figures in-between boxes prevent skips from collapsing

When a tcolorbox specifies an after skip, and a following box specifies a before skip, they both can “collapse”, e.g. if both are 1cm, the total skip will only be 1cm, not 2cm. Internally, this is ...
fefrei's user avatar
  • 1,369
4 votes
2 answers
517 views

Wide equations have too much vertical space above them

It is the same question as How can I prevent wide equation having too large vertical space?, but the answers there don't address my case: \documentclass[9pt]{beamer} \usepackage[utf8]{inputenc} \...
D.R's user avatar
  • 771
2 votes
0 answers
59 views

How can we ensure that the spacing before or after a \vbox is correct when using \addvspace?

How can we ensure that the spacing before or after a \vbox is correct when using \addvspace? In the following MWE, the two \addvspace{10pt} which follow each other behave like two \vspace{10pt}. The ...
B Legrand's user avatar
  • 433
3 votes
4 answers
286 views

In(de)finite number of Boolean arguments

I would like to know if it is possible to program a function that would accept a given symbol an infinite number of times. The application I have in mind is the following. I would like, if possible, a ...
Vincent Krebs's user avatar
0 votes
0 answers
45 views

Controlling the vertical spacing between two lines

I would like to have the ability to control the vertical separation between #2 and #3. What can I do ? I do not intend that this functionality includes any nested lists or centred environments, that ...
Veak's user avatar
  • 1
1 vote
1 answer
64 views

\topsep in nested list ignored

I don't know if this is a LaTeX problem or an enumitem problem, but it seems that \topsep (and similarly \partopsep) is ignored in nested lists if the list starts in vertical mode. Consider the ...
Gargantuar's user avatar
  • 1,134
3 votes
1 answer
80 views

Too many sections in a chapter cause large vertical spaces between paragraphs

I am trying to write a chapter which has a lot of sections. At a certain amount of sections in a chapter (exact number depends on top/bottom marings) the paragraphs in the text are split by very large ...
pbit24's user avatar
  • 133
3 votes
1 answer
155 views

Too much space between a float and the section that follows it

When a section follows a float, the vertical space between the two elements is too large, as \intextsep is added to the spacing introduced by \section. Generally speaking, this is also true for other ...
B Legrand's user avatar
  • 433
4 votes
2 answers
189 views

Different spacing of only superscript vs superscript and subscript + mathrm vs operatorname

I'd like to have superscript terms (gt) on the same line in the whole equation, but after I write the equation: $\mathbf{T}^{\mathrm gt}=\{\mathbf{T}^{\mathrm gt}_1,\mathbf{T}^{\mathrm gt}_2,\ldots,\...
Wilk's user avatar
  • 100
0 votes
1 answer
57 views

Cross-Referencing Label Affects Vertical Spacing

Consider the code with \label{L} (immediately above the second tikzpicture) commented out: \documentclass[12pt]{book} \usepackage[paperwidth=5.5in,paperheight=8.25in]{geometry} \textwidth=4in \...
DDS's user avatar
  • 9,456
3 votes
1 answer
89 views

What am I doing wrong with vspace

In the MWE below (LuaLaTex), why \vspace*{1pt} causes such a huge vertical space? \documentclass[12pt, oneside]{book} \usepackage[showframe, paperwidth=30pc, paperheight=30pc, margin=5pc]{geometry} \...
blackened's user avatar
  • 4,191
3 votes
1 answer
87 views

Wrong line spacing inside new environment

I need a new environment with different font size, e.g. \large. I'm doing something like this MWE: \documentclass{article} \usepackage{lipsum} % dummy text \usepackage{setspace} % for a 'forced' ...
Juan Castaño's user avatar
2 votes
0 answers
37 views

Spacing between tcolorboxes

I would like to make labels for printing but I would like to have bigger spacing (vertical and horizontal) between the labels. I'm working with tcolorboxes and here's my code : \documentclass[a4paper, ...
TexDuinoCpp's user avatar
3 votes
1 answer
70 views

Why is the spacing above equation larger than that below, when the \belowdisplayskip = \abovedisplayskip?

Both \abovedisplayskip and \belowdisplayskip are set to the default of 10pt plus 2pt minus 5pt, but I can see that display equations are not centered between paragraphs. What is the reason for this, ...
Anna's user avatar
  • 837
0 votes
1 answer
41 views

How to Increase the Vertical Gap Induced by the Linebreak Command on an Ad Hoc Basis?

Consider the code: \documentclass[12pt]{book} \usepackage[showframe,paperwidth=5.5in,paperheight=8.25in]{geometry} \textwidth=4in \textheight=3.50in \begin{document} \thispagestyle{empty} \noindent{\...
DDS's user avatar
  • 9,456
2 votes
0 answers
54 views

Vertical Spacing behavior for theorems directly under sections

I'm trying to use the Legrand Orange template in Overleaf. I cannot figure out why the vertical space under a section is ignored if a theorem environment is directly under it, but respected if there's ...
rafa's user avatar
  • 21
1 vote
1 answer
72 views

ntheorem with thmmarks causes strange vertical spacing with amsmath equation*

I experience a strange spacing before \begin{equation*} when using amsmath and ntheorem with the thmmarks option. It is associated with using leqno and fleqn together as general setting. How do I fix ...
PeterH's user avatar
  • 11
1 vote
1 answer
51 views

How to add vertical spacing that is allowed to stretch for layout?

I've got two images above each other in a figure environment, with \vspace{1cm} for spacing between them. I believe that if I had used two separate figure environments, LaTeX would have been able to ...
Anna's user avatar
  • 837
3 votes
2 answers
113 views

Large vertical spacing in denominator above \rho

The vertical spacing above rho in the denominator here is off. I'm not sure if it's caused by the descender in the numerator, or if that only exaggerates the issue. I think both 2/μ and μ/2 look ...
Anna's user avatar
  • 837
2 votes
1 answer
74 views

A question on the vertical distance between two environments of the same type

I defined a new environment for the exercises in my book and it worked well until this point where the distances between two exercises are not the same as follows: Here is my MWE: \documentclass[12pt,...
trequartista's user avatar
  • 1,890
1 vote
2 answers
78 views

How can I get a \vfill after every \item in an enumerate environment that includes a \newpage?

I'm trying to create a notes packet for my class, which is basically a long list of questions, 2 or 3 to a page, with space after each question where the students can work out solutions. I'm using the ...
CarneSeca's user avatar
1 vote
1 answer
43 views

Correct line spacing when changing font size without causing the end of the paragraph

Consider the following code: \documentclass[12pt]{article} \usepackage{xcolor} \usepackage{lipsum} \begin{document} \lipsum[1]% \begingroup% \tiny\color{red}% \lipsum[2]% \endgroup% \lipsum[3]% \end{...
Vincent's user avatar
  • 5,317
0 votes
1 answer
34 views

Deleting vertical space between figures

Please consider this file: \documentclass{article} \usepackage{tikz} \begin{document} \begin{center} \begin{tikzpicture}[scale=6] \draw (0,0)--(1,0)--(1,1)--(0,1)--cycle; \end{tikzpicture}% \...
José Carlos Santos's user avatar
0 votes
0 answers
24 views

Newline Spacing in Tabbing Environments

In my document I have use a tabbing environment of the form: \begin{tabbing} \qquad\qquad\quad\= \kill $i$ \> Imaginary unit $\sqrt{-1}$\\[1.5pt] $\cos x$ \> Cosine\\[1.5pt] $\sin x$ \> ...
Freddie Witherden's user avatar
2 votes
1 answer
69 views

vertical space after a list but only before a new paragraph [duplicate]

How to insert a \parskip after lists, but only before a new paragraph? In the example below, the desired output would be no vertical space after the first list and vertical space after the second list:...
Ernest A's user avatar
  • 2,773
3 votes
2 answers
92 views

Fail to add one-line space before and after memoir's adjustwidth environment

I'm trying to create an environment based on memoir's adjustwidth environment that adds a one-line vertical space before and after. But I can't seem to make it work. Below is my best attempt, but as ...
Fredrik P's user avatar
  • 1,418
0 votes
1 answer
48 views

Avoid vertical space in absolutelynopagebreak environment

I like the idea of absolutelynopagebreak environment and I'd like to use it for wrapping theorem-like environments when needed (without modifying those environments). It does work, but the problem is ...
Robertas Vilkas's user avatar
2 votes
2 answers
103 views

Consistent vertical spacing in cases environment with multirow cases

I'm having trouble figuring out how to achieve some sort of consistency when I work with vertical spacing in cases environments where the cases themselves have multiple rows. In the second version of ...
Fredrik P's user avatar
  • 1,418
1 vote
1 answer
112 views

How to prevent vertical spacing accumulation?

By "spacing accumulation", I mean the resulting spacing when two \vspace{} commands meet. For example, let's say you set an after-skip for the figure environment and a before-skip for a ...
Daniel Vartanian's user avatar

1
2 3 4 5
9