The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
0answers
22 views

\wide[bar/hat/tilde] commands with unicode-math

Is there some way to get \widebar, \widehat, and \widetilde to work with the libertinus package, such as to get nice spacing? Here's a MWE (which uses Vogt's \widebar command): \documentclass{...
0
votes
0answers
26 views

Why is this spacing inconsistent?

As you can see, the field "xyz" has a larger space above and below it. How would I rectify this? Here is my code: \begin{large} \textbf{Title}\\ ...
9
votes
2answers
146 views

Auto adjust the width of tcolorbox right-hand side

\documentclass{article} \usepackage[most]{tcolorbox} \usepackage{mathtools} \usepackage[lmargin=2cm,rmargin=2cm]{geometry} \begin{document} \begin{tcblisting}{title=Column Factorization,sidebyside, ...
0
votes
1answer
31 views

Multiple equations of a system on one line

I tried to write a system with multiple equations on every line. I have this: And I have the following error: Extra alignment tab has been changed to \cr. Could you please help? Thanks a lot!
0
votes
1answer
22 views

how to break line \mychapter on page but not in toc

how to line break this \mychapter? if i use \chapter i can break line using \chapter[line 1 line 2]{line 1 \\ line 2} \documentclass{report} \newcommand{\mychapter}[2]{ \setcounter{chapter}{#1} ...
1
vote
1answer
29 views

Adjusting line spacing to original format with symbols with underset

I have set the line spacing of my Latex document to 1.5. In some part of my text, I use mathematical symbols with "underset". This has increased the line spacing compared to the original defined ...
3
votes
1answer
61 views

Verbatim text in tcolorbox goes outside right margin

\documentclass{article} \usepackage{tcolorbox} \begin{document} \begin{tcolorbox}[sidebyside=true, title=test] \begin{verbatim} this is <strong>not</strong> a test this is not a test ...
5
votes
2answers
91 views

How to align these two expressions, one has one more number?

I am trying to align (-(a-1)^2-1)x+(-(a-1)^2-1) and (-(a-1)^2-1)x+1 using \phantom command. Since (-(a-1)^2-1)x+1 is missing the (-(a-1)^2-1) part, I added \phantom{(-(a-1)^2-1)}, but there is an ...
0
votes
0answers
29 views

how i can move text?

How can I move a "text "or this part in image up ?
0
votes
0answers
22 views

How to remove space before chapter title?

I am writing a thesis report and when I start including the chapters in preamble, there's a huge space before the title. The first thing that should appear on the page is CHAPTER 1, then in next line, ...
1
vote
1answer
16 views

adding space upper and down Image

I have more sequences of the image with the text between there, from this post I resolve the problem of the withe space but now I have too a little space from the image. I want to add the space upper ...
2
votes
1answer
24 views

Why does the `date=terse` option to biblatex cause an extra space after the year in bibliography entries?

Compiling my MWE with the date=terse option to biblatex causes an extra space between the last digit in the year and the closing parenthesis. Commenting this option removes the extra space. How do I ...
0
votes
0answers
15 views

How can I add an image at top border using /paperwidth in just one specific page?

I need to put one image at top of one page that spans through all paperwidth, I've tried the next command in memoir: \newcommand{\adjustimg}{ \checkoddpage \ifoddpage\hspace*{\dimexpr\evensidemargin-\...
1
vote
1answer
40 views

Is \, | \, equivalent to \mid?

Is \mid equivalent to \, | \, ? I am asking this because, \mid does not cooperate with \big. However \,\big| \, works fine. I typically use these expressions when defining sets, for instance:
1
vote
1answer
53 views

Adjust minipage to fill remaining vertical space

I am trying to divide a document in three parts by using minipages. First, I created a top strip and after it I want to separate the document in two parts and make it so those parts fill completely ...
1
vote
1answer
32 views

Single Space Title in Article Class

I am writing a paper in the article class with a very long title. Here is an MWE: \documentclass[12pt]{article} \usepackage{fullpage} \usepackage{setspace} \newcommand\e{\emph} \newcommand\tb{\...
0
votes
0answers
32 views

Pandoc, how to allow right tab-stop when converting a .docx exported from Google Doc to .latex

Google Docs and Drive, OpenOffice and Microsoft word all have the right tab-stop functionality This is how you configure it in Google Document: Type the text you want on the left Click the ruler &...
2
votes
3answers
50 views

Math expressions in italic text have more space on the right side than the left side

Minimal reproducible example: \documentclass{article} \usepackage{amsmath} \newtheorem{lemma}{Lemma} \begin{document} \begin{lemma} Suppose that \(a\) and \(b\) are integers. \end{lemma} \end{...
4
votes
1answer
56 views

ConTeXt: custom \intertext

In a ConTeXt file, I would like to insert a line of text inside \eqalign. When I use \intertext: \starttext \startalignment[middle] $\eqalign{ a &= b \cr \intertext{and} b &= c \cr }$ \...
1
vote
0answers
33 views

Equal spacing for Listings, Tables, Figures and Equations

I'm searching for a MWE to get equal distances between text and all environments in my document. Equal distances mean in this case: Distance between text and the upper border of the environment ...
2
votes
0answers
122 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 ...
3
votes
2answers
45 views

Index title too low with scrbook + imakeidx + original

I’m using the document class scrbook and the package imakeidx together with the option original to create an index. But I noticed that the index title is lower than all the other occuring titles (...
1
vote
1answer
24 views

adjust line spacing of entries using tocloft

When using tocloft in a book class document with chapter and section entries, the line spacing within chapter entries should be adjustable, but how? As it stands the section entries in the ToC are set ...
0
votes
0answers
34 views

{xe|lua}latex + LTL symbols + glossaries = bad spacing around LTL symbols

Continuing hyperref + glossaries + latex = bad spacing around math relations, let us consider an example of typesetting linear-time logic formulas: \documentclass{article} \usepackage{mathtools}%%% ...
0
votes
1answer
23 views

Extra vertical glue in listings within beamer frame

The following blocks are the result of the source below. You can see the difference in vertical spacing. Where is it coming from and how to get rid of it? \documentclass[a4paper]{beamer} \...
0
votes
0answers
26 views

Been getting Underfull \hbox a lot. Could someone share a good practice manual?

I'm new to TeX, currently switching from Overleaf to WinEdt (trial edition), but I'm following blindly the TeX philosophy of "just write, the editor does all the work for you". As a result, I'm ...
0
votes
1answer
23 views

How to prevent spaces around a binary relation in math mode?

I'm trying to add a subscript both before and after the \cong symbol, but the problem I'm having is that because it is a binary operator, I'm getting spacing between the prescript and the symbol. I ...
0
votes
1answer
18 views

Control the spacing between characters in a long equation

While writing long equations in different math environments, I noticed that, as far as horizontal spacing is concerned, environments can be divided into two groups. First group, the spacing between ...
0
votes
1answer
16 views

Spacing in a template-like format

I'm trying to make a beamer presentation on how to solve various linear equations through a 4-step process. Because of the template-like format of how I want the slides to look, I was thinking of ...
0
votes
0answers
22 views

minipage placed where I choose and with the options of any page

I need to be able to construct a minipage inside a page (A4 paper) with the measures that I want, the position I want and the geometry I want (top, bottom, left, right; indention…), like any page. I ...
3
votes
1answer
82 views

odd (?) spacing for logic notation

I write code: $\sim(p\land q)\iff (\sim p\lor \sim q)$ and my output is like this: As you can see, the \land symbol is nice in between 'p' and 'q', but the \lor symbol stick somehow to the left, to ...
0
votes
1answer
24 views

Fancyhdr and hyperref - unwanted space before header

I'm writing a report in french. I'm using hyperref's autoref for cross-references and I have redefined some of the names used by the function, such as Appendix and Figure, in my preamble. I just ...
3
votes
1answer
26 views

Scaling tabular row spacing down for tiny font size

I have a tabular environment in which all the cells of some rows are \tiny; a minimal example: \begin{tabular}{|l|} \hline Dexterity \\ \hline \tiny Saving Throws: $+2$ \\ \tiny Acrobatics: $+4$ \\ \...
0
votes
1answer
42 views

How can I customize the spaces between consecutive equations in LaTeX?

I am working on my thesis (a report type file) in which I have several consecutive equations associated to some mathematical model. The thing is that those are too separate to each other and looks not ...
1
vote
1answer
43 views

Correct approach to multiplication symbol in text

I would greatly appreciate advice on the approved approach to providing a multiplication symbol in text. For example: The diameter of the sun is $107 \times$ that of the Earth. The diameter of the ...
-1
votes
0answers
45 views

How can i fix exact vertical or horizontal spacing in latex?

How can i fix exact vertical or horizontal spacing in latex? For example: some text \vspace*{5pt} % I need to get out exact 5pt space only. Not less or more space. some \hspace*{12pt} text. % I ...
0
votes
0answers
21 views

How to linebreak and keep indentation? [duplicate]

While writing down an algorithm, I've come to the following construct: There are multiple for/if/while's before this one so it is quite indented. Example code: \usepackage{algpseudocode,algorithm,...
1
vote
0answers
13 views

Space after newcommand [duplicate]

Imagine I define a new command as : \newcommand{\seagal}{$\sigma$-algebra} and use it as follows : A \seagal is defined as This will produce a text where is will have "-algebrais defined as" and ...
1
vote
1answer
44 views

How are proofs normally constructed in a write up, in one line or split up into multiple lines?

Here is the same proof formatted two different ways. My questions is what is the standard for a writeup like a homework assignment? I think the first one looks better but I don't think that is the way ...
2
votes
1answer
30 views

automated arrow length

I am looking for an automated way to fix arrows' length in an aligned arrangement. There are two-level approaches, such as https://tex.stackexchange.com/a/413486/195378, where the length of the second ...
0
votes
0answers
33 views

Ensure minimum length of last line by tightening word spacing

There are already a few questions that ask how to ensure a minimal length for the last line of a paragraph: Ensure minimal length of last line and Minimum length of last line of a paragraph. But ...
1
vote
1answer
42 views

Unwanted vertical space before Table-style innerblocks in tikzposter

I'm working with tikzposter and found this bizarre behavior of Table-style inner blocks. It looks like the vertical space before innerblocks is determined by the height of the title, even though the ...
3
votes
2answers
78 views

How to make one word render under another

I have text of word pairs and I want them to render by pair, one under another, like shown on the figure below: [UPDATE] In the source words arrive in pairs: word1 + word2, word3 + word4, so I need ...
3
votes
4answers
370 views

How do I automatically add linebreaks “\\” to the end of each row of a tabular environment?

\begin{center} \begin{tabular}{ |c|c|c| } \hline \multicolumn{3}{|c|}{\textbf{Cycle Number and Phase}} \\ \hline t & $ \phi $ & I \\ \hline ...
2
votes
1answer
27 views

Loading `xits-math.otf` for certain characters messes with spacing of fractions and binomial coefficients

Today I witnessed some odd behaviour: Using \setmathfont[range={\rightrightarrows}]{xits-math.otf} to load the symbol ⇉ changes the spacing of the \binom and \frac command. Here is how it looks ...
0
votes
1answer
18 views

Eliminate column balancing on last page of index

I am using the solution from How can I prevent a column break before the first sub-entry in the index? in my index. However, that has a bad side effect on the last page of the index in that the index ...
1
vote
1answer
32 views

Table content alignment

I checked the questions related to this content, But i couldn't find a solution, that is helpful to me. I have issue in alignment of the table contents. I am using the multirow option and including ...
1
vote
1answer
20 views

Change vertical Distance in my Cover Letter - ModernCv

I am currently writing an application with moderncv that is almost finished but I have small problem that I cant fix on my own. I my example \documentclass[10pt,a4paper,sans]{moderncv} \...
0
votes
0answers
28 views

How do I add space inside \textrm{}? [duplicate]

I googled this, but couldn't find an answer. How do I add space inside \textrm{}? e.g. I want to get "Hello_____World", but what I get is "Hello_World" when I type in \textrm{Hello_____World}. ...
0
votes
1answer
21 views

Description Item Spacing

I've following latex code: \documentclass{article} \begin{document} \begin{description} \item[days] {\footnotesize sunday, monday} \item[months] {\footnotesize january, february} \end{description}...