Questions tagged [vspace]
The vspace tag has no usage guidance.
140
questions
0
votes
1
answer
44
views
Fill vertical space before paragraph
I'm working with small pages and I'll have one, two, or three short paragraphs per page.
I would like these paragraphs to be vertically centered and approximately-evenly spaced.
I am close with \...
2
votes
2
answers
55
views
Space figure captions as the "normal" text
I am preparing a document of class article in LaTex. I am required to include the figure captions, but provide the figures themselves as separate image files without incorporating them into the ...
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 ...
0
votes
0
answers
23
views
Whitespace under tabularx in combination with vspace*
I am using the tabularx package to create some variable definitions in 3 columns. I am trying to add some space under each line with the \vspace* command. These are created automatically by an ...
5
votes
2
answers
192
views
"\vspace{-number cm}" between "subfigure" and "subcaption" works in back direction in LaTeX
Sometimes I need to reduce the space between sub figures and sub captions, so I insert \vspace{-number cm} to do that. But, it will increase the space.
\documentclass{article}
\usepackage{lipsum,...
2
votes
1
answer
56
views
Fill empty space inside a tcolorbox
I have two images side by side in a tcolorbox, one horizontal and one vertical with an empty dotted line below each one. I would like to "push down" the line in the second (right) image so ...
2
votes
2
answers
70
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:
\...
0
votes
1
answer
41
views
vertical space inside multicols environment
I'm trying to get a vertical space inserted after some text inside a multicols environment, such that the next body of text (in bold) sits at the bottom of the page. To make this concrete, imagine '...
0
votes
0
answers
10
views
How can I change the space between two \cvmetaevent? [duplicate]
How can I reduce the space between two \cvmetaevent? The codes are the following
%----------------------------------------------------------------------------------------
% CV META EVENT
%----------...
0
votes
1
answer
49
views
vertical alignment between two columns with \vspace's
i'm using a \vspace to make empty lines. I need to find a way so that the space between two lines separated by such an empty line equals the space between two lines with one non-empty line in between. ...
1
vote
1
answer
73
views
How to insert a consistent vertical space after tikzpicture environments globally
I want to know how can I add a global macro in the preamble that sets a vertical space after each tikzpicture in the document, instead of explicitly repeating the \vspace command.
0
votes
0
answers
24
views
Line spacing help, expl3
I have a macro makeentry which I cannot get to behave as I would expect. Its pretty simple, it takes previously input user data and formats it. However I cannot get the macro to respect my wishes for ...
1
vote
1
answer
65
views
Tikz node vertical alignment & titles added to exercises
My question relates to sgmoye's answer to the problem posed in Inspired exercise Sheet from Indesign. I'd like to expand on this answer by having the exercise number vertically aligned with the word '...
2
votes
1
answer
46
views
Enumerate within a multicolumn cell using tabularx
I would like to add a subitem with an indent to an item inside a table. I have shown a working example. As you can see, the subitem overlaps with the horizontal line of the following cell. The sub ...
1
vote
2
answers
68
views
How can I eliminate the space between two lines on the title page? I have tried using the Vspace command, but it doesn't work [closed]
\documentclass[12pt, twoside]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[English]{babel}
\usepackage[width=17cm,height=22cm]{geometry}
\usepackage{fancyhdr}
\usepackage[...
1
vote
1
answer
102
views
How to control caption position within subfigure?
Consider the following code
\begin{figure}[h!]
\centering
\begin{minipage}{\linewidth}
\centering
\begin{subfigure}[b]{.4\textwidth}
\centering
\includegraphics[width=\...
0
votes
2
answers
54
views
TikZ: Draw under base line and keep the normal spacing between lines
Problem
I want to achieve a command for tied lyrics like in lilypond. Now I have it nearly working, but the downside is, that the tikz picture effects the spacing between the lines, which adds too ...
1
vote
0
answers
39
views
Anti-vspace* command? [duplicate]
\vspace{} will add space only if the subsequent text is not the first thing on the page. \vspace*{} will add space in either case. Is there a command that will only add space if the subsequent text is ...
2
votes
1
answer
59
views
how to write equation in double column?
I created two columns in LaTeX. But the equations are overflowing from the column. How can I fit the equation into a single column?
\begin{multline}
C(x,y,z,t) = \frac{ (\pi t)^{-3/2} m_T}{8 (K_x ...
0
votes
0
answers
19
views
Enumerate spacing changes discontinuously [duplicate]
I've got a problem with the spacing management in enumerate.
Here are the packages in my main .tex document:
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{commath}
\usepackage{amssymb}
\...
0
votes
0
answers
23
views
How can I match every paragraph from two columns into the same line vertical height or space? [duplicate]
I'm writing a memoir that is mostly doubled column. The left column, is in one language (source) and the right column (target) the translation of the left's into some other language. I need to be ...
3
votes
1
answer
88
views
Beamer Table of Content is broken when using \framebreak
When using \framebreak in beamer TOC I get a ugly formatting in the next frame.
My TOC is too long, so I decided to split it up.
The first page renders well. The space before the first section thats ...
3
votes
1
answer
315
views
Inserting half a \vfill
If a page contains multiple \vfills, the space space is distributed equally between them. That means if you want one-third of the available space above some text and two-thirds below it, you can put \...
0
votes
0
answers
20
views
Vspace creates huge jump [duplicate]
I have a bizarre problem with the arrangement of a figure and table. With the following code, I get the figure and table immediately after each other with a very small gap:
\begin{figure}
\...
1
vote
1
answer
123
views
Beamer: how to move whole "frame content" a bit left?
I am pretty new to beamer, and I am trying to move the whole "frame content" a bit left, for example, -1em. I am trying to use \vspace{-1em}, but it doesn't work, however, \hspace{-1em} does ...
1
vote
2
answers
159
views
Can't remove space before title with `titlesec` package
I've set all the spacing arguments to 0 but still can't get rid of the space before the chapter title. There's enough top margin already for an a5 size booklet. Here's the mwe:
\documentclass[openany,...
0
votes
1
answer
96
views
Defining numerical variables in latex preamble
In my manuscript, I need to specify the vspace command in a few places. I wonder if I can define numerical variables for this purpose in an article document class. For example, instead of typing \...
2
votes
2
answers
320
views
fbox without vspace
I am going to give a definition of a problem as follows.
\newcommand{\defproblem}[3]{
\vspace{4mm}
\noindent\fbox{
\parbox{0.98\textwidth}{
#1 \\
\textbf{...
2
votes
1
answer
55
views
LATEX : How keep multiline text together after vertical line?
I am creating a list of variables with their descriptions. On the left side, is the variable name and on the right side is the variable description. When the text description is one line, the text is ...
0
votes
1
answer
56
views
How can I automatically overwrite a wrapped line?
This is probably the opposite of what most people are going for but I'd like to let the text of my lines overwrite themselves. As an example, if I have:
\documentclass{article}
\begin{document}
These ...
1
vote
1
answer
62
views
Customising TOC of Bergen theme in Beamer
I am creating a presentation using Bergen theme. Following is my TOC page. The sidebar contains the sections and the main text area contains the subsections.
I have a couple of more sections to ...
0
votes
2
answers
121
views
How do I remove this offset from the top?
\documentclass[14pt,a4paper,oneside]{extarticle}
\usepackage[left=30mm,right=15mm,top=20mm,bottom=20mm,bindingoffset=0mm]{geometry}
\setcounter{page}{2}
\renewcommand{\baselinestretch}{1.5}
\...
3
votes
1
answer
30
views
How does addvspace handle rubber components?
My understanding is that \addvspace defines "addition" as maxᵢ{vspaceᵢ} (fixed).
What happens to the stretch and shrink? Here I'm adding a large inflexible vspace to a small super-stretchy ...
1
vote
1
answer
45
views
Line spacing broken (bottom line falls below the frame or even empty) possibly because of the unit of measure of \vspace and images
Anytime there's an image on page or otherwise not just pure text (which, of course, is spaced by \vspace command) the line spacing gets corrupted.
Take a look at MWE below to see. Note how on Page 1 (...
0
votes
1
answer
78
views
How to merge cells made by \parbox vertically
\documentclass[a4paper]{article}
\usepackage{xcolor,pgf,etoolbox}
\usepackage{geometry}
\geometry{showframe}
\geometry{left=1cm,right=1cm,top=1cm,bottom=1cm}
\parindent0pt
\begin{document}
\fboxsep0pt
...
1
vote
0
answers
112
views
Stretch the glue within a breakable tcolorbox when \flushbottom is used
This question is related to my other one. In that question, I describe my attempt to replace tcolorbox with another frame drawing technique, which does not introduce problems described below, but ...
0
votes
1
answer
130
views
Non-breaking vertical space between a table and a block of text
I have a very specific requirement to put a framed block of text at the bottom of the last page but never to be alone on a separate page. Currently I use a \vspace*{\fill} followed by a one-cell table....
3
votes
2
answers
73
views
\vspace* adds unwanted page in amsbook
Background: I'm using the amsbook environment, and the title created by \tableofcontents starts near the first quarter of the page by default. I've been trying to move it up by placing a \vspace{-3in} ...
1
vote
2
answers
75
views
Different vertical spaces around equations of different height in the achemso document class
I would like to use documentclass achemso to format my Supplementary Material. However, this class puts different vertical spaces around equations of different height. In the following example:
\...
2
votes
3
answers
984
views
More vertical space between rows in array
I would like to have a little more space between the rows of an array for better clarity. I tried \vspace{} at the end of the rows but LateX ignored it. I can accomplish something close to what I want ...
0
votes
1
answer
619
views
\setlength{\belowcaptionskip} is not the same as \vspace
Following my previous question, I noticed that adding
\vspace{-0.5\baselineskip}
right after the graphics insertion, does not gives the same exact result when comparing the output with
\setlength{\...
1
vote
2
answers
544
views
Subtitle after the chapter title
I am trying to create a subtitle using the following:
\newcommand\Chapter[2]{
\chapter[#1: {\itshape#2}]{#1\medskip\smaller\itshape#2}
}
But, the vertical space is a bit big. I tried \smallskip, ...
1
vote
1
answer
357
views
Having trouble fitting Title Page onto a single page
I was previously using Overleaf but since I don't want to pay to get more compiling time I decided to start using TEXMaker with MIKTex on my desktop instead.
I had a nice-looking title page, with ...
1
vote
1
answer
596
views
\vspace not working with negative values
I have a list(enumerate) which is followed by a rule. I want to make the rule move closer to the list. I usually do this with \vspace but for some reason, it doesn't work this time. The rule moves ...
0
votes
1
answer
69
views
How do I implement the unstarred vspace option in the solution environment in exam class?
I understand that the exam class has an option to use \unstarredvspace so that the space will be deleted if it occurs at the top of a page. Right now the default is a \vspace* such as \begin{...
3
votes
4
answers
120
views
Better \vspace{} and dashed line in array-environment
In this code
\documentclass{book}
\usepackage{mathtools}
\usepackage{stix}
\usepackage{multicol,multirow}
\newcommand{\Tonde}[1]{\left(#1\right)}
\newcommand*{\Scale}[2][4]{\scalebox{#1}{$#2$}}%
\...
3
votes
2
answers
385
views
How to Insert Blank Line(s) in a Tikzpicture; Ordinary Methods Not Working Properly
I have a tikzpicture:
which was produced by the following code.
\documentclass{book}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{color}
\usepackage{tikz}
\newlength\drop % To drop the ...
2
votes
1
answer
87
views
How to Add a Baselineskip at the Beginning of a Paragraph in a Certain Tikzpicture
The question posted here is an extension of the one posed in Looking to Insert a Figure and Wrap It Within a Customized Tikzpicture
Consider the following code
\documentclass[border=1cm]{book}
\...
0
votes
1
answer
73
views
Better vertical spacing between boxes and chapter in tableofcontents
About this code, I'd like to personalize spacing between boxes and chapter in tableofcontents
\documentclass{book}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[a4paper,top=3cm,...
0
votes
1
answer
575
views
Why negative \vspace skips less space than specified in LaTeX
I have code like this:
\documentclass{article}
\usepackage[a4paper,left=0pt, right=0pt, top=50pt, bottom=0pt]{geometry}
\usepackage{show frame}
\begin{document}
\vspace*{-50pt}
Hello!
\end{document}
...