Questions tagged [vertical-spacing]
The vertical-spacing tag has no usage guidance.
361
questions
1
vote
0
answers
30
views
Suppress vertical space at beginning of macro when there is no preceding paragraph
I want to create a variant of the itemize command for Beamer that spreads the items vertically. This should increase the space between items as well as to preceding text.
With other words, I want a ...
2
votes
4
answers
86
views
Ensure Vertical Spacing between Successive tikz pictures
I need to generate a figure comprising 3 successive tikz pictures with vertical spacing in between. I've tried the following code:
\begin{figure}[h]
\caption{Cross-Validation with Three-Segmented ...
0
votes
0
answers
19
views
Inconsistent spacing in itemize environment inside tikz node inside center environment
I have noticed inconsistent spacing when using itemized lists in a TikZ node when the tikzpicture is inside a centering environment.
I have the following code:
\documentclass{memoir}
\usepackage{tikz}
...
1
vote
1
answer
45
views
Vertical spacing around plain display math vs `amsmath` environments such as `gather`
Let us have a look at the following minimal example:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
This is the first line.
% \begin{gather*} x^2 + y^2 = z^2. \end{gather*}
\begin{...
11
votes
3
answers
1k
views
Should one ever use \bigskip?
I am wondering whether one is ever justified in using \bigskip in LaTeX (specifically in overleaf)? I have recently drastically reduced my use of it, due to my teacher's recommendation. But I tend to ...
0
votes
0
answers
12
views
Define a heading style command, which ignores leading white space if it is used at the beginning of an environment
I want to define a kind of heading, that i can use in a shaded environment. I want this "heading" have a bit of leading vertical space, but would like to eliminate this space if the command ...
0
votes
1
answer
23
views
Slightly bigger line spacing after introducing vertical adjustment
I use snotez package to produce margin notes. I found that the vertical space between the first and the second lines became a little bit larger when I used vertical offset to shift the margin note.
...
-2
votes
2
answers
47
views
how to remove small amount of space between two images [closed]
My code is just two vertically placed images:
but it outputs like this:
I tried \vspace{-1pt} and \vspace{-\lineskip} but both messed things up. Does anyone know why this space is there?
1
vote
0
answers
17
views
Expex \vskip before example does not disappear at a page break
I have a book document with \flushbottom. I use expex for linguistic examples. When an example is the first item on a page, the previous page ends with some spurious whitespace, as can be seen in the ...
6
votes
1
answer
226
views
Would it make sense to use the "plus" and "minus" components of \baselineskip?
According to latexref.xyz:
The \baselineskip is a rubber length
but also
The \baselineskip’s value is reset every time a font change happens and so any direct change to \baselineskip would vanish ...
4
votes
1
answer
87
views
Removing space generated by box of multiline sum subscript
I have the following equation
\begin{equation}
\begin{split}
\sum_{\mathclap{\substack{T_i \in \\
\{T_1,T_2, T_4,\\
T_5,T_6,T_7\}}}} T_i W^i_\mu &\equiv T_{+}W^+_\mu + T_{-}W^-_\mu +\\
&+ T^\...
1
vote
1
answer
26
views
How to remove extra whitespaces after paragraphs when adding Arabic text in IEEE template?
I am using \raggedbottom for my document. For some reason, when I add Arabic text between English text, it thinks that there isn't enough space in the end so it moves the text to another page.
I tried ...
0
votes
0
answers
34
views
vertical "justification" of tcolorboxes in a multicol environment
I'm making exercice sheets with breakable tcolorboxes and multicols.
When a box breaks, it goes as bottom as possible in its column, which is perfect. However, it's not the case for the boxes who don'...
1
vote
1
answer
31
views
caption package: vertical space at top of page
I include pics in my document using just:
\begin{center}
\includegraphics{...}
\end{center}
However, I want captions with the captions package and correct hyperlink anchors, so I end up with ...
2
votes
1
answer
31
views
Vertical spacing inconsistencies around equations
This seems to be a topic of many questions on here already, but no single answer seems satisfying. I am working with the document below and would like the vertical spacing around each equation to be ...
0
votes
1
answer
31
views
\raggedcolumns won't work within Exercise environment
I am writing a document that has a number of datasets presented in pairs, of different lengths, which I would like to have the same vertical spacing (and thus possibly white space at the bottom of one ...
3
votes
1
answer
46
views
Combining \vfill and \vskip at end of page results in blank line(s)
I want to define an environment, that uses \vskip to put some space before and after. Usually it will be used in the normal text, but sometimes I want to push to the bottom of a page with \vfill. When ...
0
votes
1
answer
32
views
Issues with spacing writing answer boxes/lines for an exam between items in enumerate
I am writing an exam and I'm having some spacing issues with creating answer lines/rules between items in enumerate. If I use \vfill\hfill in between the items, sometimes it does not print the answer ...
1
vote
0
answers
23
views
Too much spacing between text and equations with the twoside option
I am writing a thesis and I have a problem with the spacing between text and equations. In particular, this problem occurs when I use the twoside option in the specification of the document class. I ...
1
vote
2
answers
40
views
Too much vertical spacing after `\hline` in `array` environment
I have the following equation system:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{flalign*}
\begin{array}{lllclllr}
& 2x &-& 9y &+& 5 &=& 0\\
...
0
votes
0
answers
33
views
Is there other ways in writing this macro (centered dotfill)?
I'm using a little macro found on Stack Exchange to define a vertically centered dotfill, but I don't understand it at all and it feels like an "hack" to me. Is there other ways in writing ...
0
votes
0
answers
37
views
Inconsistent vertical spacing beetwen multiple tcolorbox environment
I am using a template to create an E-pub from this link
In this template, some environments are defined using tcolorbox, but I have found that the vertical space is inconsistent when using multiple ...
4
votes
3
answers
153
views
How do I set the distance between equations to be equal to the distance to the surrounding text?
I would like to display a set of equations divided into subsets, where the spacing between two subsets is the same as between the first line and the text above (and between the last line and the text ...
2
votes
1
answer
91
views
Vertical spacing in KOMA
This question was revised on the basis of the comments.
I use the KOMA script to create the style of my textbook based on the instructions of the typesetter (who never used LaTeX but has designed many ...
4
votes
1
answer
58
views
Vertical space in table (not arraystretch)
I want a vertical space in one row of a table without stretching out all rows of the table. The suggestions I see all involve \arraystretch{}, but I want the text-only row to still be small.
\...
3
votes
1
answer
38
views
Achieving consistent item separation in itemized list with and without tcolorbox in LaTeX Beamer
How can I achieve consistent separation between each item in a list, regardless of whether a tcolorbox is used or not?
I want to ensure that the vertical spacing between items remains the same, ...
1
vote
1
answer
27
views
How to bring entire title area up?
Here is an example:
\documentclass[10pt,a4paper,sans]{moderncv} % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', '...
1
vote
0
answers
37
views
Vertical space that is ignored at bottom of page or column
How can I get a vertical space that behaves at the end of a page or column like \vspace{} does at the beginning of a page, that is, is ignored. And how would I get a vertical space that combines the ...
1
vote
2
answers
48
views
How can I align vertically/on top tikz pictures (circuitikz) in minipage/figure/tabular environment?
I am trying to align vertically this 3 circuits. I would like to align the on top, instead of bottom part (they automatically align bottom with that code).
Also, if possible, to know how to align the ...
2
votes
2
answers
73
views
How to add vertical space inside a \framebox
Consider the MWE below. I would like to add some vertical space above the blue square, inside the framebox (indicated by red arrow).
Why is \vspace ignored? Which command should I use?
MWE:
\...
3
votes
1
answer
54
views
Adding vertical whitespace after equation
\documentclass[12pt] {article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{booktabs}
\def\baselinestretch{2.0}
\setlength{\textwidth}{18cm} \setlength{\textheight}{21cm}
\setlength{\...
0
votes
0
answers
29
views
how to reduce vertical space before parts and increase chapter size in table of contents
currently writing a Geometry textbook and the start of the table of contents looks like this:
With this code, using the tocloft package for my TOC:
Edit: Here is what the beginning of each chapter ...
2
votes
2
answers
85
views
How to adjust a proof tree using bussproofs?
I used bussproofs.sty to create this natural deduction rule:
Source:
\documentclass{beamer}
\usepackage{bussproofs}
\begin{document}
\begin{frame}
\AxiomC{$A\vee B$}
\AxiomC{[$A$]}
%...
1
vote
1
answer
51
views
Adjust intextsep for wrapfigure only (continued)
In Adjust intextsep for wrapfigure only, @Peter Grill provided an option to modify \intextsep for wrapfigure only and leave figure unaffected.
However it does not really work for me: as soon as a ...
0
votes
0
answers
26
views
How to remove extra space at the bottom introduced by includestandalone
I am trying to move a table to a standalone file (s.tex) in my LaTeX document (a.tex). However, I realize that when I use \includestandalone{s}, LaTeX includes an extra vertical space after the table (...
1
vote
0
answers
25
views
memoir: Add "part space" before backmatter chapters
I would like the vertical space before the backmatter chapters in the table of contents to be the same as before a part. I would have thought that the code below would have resulted in this, but the ...
1
vote
1
answer
33
views
Reducing vertical space in `align` environment locally
I wanted to reduce the vertical space between text and the first line in align* environment locally. But setting \setlength{\abovedisplayskip}{-28pt} allows it to work globally (I think) and that's ...
0
votes
1
answer
79
views
Strange vertical spacing in tcolorbox after center
This is a sequel to this question, which was partially resolved and it was suggested there that I start a new question.
I've created a box with tcolorbox, which should not float and I want to attach a ...
4
votes
1
answer
212
views
Defining a vskip that possibly becomes vfill
I hope this is not a duplicate; I tried to search around and didn't find anything, but perhaps I used the wrong keywords. I'm using Plain TeX and have the following defined:
\newskip\hugeskipamount
\...
0
votes
1
answer
19
views
prevent expression under \min from affecting vertical space below line
In a two-line align environment, I am trying to put a math expression under a \min on the top line without it affecting the vertical spacing between the top and bottom lines. I started with
\begin{...
3
votes
1
answer
66
views
Different space above and below mathtools \intertext
Is there a command like \intertext or \shortintertext that has different vertical space above and below the "intertext"? It would be nice in situations such as a few of those in the example ...
0
votes
0
answers
41
views
How to undo the extra vertical gap at the start of an enumitem enumerate but maintain elasticity?
Let's say we have a piece of text that introduces some vertical spacing of its own at the end (say, the head of some environment). After that space, an enumeration comes, which also introduces a ...
1
vote
0
answers
21
views
Adjusting the Vertical Spacing Between Consecutive Lines with a Scaled Typewriter Font [duplicate]
Consider the code
\documentclass[12pt]{book}
\usepackage{scalefnt}
\begin{document}
\thispagestyle{empty}
\begin{description}
\item {\fontfamily{lmvtt}\selectfont{No one should be ashamed to admit ...
1
vote
1
answer
50
views
Issues with vertical spacing and \addcontentsline
The code \vskip\baselineskip\addvspace{0.5\baselineskip} produces a vertical space equal to \baselineskip, as it should.
However, when I add \addcontentsline in the middle, I get a bigger space:
\...
1
vote
1
answer
97
views
Nice spacing of equation in tcolorbox
I'm using tcolorbox to highlight equations in my document. Here's a typical use (I want the whole thing centered and pulled in a bit from the margins, so I start with a center environment, then ...
0
votes
0
answers
71
views
With svmono, how to introduce more horizontal space between a theorem head and the theorem contents without occasionally introducing vertical space?
Continuing http://topanswers.xyz/tex?q=3768 , for all the theorem-like environments in our document, we wish to have a little bit more horizontal space (than the default space) separating the head of ...
0
votes
1
answer
43
views
svmono: introduce more horizontal space between a user-given theorem name and the theorem contents without occasionally introducing vertical space?
Continuing How to suppress vertical space between theorem heads and enumitem environments? (as opposed to them, we use a Springer class here), for all the titled theorem-like environments in our ...
3
votes
2
answers
69
views
When changing \arraystretch and nesting tabular-environments, vertical gaps occur in the resulting table. How do those come into being?
Minimal compilable example:
\documentclass{article}
\renewcommand{\arraystretch}{1.5}
\begin{document}
\begin{tabular}{|@{}c@{}|@{}c@{}|}
\hline
\begin{tabular}{c|c}A&B\end{tabular}&\begin{...
2
votes
1
answer
33
views
Frontespizio package: how to set names height
I'm writing my master's thesis and I'm having troubles with frontespizio package, since it puts names at a default height that I don't know how to change. I would like to be able to move the names at ...
5
votes
1
answer
100
views
Change color of a paragraph containing aligned equations
I would like to color a paragraph in blue. As my text contains some equations, I followed the advice given in this answer. However, I get extra vertical space when the paragraph ends with an align ...