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
0 votes
0 answers
18 views

How to reduce blank space after chapter heading in report?

Due to page restrictions, I'm trying to reduce the blank space before and after chapter title in my report. I have tried numerous methods but nothing seems to work. I have tried the solutions outlined ...
user avatar
  • 67
1 vote
1 answer
21 views

problem with spaces and getitems package

When gathering items, I would like to avoid inital and final blank lines and spaces. I explain with an example. Here my code \documentclass{article} \usepackage{getitems} \NewEnviron{test}{ \...
user avatar
1 vote
0 answers
31 views

Space before the "?", normally unbreakable with babel-french, breakable with listings' breaklines option

With babel-french, the space before the question mark is normally unbreakable. But, as shown by the MWE below (compiled with pdflatex, xelatex or lualatex), the breaklines option of the listings ...
user avatar
0 votes
0 answers
23 views

Remove space after symbol [duplicate]

How can I remove the space after a symbol? The question comes from this example: \documentclass[a4paper]{article} \begin{document} GD\& T \end{document} will be typeset ...
user avatar
0 votes
2 answers
104 views

How to remove any kind of spaces at the beginning of something

This is another chapter of the story "how to use a moodle database for my purposes". The accepted answer to [this question][1] gives a very effective way to retrieve informations from an ...
user avatar
4 votes
2 answers
344 views

How can I place two circuit diagrams next to each other?

I made these two circuit diagrams: But I don't want them to be one above the other, instead I want them to be ''in the same line'' if that makes sense, one next to the other. I tried the multicolumn ...
user avatar
  • 95
0 votes
0 answers
48 views

How to make content fill the height of two column tcolorbox

I have a two column tcolorbox and I am trying to make the content in the right column vertically expand to have similar height with the content of the left column. I tried adding \par\vfill or \par\...
user avatar
  • 1
1 vote
1 answer
40 views

Find the first character of a string (problem with blank lines)

I'm trying to build a macro that gives the first character of a argument the code \def\FIRST#1{\First#1\TAIL} \def\First#1#2\TAIL{#1} works almost fine: \FIRST{WORD} produces W as expected, but \...
user avatar
0 votes
0 answers
27 views

inconsistent line spacing for quotes

Although I did not change anything for spacing part, line spacings are different between quotes. I can only use LaTex packages in the list of accepted packages. (https://authors.acm.org/proceedings/...
user avatar
  • 1
-1 votes
0 answers
20 views

Moving header to top of page and Roman page number to right margin

I am experiencing some difficulty formatting my PhD. thesis. There is some wasted space between the top of the page and the header. I need to move the header up to the top of the page. Further, I need ...
user avatar
0 votes
0 answers
27 views

How to leave a space between two longtables and horizontal lines in both tables?

I was wondering how to add space between two tables generated by the code below. Also, \hline doesn't work when I use it in both loops but works if I use it only in one. f.write('\\rowcolor{colour10} ...
user avatar
  • 33
2 votes
1 answer
22 views

How to align rectangle with textframe?

Context I would like the tikz rectangle to align with the frame in which my text needs to be placed. I assumed it would have something to do with a vertical skip that starts before a tikzpicture, but ...
user avatar
  • 137
0 votes
1 answer
47 views

Create side-by-side environments in Latex

I am trying to create three environments that are beside one another and do not fill the entire page as seen in the attached image. Within each environment, I am trying to add the cvref function, ...
user avatar
2 votes
1 answer
69 views

Unwanted space in the beginning of first line by ntheorem

How to avoid the space in the beginning of first line by ntheorem \documentclass[a4paper,10pt,openany,twoside]{scrbook} \usepackage[paperwidth=94mm,paperheight=50mm,margin=2mm,footskip=2mm,showframe ]...
user avatar
  • 7,486
4 votes
3 answers
135 views

Horizontal spacing bmatrix in align environment

I have a large block matrix in my document, which violates the page margin slightly. I would like to reduce the horizontal spacing between the matrix elements of a row. Additionally, I want to align ...
user avatar
1 vote
1 answer
60 views

Can I display a set of eigenvectors across two pages?

I was wondering if its possible to split an array over two pages since I have a huge formula for my array? I already rotated the formula and reduced the size, but I still have to split it over two ...
user avatar
1 vote
0 answers
44 views

What is the correct spacing for an operator inside vertical bars?

I have recently learned from questions like Unwanted Space Between Vertical Bar and Math Operator that we should write \lvert \sin(x) \rvert instead of | \sin(x) | for denoting the absolute value of ...
user avatar
6 votes
1 answer
319 views

Why are there two commands \> and \: that do the same thing?

The file latex.ltx says: \DeclareRobustCommand\:{\tmspace+\medmuskip{.2222em}} \let\>=\: Why are there two equally long commands \> and \: doing exactly the same thing? To me, they look ...
user avatar
0 votes
1 answer
32 views

Indentation Wrong Second line in Titleframe Goettingen theme (Beamer)

I'm coming here looking for help because I've tried in every way to correct the error in the attached figure. When dealing with a long title, the second line suffers an unnecessary indentation. I ...
user avatar
0 votes
0 answers
14 views

Optimize size of graphs & Reduce horizontal space between graphs

I want to put two graphs in pdf format next to each other in one row and the graphs next to each other in the row below. I have managed to reduce the vertical space between the two rows but I do not ...
user avatar
  • 1
0 votes
0 answers
25 views

Reducing space in graph of tikz

I have the following graph on Tikz. \begin{tikzcd} & & & ...
user avatar
2 votes
1 answer
155 views

Why is extra top space generated on table headings?

\begin{singlespace} \begin{tabular}{|p{1.4cm}p{3cm}|p{1.4cm}p{3.8cm}|p{1.54cm}p{3.2cm}|} \rowcolor[HTML]{2D87D1} {\color[HTML]{FFFFFF} \textbf{Abbr.}} & {\color[HTML]{FFFFFF} \textbf{...
user avatar
  • 33
0 votes
0 answers
27 views

How to use multicol package on A3-sized documents

Context I would like to work with multiple columns (3) on A3-sized sheets of paper. It seems to stop halfway. Code \documentclass[12pt]{article} \usepackage[margin=1cm, showframe, landscape, a3paper]{...
user avatar
  • 137
3 votes
1 answer
21 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 ...
user avatar
3 votes
2 answers
386 views

Why does LaTeX neither break at nor hyphenate after a "user kern"?

When using the \kern command for user-defined kerns or the \, shorthand for small non-breaking spaces, this expands to a "userkern" node. At such nodes LaTeX doesn't break the line and the ...
user avatar
  • 371
0 votes
0 answers
35 views

Can't write ( left ) without the spaces, or else it turns into ←

I'm describing a diagram, and it goes: "in dark blue ( left ) . . ." i'm writing in brackets that something is on the left. I've had to add spaces ( left ) to stop it from turning into a ← . ...
user avatar
0 votes
0 answers
35 views

Overlapping letters

As I wrote in the title, I have a problem with two overlapping letters. Namely, I have to write the word flop but when I write it latex overlaps the f and the l: Is there a way to prevent this ...
user avatar
  • 101
0 votes
0 answers
14 views

Poster template by Naiaden - want to change format

I use the template for a poster given by https://github.com/naiaden/presentations/tree/master/ruhuisstijl/distributed in Landscape mode. Now I want to add my Co-promoters in the Header where the ...
user avatar
0 votes
1 answer
36 views

Thesis Signature Page

I must create a signature page. I have searched through this board for similar examples but I don't see any that match this type of style. Unfortunately, I'm quite new to creating my own page styles ...
user avatar
0 votes
1 answer
47 views

Why does align character & remove horizontal space?

This is something I've been wondering and annoyed about for a long time but cannot find an answer to. Assume that I have a chain of equations: \begin{align*} a &= b \\ &= c \end{...
user avatar
0 votes
1 answer
41 views

How to increase the line spacing for the current line manually

It is easy to see that the following code will automatically change the line spacing for the line with {\huge test} but leave the other part of this paragraph untouched. \documentclass{book} \...
user avatar
0 votes
1 answer
56 views

Column / Table widths overflowing

There should be a simple solution for this table column width problem, but I'm having trouble making it work. I have taken a CV template and tried to add a (random) company logo to the left of the ...
user avatar
1 vote
1 answer
38 views

Aligning the reference centred on the heading

I have a problem. The reference under the list of tables and list of figures is not centred on the heading. It is slightly indented, like with a tab (see the first photo). The second photo shows how ...
user avatar
  • 151
1 vote
1 answer
38 views

Situational assessment about vertical space commands [duplicate]

I would like some assessment on the situational utilities of various vertical space commands, namely: \smallskip, \medskip, \bigskip, \vspace*{value}, \\[value]. \smallskip, \medskip, \bigskip, and \...
user avatar
  • 103
1 vote
1 answer
22 views

Seeking an explanation for the code of the theorem style "break" in the package "ntheorem"

In the package ntheorem, there is a theorem style called break, the corresponding code defining it reads: \newtheoremstyle{break}% {\item[\rlap{\vbox{\hbox{\hskip\labelsep \theorem@headerfont ...
user avatar
  • 4,515
2 votes
1 answer
63 views

Why is the spacing of \ensuremath different?

If \newcommand{\ensuremath{something}} expands to \ifmmode something \else $something$ \fi why is the spacing of \newcommand{\x}{x_\textsc{y}} \newcommand{\y}{\ensuremath{x_\textsc{y}}} different?...
user avatar
  • 785
1 vote
1 answer
34 views

Introducing end space

Am printing a right adjusted date , but require some space at the end. Used \quad at first, which was not introduced by latex. Once I add a period . at the end, the \quad was introduced. How can I ...
user avatar
  • 29
1 vote
0 answers
18 views

Glue within a beamer block / beamercolorbox

How can one achieve that glue within a beamer block or a beamercolorbox reacts to spacing needs outside of it? In the following overfull slide one would expect that the glue shrinks to 0, but it does ...
user avatar
0 votes
1 answer
31 views

Missing space between chapter on same page and first section

I just wrote a command to start a new chapter on the same page: \documentclass{report} \usepackage[utf8]{inputenc} \newcommand{\chapterh}[1]{ { \let \clearpage \relax \chapter{#1} } } ...
user avatar
  • 3
4 votes
1 answer
48 views

Unknown spacing after using command in optional argument

Context I am trying to paste multiple images in one row within a tabularx environment. Using optional commands with the \NewDocumentCommand from the xparse package I tried to implement this. It ...
user avatar
  • 137
0 votes
1 answer
46 views

Underfull \vbox (badness 10000) warnings in Book with no floats or math, just simple headings (Part and Chapter) and text

So I have this relatively simple-coded book document. When I try to compile it, I get a lot of Underfull \vbox (badness 10000) has occurred while \output is active warnings (though there's only one ...
user avatar
1 vote
2 answers
41 views

Superfluous vertical spacing

When a new section starts, I am facing extra spacing. \documentclass[10pt]{report} \usepackage{mathptmx,amsmath,amssymb,bm} \begin{document} \begin{align*} & \kappa(ru+m(1-r)v)\leq\,r\kappa(u)+m(1-...
user avatar
1 vote
0 answers
58 views

When to add braces in math mode?

In some cases where weird spacing can happen, it is recommended to add (possibly empty) braces, e.g. Using \underbrace and similar (link): \[ { \underbrace{a}_{b} } + c \] Aligning relation ...
user avatar
3 votes
1 answer
49 views

How to make sure texts of the same size on different pages are at the same distance from the page top if it's mixed with images and text of other size

There's just THIS TEXT NEEDS TO BE ALIGNED text on one page of my book that's preceded by some vspace value. There's also some WITH THIS TEXT text on another page that's preceded by some vspace value, ...
user avatar
1 vote
2 answers
44 views

Removing space around full stop in qualified name

How can I limit the space around a period that are not full stops (i.e., do not end a sentence.)? In my paper, I need to refer to qualified names (such as A.x). Currently, I type-set those as \texttt{...
user avatar
  • 13
3 votes
3 answers
123 views

How to change interline spacing only inside lists?

If I do the following: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{setspace} \usepackage{enumitem} \setstretch{2} \setlist[itemize]{topsep=.1em,itemsep=.1em,parsep=0em,partopsep=0em} \...
user avatar
  • 808
0 votes
0 answers
26 views

Typographic question regarding the "transpose" symbol [duplicate]

This might seem like a petty question, but sometimes, I do care about good typography. In this expression: \mathsb{p}^\mathsf{T} A^\mathsf{T} A \mathsb{p} ($ \mathsb{p}^\mathsf{T} A^\mathsf{T} A \...
user avatar
  • 223
1 vote
1 answer
16 views

Offset hrule while parskip=true

So what I'm trying to do is similar to this article, which is to surround the title and subtitle of the document with 2 similarly distanced \hrule. If i follow their description it works wonderful. ...
user avatar
  • 109
0 votes
1 answer
22 views

changing the space after chapter title and figures

How do I change the space between chapter titles and after figures/tables to certain amount? MWE: \documentclass[]{report} \usepackage[md]{titlesec} %required for section titles \usepackage{...
user avatar
  • 161
1 vote
1 answer
41 views

Spacing within Chemical equations [duplicate]

My Chemistry equations come out looking a bit awkward when it comes to writing compounds, which require multiple letters. Here's an example, note the space between H and N, or B and F: I couldn't ...
user avatar

1
2 3 4 5
147