Questions tagged [vspace]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6
votes
1answer
4k views

\vspace doesn't work

This is a very simple document. Yet, \vspace doesn't work: \begin{titlepage} Dies ist ein Test. \vspace{5cm} Dies ist ein Test. \end{titlepage} Whats wrong here?
6
votes
2answers
120 views

Space above signature line

I'm trying to make a signature block which has enough room above the signature line for a stamp. But the indicated \vspace seems to have no effect. How can I reserve 3cm above the \hline? \...
4
votes
2answers
154 views

Set \bottomrule of two uneven tables to same height

I have two parallel tables not equal in height. I'd like to set \bottomrule of the shorter left table to the same height as the right one. Is this even possible without rearranging the rows? Using \...
3
votes
2answers
156 views

Why \vspace{-\lineskip} removes space after tikz picture although it stands before the picture?

\documentclass[tikz]{standalone} \usepackage{amsmath} \usepackage{tikz} \begin{document} \begin{tikzpicture} \path node[inner sep=0,draw,text width=40mm] { \parbox{\hsize} { \...
3
votes
1answer
776 views

vspace doesn't work properly

I am using \vspace{3mm} for separating the paragraphs in my article (\documentclass[12pt, a4paper]{article}). But most of the time it doesn't work properly. Sometimes it just puts the first few words/...
3
votes
2answers
137 views

Using \vspace togehter with \hspace to place a citation over an image

I have an image I would like to don with a citation. However, placing the citation on top of the image has proven to be a bit of a challenge. Simply placing the citation after the image with \...
3
votes
3answers
475 views

Why does \setlist{nosep} doesn't work in a tabular environment?

I want to have nice tight lists with no spacing before, after or in-between the items. I managed to do this according to the answer from this question: How to remove the whitespace BEFORE itemize/...
3
votes
1answer
175 views

How do I make all \vspace in a document visible?

I have various \vspace commands spread in a large document. Can I make them all visible by re-defining it somehow in the preamble? I have positive and negative arguments to it. I imagine negative ...
3
votes
1answer
128 views

Center text vertically on page with \vspace*{\fill} — More space at top of the page

I want to center text on a page vertically and horizontally. I took the answer from here https://tex.stackexchange.com/a/2327/110351 and created the following document: \documentclass[pagesize=auto, ...
2
votes
2answers
191 views

Give height to all lines from top

I try to make a cover like below. All lines have a specific height value. When i use commands below, line height ruins everything. Because, all lines have their own heights. \begin{titlepage} \...
2
votes
2answers
77 views

latex: How to typeset many headings with no bodies? (After about 20 they don't fit on a page, and latex is not creating new pages for some reason)

I have a document (I use the 'article' class, but I cannot guarantee that, since the users may override it.), which only consists of headings of various kinds (\chapter, \section, \subsection, \...
2
votes
1answer
161 views

Negative \vspace* too small

\documentclass{article} \usepackage[showframe, nohead]{geometry} \begin{document} \vspace*{-3em} \rule{3em}{3em} \end{document} Why does the rule protrude into the text area? As a ...
2
votes
2answers
56 views

Why vertical-space generated between `center` environments is always `10pt` (regardless of font size) and why it requires `\vspace{-20pt}` to remove?

First confusion I have is that space generated between center environments is always 10pt regardless of global font size. Because interline spacing should depend on the font size but in this case it ...
2
votes
1answer
35 views

filling a vertical space in beginning of paragraph

I tried the following \linespread{1.3} \documentclass[12pt]{report} \begin{document} \paragraph{Title Detection Computing} \vspace{5mm} Cloud smart alert correlation in Azure Security Center (...
2
votes
2answers
207 views

How to get rid of (or make even) vertical space above and below math mode (`\[…\]` and `\begin{equation}`)?

I have difficulty removing spaces (or making them even, or setting them to custom values) above and below vertical math mode. This is a re-write of the previous question whose code contained hrule's ...
2
votes
1answer
169 views

scrbook no chapterheadstartvskip for unnumbered chapter

I am writing a document using the KOMA-Script scrbook class. I am using a custom chapter style and a \chapterheadstartvskip. The chapter number is printed as a tikz overlay in the resulting whitespace....
2
votes
1answer
615 views

Vertical space between description label and first line

I'd like to create this vertical space globally using enumitem. The key style=nextline pushes the item content to its own line as I want, but I'd like some added vertical space of my choice. Here's ...
2
votes
1answer
143 views

Different vertical spacing for beamer slides

I am preparing some slides with beamer. The issue is that, it seems the \frame command treats things differently. That is, if the subsequent stuff is normal text or itemized environment, spacing is ...
2
votes
1answer
484 views

How to create vspace after the first line without an indent

I am brand new to LaTeX, and I am quite frustrated at my inability to use the \vspace command after the first line without this weird indent on the first line. Here is my first attempt at creating ...
2
votes
1answer
2k views

How to align figures vertically within a minipage?

I'm having trouble to define vertical spacing within a minipage, as \vspace seems to behave in a special way within it. For instance, in the example below I'd like to set the vertical spacing between ...
2
votes
1answer
435 views

How to create vertical space, which has a minimum, and is stretchable to \vfill containing the minimum?

How would one create multiple occurrences of vertical space on a page in such a way, that each of them had an individual minimum amount of space that would, for each occurrence, be stretched to fill ...
1
vote
2answers
66 views

Itemize in TabularX: How to remove new line before items?

Consider the following Minimum Working Example (MWE): \documentclass{article} \usepackage{enumitem} \usepackage{tabularx} \begin{document} \begin{tabularx}{\textwidth}{| p{2cm} | p{2cm} |} ...
1
vote
2answers
74 views

How to center a text vertically, if it isn't the only line?

\vspace*{\fill} works perfectly, if there's only one line. Let's imagine I have the following text: 1. This is the first line. 2. Some random text here. 3. This has to be centered. 4. Last line. If ...
1
vote
1answer
42 views

Add code before/after H type floats only

I would like to patch my [H] floats with some vertical space as it appears inconsistent with [h] and other type floats. I am using KOMAscript Is there a good way to put code before/after the ...
1
vote
1answer
130 views

Decreasing vertical space before start of itemize in Resume.cls

I am using the resume.cls from this template: https://www.overleaf.com/articles/sharanya-anands-cv/fyvvdpdxthyc I want to decrease the vertical spacing before the start of each list, but have ...
1
vote
1answer
39 views

Weird behaviour of Hypelink with \href to open an external PDF file

Consider the following two beamer codes: Code 1: \documentclass{beamer} \usepackage{hyperref} \begin{document} \begin{frame}[shrink=.8] \frametitle{\href{run:Doc.pdf}{Click1}} \href[page=5]{...
1
vote
1answer
480 views

there is no line here to end. \end{frame} in beamer

\documentclass[11pt]{beamer} \usetheme{Ilmenau} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{...
1
vote
1answer
53 views

vspace, hspace don't work in textblock

i use vspace, hspace in textpos (texblock) but don't work. Please help Thank in advance My minimal coding: \documentclass[12pt]{article} \usepackage[a4paper]{geometry} \usepackage[poster]{...
1
vote
2answers
41 views

Unwanted Vertical Space after Header

I have created a custom header that's perfect except for some unwanted vertical spacing between the header and the body. Currently there's about 14mm of spacing, and I'd like to reduce it to about 7mm....
1
vote
1answer
3k views

LaTeX Awesome CV - Space after entries

for some sections, i do not wish to put a bullet/description, however a space is automatically generated regardless if the bullet or description is filled out. i want to make this space only generate ...
1
vote
1answer
123 views

Vspace to an absolute page offset

I'm producing a series of flash cards in LaTeX (well, actually XeLaTeX). Each card has a title, a short paragraph of text, and a table, which is the main purpose of the card. Occasionally the ...
1
vote
2answers
648 views

LaTeX Over Leaf Awesome CV - Space between entries

I want to remove the space between Company name and Title as show in the picture. Unable to remove space in \cventry using \vspace \cvsection{Experience} \begin{cventries} \cventry {...
1
vote
1answer
107 views

How do I add one blank page after both these pages?

I have two inetial pages in my document. I need to leave blank pages after both pages explicitely. \shipout\null is not working properly. How should I add that? MWE: \documentclass[a4paper,times,...
1
vote
2answers
95 views

Align with colors and vspace using commands

I'm trying to prepare notes for a class and am wanting to use an align environment in multiple areas but with a potential of two possibilities. Here's a mwe \documentclass{amsart} \usepackage{xcolor} ...
1
vote
1answer
100 views

How do I adjust vertical spacing above \rule line to match that below the line?

I want to know how to adjust vertical spacing above \rule line to match that below the line. I have attempted to solve this problem using the solutions presented for similar questions hrulefill ...
1
vote
1answer
84 views

tabbing environment with no surrounding vertical space

This probably applies to tabbing, enumerate and itemize blocks, if not others. How to get rid of (or specify) the default vertical spacing that "wraps" / surrounds the block of items? Normally I want ...
1
vote
1answer
61 views

Vertical space on top of the content defined within an environment

I try to understand what's going on with a very simple environment I defined. Please note that I have difficulties to explain the problem. I tries to do my best, but it may not be clear. Please ...
1
vote
1answer
339 views

How can I add a “no page break” constraint to a \vspace?

I'm using this command: \newcommand{\opitem}[1]{\item[\planop{#1} \hspace{\leftmargin} \vspace{\smallskipamount}]} in a document of mine. I want to tweak it so as ensure I won't get a page break ...
1
vote
1answer
56 views

Consistent spacing before section (KOMA)

I'm using the KOMAscript classes and notice that the space before each section heading depends on the previous environment. (I doubt this issue is exclusive to KOMA, I just thought I should mention it)...
1
vote
0answers
166 views

Same space between top and bottom rule minitoc

I want to have the exact same space between the top and bottom rule of minitoc. I know I can use : \mtcsetfeature{minitoc}{after}{\vspace{-10pt}} \mtcsetfeature{minitoc}{before}{\vspace{-10pt}} ...
0
votes
1answer
97 views

Consistent vspacing without having to repeatedly set throughout document

I have a simple document, mainly consisting of sections (not latex sections) consisting of a table followed by some itemized items, and some v space between them. I have found to have the document ...
0
votes
1answer
203 views

What does the \fill command do?

I have been reading about vertical spacing commands in LaTeX and have come upon the command \vspace{\fill} which is similar to the command \vfill. My question is this: what does the \fill command do? ...
0
votes
1answer
29 views

Vertical space is positioned in another location instead of I mentioned

\documentclass{article} \usepackage{multido} \usepackage{booktabs} \usepackage{graphics} \usepackage{enumitem} \usepackage[a4paper,left=0.5cm,top=2cm,bottom=1cm,right=0cm]{geometry} \usepackage{...
0
votes
1answer
41 views

Best way to make breakable vertical spaces

I would like to make lecture notes with gaps. But the blanks generated for example by vspace are not breakable and start sometimes on a new page. What is the best way to make breakable vertical spaces ...
0
votes
1answer
161 views

Marginpar notes in the bibliography and vertical position with marginfix

I'm attempting to include notes in my bibliography for important items. I'm putting them in the margin with \marginpar. This is where the problem arises. If I have a longer note that happens to be ...
0
votes
1answer
31 views

vspace in LoT vs. starred chapters

EDIT: I originally thought it was tocloft that creates the space between different chapters in the LoT. I was wrong. I edited the title, but left the original question. I'm currently facing the ...
0
votes
1answer
49 views

How to remove additional space under wrapfigure when using vspace in text

I'm creating some custom environments. One of them will be placed in \wrapfigure and second one will contain text which should wrap around the first one. When I'm adding \vspace between paragraphs, ...
0
votes
1answer
36 views

Make headsep larger if section starts on a new page

I'm using the KOMA-script scrartcl class with the geometry package and would like to have my sections (which always start on a new page) have some extra vertical spacing between the headsepline, but I ...
0
votes
1answer
82 views

Evenly spaced boxes filling the whole page

I'm trying to vertically fill the whole height of a page with 3 evenly spaced boxes. This is what I have now \documentclass{article} \usepackage[showframe]{geometry} \usepackage[many]{tcolorbox} \...
0
votes
2answers
659 views

Remove white space at the start of new section in latex

Using this code: \RequirePackage[l2tabu,orthodox]{nag} \documentclass[12pt,letterpaper,nofootinbib,notitlepage,tightenlines]{revtex4-1} \linespread{2} \usepackage[letterpaper,margin=1in,bottom=1in]{...