Skip to main content
7 votes
Accepted

What does \\ do in the Large environment?

I assume you are referring to the different linespacing shown by the following example: \documentclass{article} \begin{document} \begin{center} \begin{LARGE} Lorem ipsum dolor sit amet, consetetur ...
campa's user avatar
  • 32.6k
7 votes

On vertical spacing

You can think of leaders as control sequences that take two arguments: \leaders<box><glue>. The box can contain anything! For testing is best to use something that is not dots! I use ...
yannisl's user avatar
  • 119k
6 votes
Accepted

Setting the value for \baselineskip with \setlength does not have any effect

What is wrong with my code? You need to issue the instruction \setlength{\baselineskip}{13pt} after, not before, \begin{document}.
Mico's user avatar
  • 519k
5 votes
Accepted

Wrong line spacing inside new environment

If you look at the definition of spacing by setspace.sty you see (comments removed) \newenvironment{spacing}[1]{% \par \begingroup \setstretch {#1}% }{% \restore@spacing } and now you see ...
egreg's user avatar
  • 1.2m
5 votes
Accepted

How can I see how many pts "singlespace" is?

You can run \documentclass{memoir} \begin{document} \makeatletter \typeout {% Fontsize: \f@size pt / Baselineskip: \the\baselineskip } \makeatother \end{document} This will show Fontsize: 10pt / ...
Marcel Krüger's user avatar
5 votes

mqty looks ugly due to bad vertical spacing

TeX is unable to calculate the line spacing relative to the postion of large object in the lines. It doesn't know, if the large object are one above to second or (as in your example) these large ...
wipet's user avatar
  • 75.8k
5 votes
Accepted

mqty looks ugly due to bad vertical spacing

I don't see how \mqty{1 \\ 1 \\ 2 \\ 0} is easier to type or at least clearer than \begin{bmatrix} 1 \\ 1 \\ 2 \\ 0 \end{bmatrix} I would keep at arm's distance from physics, but you're to judge ...
egreg's user avatar
  • 1.2m
5 votes

mqty looks ugly due to bad vertical spacing

I suggest you (a) transpose the vectors when they're used in inline math mode and (b) not hesitate to use display math mode. E.g.: \documentclass{article} \usepackage{mathtools,amssymb,amsthm} \...
Mico's user avatar
  • 519k
5 votes

I have a weird space between two lines in my work

Compare \documentclass[12pt]{report} \title{% \large Line A\\ Line B\\ Line C% }% \author{} \date{} \begin{document} \maketitle \end{document} to \documentclass[12pt]{report} \title{% ...
Ulrich Diez's user avatar
5 votes

On vertical spacing

Quoting the TeXbook, first dangerous bend on page 224, which refers to an example on page 223: Notice that the dots in the two example lines appear exactly above each other. This is not a coincidence;...
egreg's user avatar
  • 1.2m
4 votes

Remove space between two lines

You're overcomplicating things. Why using \fbox when you're doing a tcolorbox that has full capabilities of making a frame? Why using a \parbox that's not raised and just smashed at the bottom when, ...
egreg's user avatar
  • 1.2m
4 votes

Change line spacing inside the document

Instead of redefining \baselinestretch, you can set a new value to \linespread and apply the changes with \selectfont: \documentclass{article} \begin{document} \linespread{1.0}\selectfont Lorem ipsum ...
finefoot's user avatar
  • 599
4 votes
Accepted

Tikz use custom label in enumeration causes line spacing to be too large

Perhaps something like this. It tells the tikz nodes size to be ignored (overlay), then make space for it in the design of the list. \documentclass{article} \usepackage{tikz} \newcommand*\zzzz[1]{ ...
daleif's user avatar
  • 55.5k
4 votes

Setting the value for \baselineskip with \setlength does not have any effect

Changing \baselineskip at begin document is not enough, because every \normalsize declaration would change it back, for instance in a minipage. \documentclass{article} \begin{document} \setlength{\...
egreg's user avatar
  • 1.2m
4 votes
Accepted

I have a weird space between two lines in my work

You're loading titling but not using its features. \documentclass[12pt]{report} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage{graphicx} \usepackage{titling} \graphicspath{ {images/...
egreg's user avatar
  • 1.2m
4 votes

How would you format to be cleaner and explain the steps better? Do I have any no no's in my latex?

Do I have any no no's in my latex [code]? Short answer: Yes. Longer answer: All-blank lines are not allowed in any of the multi-row math environments of the amsmath package. Learn about the \...
Mico's user avatar
  • 519k
3 votes
Accepted

I want to increase the line spacing in the following array table, what should I do?

A possible solution is to use the tabularray package: \documentclass{article} \usepackage{amsmath,amssymb,tabularray} \begin{document} \[ \begin{tblr}{cells=c,rowsep=3pt,hlines,vlines} X & 1 &...
hair-splitter's user avatar
3 votes
Accepted

How can I make my formula fit properly in a 2 column page latex document?

You probably want multline rather than align as it's a single long expression not two expressions with alignment points, also it takes less space. \documentclass[twocolumn]{article} \usepackage{...
David Carlisle's user avatar
3 votes
Accepted

decrease table wrapped text spacing

The cells display the required line space since you set \renewcommand{\baselinestretch}{1.5} (I hope you didn't do that only for the table, otherwise you should better use \renewcommand{\arraystretch}{...
jlab's user avatar
  • 4,211
3 votes
Accepted

Correct line spacing when changing font size without causing the end of the paragraph

You can record the position of the end of the small text and then back up to start the large text at that position, takes two runs. \documentclass[12pt]{article} \usepackage{xcolor} \usepackage{lipsum}...
David Carlisle's user avatar
3 votes
Accepted

Line spacing in systeme

The \systeme command uses low level TeX constructs that depend on \baselineskip, but don't take into account arraystretch. There is no method implemented in the package, but a simple patch works. Here ...
egreg's user avatar
  • 1.2m
3 votes

How to add some vertical space in ConTeXt

Your example looks like something which is best set with the description mechanism where you can set different styles for the title and content. \define[1]\QuestionTitle {\offset[x=-1em]{#1}} \...
Wolfgang Schuster's user avatar
3 votes
Accepted

Is there a command to point out everywhere the default line spacing is being changed by math formulas?

Add \showoutput to your preamble and then check the log for \lineskip which is added to lines when they are too large to allow \baselineskip spacing. logs ....\OT1/cmr/m/n/10 c ....\OT1/cmr/m/n/10 c ....
David Carlisle's user avatar
2 votes
Accepted

Why does the vertical (line) spacing scrunch up for certain paragraphs?

(La)TeX "freezes" several characteristics of a paragraph when the paragraph ends. One of these is the baseline separation. You have not ended the previous paragraph when starting a new ...
barbara beeton's user avatar
2 votes
Accepted

Remove space between two lines

You could use something like \offinterlineskip to switch the space between lines off: \documentclass[]{article} \usepackage[most]{tcolorbox} \usepackage{enumitem} \NewDocumentEnvironment{cvArray}{m}{...
samcarter_is_at_topanswers.xyz's user avatar
2 votes
Accepted

Avoid the warning "What does the phrase "Underfull \hbox (badness 10000) in paragraph", while keeping the line space as using \\[<space>]

Try this in plain TeX: text of the first paragraph\nobreak\hfil\break\par next paragraph \bye You can see Underfull \hbox mesage and empty line is inserted after the first paragraph. Why? The \par ...
wipet's user avatar
  • 75.8k
2 votes
Accepted

Line spacing in title of Beamer poster

You want to end the current paragraph before switching back to a smaller font the second argument with the baseline skip should normally be bigger than the font size I'd also avoid adding spaces ...
samcarter_is_at_topanswers.xyz's user avatar
2 votes

decrease table wrapped text spacing

If you are going to change \baselinestretch, it is probably better to use setspace so you have ready-made means to alter it and some of the side-effects are mitigated for you. However, you should know ...
cfr's user avatar
  • 211k
2 votes

I want to increase the line spacing in the following array table, what should I do?

With {NiceArray} of nicematrix, you have an option cell-space-limits to set a minimal space above and below each cell. Moreover, the key hvlines draws all the rules. \documentclass{article} \...
F. Pantigny's user avatar
  • 43.8k
2 votes

How to add some vertical space in ConTeXt

Just to show how to get what you are used to with LaTeX: \starttext {\it Qu’osa-t-il ?}\\\blank[1pt]Il fit un écrit\\ {\it Qu’osa-t-il ?} \blank[1pt]Il fit un écrit\\ % ^ diff here % ...
garulfo's user avatar
  • 41

Only top scored, non community-wiki answers of a minimum length are eligible