Questions tagged [white-space]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

how to fill up white spaces in wrapfigure with subfigures

I have the following page where I want to fill up the white space (red drawings) with the paragraph. There is already a post and solution here: which is very cumbersome where I may have to change all ...
  • 13
0 votes
1 answer
29 views

Adjust space in front of opening bracket

How can I globally reduce the space in front of the opening bracket, i.e. between M and [? I have to set the brackets with \left[ and \right]. I know that I individually can insert a negative space by ...
  • 231
1 vote
1 answer
58 views

Why is there a space behind a character created by the \symbol command? [duplicate]

I defined the following simple macro: \def\greek#1{ \symbol{\numexpr"03B0+#1} } This is supposed to convert numbers into greek characters for numbering purposes (so 1 becomes α, 2 becomes β etc.)...
  • 173
1 vote
0 answers
58 views

Good names for \, and \! with nonempty glues

Let's assume that you often wish to insert a stretchable thin space instead of a fixed-size\,. Your document is full of \mskip3mu plus1.5mu minus1.5mu in math mode or \hskip.16667em plus.08333333em ...
  • 1,565
3 votes
2 answers
145 views

whitespace after optional macro argument

I know that LaTeX gobbles up whitespace after macro names such that there is no space between the å and the b in \documentclass{article} \begin{document} \aa b \end{document} I have a similar ...
2 votes
2 answers
112 views

Detect paired nested macros

I created a macro that automatically detects if \dif, defined as \newcommand{\dif}{\mathrm{d}} delimits an integral and in this case a small space between the argument of the integral and \dif is ...
0 votes
0 answers
39 views

How to delete extra spaces provided automatically in a line?

I was writing a bibliography. At a point, some extra spaces appear. I couldn't fix it anyhow. \begin{thebibliography}{90} \bibitem{Ref1} Java, \url{https://en.wikipedia.org/wiki/Java_(...
0 votes
1 answer
28 views

moderncv - modify white space within title

I have looked at similar problems on this sit namely moderncv - modify size of blank spaces and ModernCV classic style, change space below title but these relate to white space below the title itself ...
0 votes
0 answers
53 views

Remove space from new command

There seems to be extra space in my command but I can not find and delete it. Where does this space come from? I need to use my arrow inside a box. MWE: \documentclass{article} \usepackage{graphicx} \...
1 vote
1 answer
34 views

Remove Whitespace After a Macro [duplicate]

I am trying to remove the white spaces following a custom macro. I am having the worst time understanding what is happening. I have looked through most of the answers here for how to remove white ...
  • 115
0 votes
0 answers
34 views

How to remove whitespace in spoilers using the ocgx package

I have been typing my notes in Microsoft word and I want to move to LaTeX because LaTeX has much greater control over formatting. My favorite word feature is being able to expand and collapse headings ...
2 votes
1 answer
125 views

How Can I Remove White Splace Caused by a List in a LaTeX Table

I created this table: \begin{table}[!h] \caption{\label{tab:choix-de-carriere-different}Choix de carrière: ingénieur logiciel} \centering \begin{tabularx}{\linewidth}{|p{10 em}|X|} \hline \textbf{...
0 votes
1 answer
26 views

Tabular environment malfunctioning: incorrect order and whitespace [duplicate]

In my page I have some paragraphs of text, and then a table including some text and figures. However, the table either appears on its own and takes up the rest of the page as white space, or appears ...
1 vote
0 answers
35 views

Is whitespace allowed between \section and \index or \label?

Sometimes I need to add a label or index immediately after a new chapter/section/subsection, etc., and the code may look like: \section{TITLE} \index{INDEX} \label{LABEL} This works fine in my ...
  • 6,811
3 votes
3 answers
53 views

handling whitespace in denominator of complex fraction

I have a paper where I need to format a series of ugly 'fraction expressions' -- ugly because the term in the numerator is (often) a complex sum or series, and in order to get it to `fit', I usually ...
1 vote
2 answers
46 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-...
0 votes
1 answer
56 views

Remove whitespace in chapter heading

I am using the memoir document class to write my dissertation. I would like to remove the white spacing that exists between the chapter number and name to have them on the same line (without ...
0 votes
0 answers
28 views

How do I remove the space between the list headings and the list items in latex?

\begin{rsection}{Project} { \bf Movie Recommender System} \begin{itemize}[noitemsep] \item Implemented the collaborative filtering algorithm \item performed exploratory data analysis \end{itemize} \...
  • 1
1 vote
0 answers
43 views

Good code style introduces whitespace in LaTeX [duplicate]

Suppose I have the following in a test1.tex file: \documentclass{article} \begin{document} \section{A section with a very long title which goes beyond seventy-two columns in text editor} \end{...
  • 1,460
0 votes
1 answer
113 views

Text keeps compressing or expanding when splitting text with ```\\\\```

I highly doubt that this question hasn't been asked before, but I haven't managed to use the right search words to find it. In case it matters I'm writing in Overleaf and use \documentclass{article}. ...
2 votes
1 answer
59 views

Is There a Proper Place to Put Indexing Syntax in the Code?

Consider the code: \documentclass[openany]{book} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} \begin{document} \thispagestyle{empty} \Large This is a sentence. This is another \textbf{...
  • 5,723
3 votes
2 answers
86 views

width of a control space in relation to a quad, thin, medium, and thick spaces

In the majority of fonts such as Computer Modern, NewTX Math, or TeX Gyre Termes Math, how wide is the control space \ (visibly: \␣) in relation to the other math-mode space commands \quad, \;, \&...
  • 1,565
0 votes
1 answer
54 views

todonotes with tikzexternalize - white space problem

For a larger document including many TikZ pictures I am using tikzexternalize and the todonotes package. Based on this question I (re-) defined a command that automatically excludes the todo notes ...
0 votes
0 answers
57 views

Whitespace rendering + selectable indentation spaces for python/yaml/etc code snippets

I have three related issues here and I wonder, which approaches/libraries/built-in utilities may help me achieve the following: First There are many programming languages and file formats which depend ...
  • 11
0 votes
1 answer
48 views

Large space at break in tcolorbox

Consider this MWE: \documentclass[varwidth=3in, multi={my}, crop, ignorerest=true]{standalone} \usepackage{polyglossia, lipsum, forloop} \usepackage[most, magazine]{tcolorbox} \newtcolorbox{mybox}[2][...
  • 2,375
1 vote
1 answer
38 views

Unwanted space before Polyglossia's \textlatin in a \begin{french} environment with XeLaTeX

Unwanted space appears before Latin language text inside an outer French environment when using Polyglossia. This does not happen when the outer environment language is English. In my example, when ...
0 votes
1 answer
75 views

Reduce vertical whitespace with elsarticle

I am trying to reduce the amount of vertical whitespace in elsarticle. Specifically, I would like to move the entire abstract (summary) box up. Simply adding \vspace{-3em} right after \begin{abstract} ...
  • 103
1 vote
2 answers
148 views

Help adjusting padding in complex longtable

I'm working on a CV and decided to use a longtable to set everything so it can span multiple pages easily. Overall, I like the look of what I've arrived at, but there are a couple issues with padding ...
0 votes
1 answer
25 views

How to use gathered inside tabular without causing excess space in nearby columns? [closed]

I would like the circuit layout and the mathematical equations of a certain circuit to be side by side with relevant captions. I use a table for this, since I might also add some information in the ...
1 vote
1 answer
48 views

Making the next space fixed width

I'm using the IEEEtrans document class and sometimes the figure caption Fig. n: label looks like Fig. n: label where the space after the “Fig.” is stretched. How do I make the next space after “Fig.” ...
  • 13
0 votes
0 answers
16 views

a5paper option in documentclass produces strange white space/margins and hyperref fixes it [duplicate]

I observed a very strange behaviour of latex when it comes to the pagesize: When I create a document in a5paper by just using \documentclass[a5paper]{book} then the output pdf seems to be in A4 but ...
1 vote
2 answers
112 views

Gobble the next char if it is whitespace or tilde

I want this macro to gobble the next character in the input stream only if it is whitespace (according to the char code) or it's the tilde character (i.e., a non-breaking space). My current attempt to ...
  • 800
-1 votes
1 answer
45 views

White space + margins + alignment problem

I'm using overleaf to write my thesis but I found two problems in the template as illustrated in the attached image. 1- Long white space at the beginning of main pages (abstract, declaration, ...
  • 11
1 vote
1 answer
40 views

Problematic spacing with \begin{cases}

In my MWE I would like to adjust the spacing immediately before each instance of \begin{cases}. The large curly brace seems jammed into the previous line. How would I adjust this? My source code: %...
  • 1,483
0 votes
1 answer
171 views

Non-breaking space not working in Overleaf

I am trying to insert a non-breaking space because one of the lines in my text ends with an a, namely introduces the problem and proposes ~a (cont. in the next line). However, the tilde operator does ...
0 votes
1 answer
24 views

Removing whitespace of \draw plot command

I use the following command to generate a smooth curve inside a Tikz picture: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[black] plot [smooth, ...
  • 15
1 vote
1 answer
136 views

Preventing a line break at the end of a sentence

If I want to prevent a line break between two words, then I insert a ~ like this: Lorem~impsum. But what if I want to prevent a line break between the end of a sentence and the first word of the new ...
  • 489
0 votes
1 answer
67 views

How to get rid of a long vertical gap coming above and below an equation coming at some places!

I am preparing part of a big latex report. At some places, I see unnecessary additional vertical space around equations. When I try it individually with short text, it works fine. Somehow, I suspect ...
  • 517
0 votes
0 answers
33 views

Space before and after a non-breaking space are different

I want to use a non-breaking space within a pair of guillemets. But the space within these guillemets are not equal. If I remove the guillemets, the spaces are equal and this looks good to me. If I ...
0 votes
1 answer
82 views

Lettrine in lettre class make a too large left margin

Explanations When I use a \lettrine command from lettrine package inside the letter environment with lettre class, so, the lettrine occur a big unwanted left margin. MWE \documentclass{lettre} \...
  • 2,145
1 vote
2 answers
70 views

Variable spacing between mathop and its argument

The MWE below defines and uses the *-suffixed form \card* of the math operator \card to create greater spacing after "card" when the following argument is something like "(" or &...
  • 6,701
0 votes
1 answer
70 views

Unable to retain Whitespace in xkeyval

I am using the xkeyval package to set a key "name". This value is then used in the hyperref package. Please see the sample code below: File: mysuperclass.cls \ProvidesClass{mysuperclass} \...
  • 1,548
6 votes
4 answers
668 views

How can I write a space character in the console?

The following code writes in the console, but it doesn't print the space character. How can I force printing space characters? \documentclass{article} \begin{document} \message{% ^^J =================...
  • 6,242
1 vote
1 answer
66 views

`aligned` inside `align`: what's causing the ugly whitespace?

I'm trying to use aligned inside align in order to split/align an equation inside a global align. My code is: \begin{align} \vert A \vert &\leq \frac{1}{\theta^{3}} \int_{u=0}^t \left| \int_{...
  • 23
7 votes
1 answer
91 views

\selectlanguage in the middle of text causes extra vertical space

Consider the following example: \documentclass{article} \usepackage[french]{babel} \usepackage{amsthm} \begin{document} Some text \begin{proof} \end{proof} \begin{proof} \end{proof} Some text \...
  • 6,811
1 vote
0 answers
21 views

Start new Section before big picture from previous Section [duplicate]

I would like to show a big diagram (full page, coded as figure with \includegraphics) at the end of a Section (Section 1). Unfortunately, the text of Section 1 does not end at the bottom of a page ...
  • 11
1 vote
2 answers
75 views

How to handle whitespaces from \hangindent?

There is the problem with \hangindent. Here is the code which I've used: \documentclass[12pt]{article} \usepackage[cp1251]{inputenc} \usepackage[english,russian]{babel} \usepackage{amsmath} \...
  • 265
2 votes
2 answers
55 views

How to remove consecutive vertical whitespace from commands

I would like to be able to write macros that approximate the behaviour of CSS's margin. For example consider the following: \newcommand{\marginspace}[1]{ % Defines some combinable margin % This is ...
  • 367
1 vote
1 answer
38 views

Unwanted space in tikzpicture

I get some obviously unwanted space here: Does it have to do with invisible control points being used to draw the arcs? Here's the offending code: \begin{tabular}{|c|c|} \hline \begin{tikzpicture} [...
0 votes
2 answers
46 views

center and remove whitespace in tabularx with multirows

How can I center the cells from the columns Theory and Hypothesis and remove the excessive whitespace from the cell Financial constraint? \usepackage{multirow} \usepackage{booktabs} \usepackage{array} ...

1
2 3 4 5