Questions tagged [white-space]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
29 views

Reduce white spacing before a SINGLE chapter heading in memoir class

I am using memoir document class. I wanted to decrease the space preceding my chapter headings, and I want to do it individually because I do not want to decrease white space before other headings (...
1 vote
1 answer
46 views

Trimming common leading whitespace in an environment

I have an executable that performs semantic highlighting of files containing literate code. It outputs a .tex file that I can source snippets from using catchfilebetweentags. One issue I am facing is ...
  • 133
0 votes
0 answers
14 views

Tikzpicture path creating a lot of whitespace [duplicate]

This code \documentclas{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{tikz} \begin{document} \begin{figure} \centering \resizebox{.5\textwidth}{!}{ \fbox{ \...
1 vote
1 answer
29 views

Undesired Whitespace Between Start of Subsection and Start of Text

After changing my margin size from 1in to 0.5in, an large bit of whitespace apppeared after the title for the first section of my article. How can I prevent this large amount of whitespace from ...
0 votes
2 answers
38 views

\ignorespaces does not work inside \ul

I am trying to write a document template in which the necessary text would be set using \def at the beginning, and then used in the text. And I ran into the problem that if there are spaces in the ...
2 votes
1 answer
27 views

Why does tikz's positioning library add whitespace on the left side of my diagram? [duplicate]

Why does tikz's positioning library add whitespace on the left side of my diagram? With positioning: \documentclass[border=1mm]{standalone} \usepackage{tikz} \begin{document} \pagecolor{white} \...
  • 2,684
0 votes
1 answer
24 views

Reduce white space between top of page and Chapter, Bibliography and Appendix head titles in report class?

Due to default setting of report class, there is white space between top of page and TOC, LOT, LOF, Chapter, Bibliography and Appendix head titles and I wish to reduce this space. I successfully ...
1 vote
1 answer
27 views

Grid of table ist not as it should be in tabular environment...how to get rid of white space within lines?

I'd like to ask a question concerning tables in LATEX. I produced a table with LATEX, but the grid is not "closed"...see for example the corner on the top right and also some other lines in ...
0 votes
0 answers
29 views

Weird spaces in latex while using \section and \subsection

I have this very weird behave with latex, by adding \subsection or \section it always gives me a huge blank space between 2 questions without adding any \new... Here pictures : Image 1: : VS image 2 ...
  • 131
5 votes
4 answers
305 views

strlen in TeX Language

Trying to implement a simple algorithms in TeX language, I've tried to implement a string length function (potentially a token counter function). I know spacing in TeX engine has a different mean from ...
0 votes
1 answer
28 views

IEEEtran - Whitespace before first author

How do I remove a whitespace which is before the first author of my authorblock? I thought it was some kind of indentation, but I haven't managed to remove it. Here is the code I'm using: \...
0 votes
1 answer
51 views

Can you standarize the whitespaces of the source code?

I want to know if there is a option to set all the whitespaces in my source code. The whitespaces in my CPP code do not look uniform. Sometimes I leave a space before and after the = sign, sometimes I ...
-1 votes
1 answer
56 views

Replacing during compilation all spaces with ``{\textcolor{white}{i}} + space''

How can I replace, during compilation, all the white spaces of my document, except in the frontmatter and the bibliography, by \textcolor{white}{i} + <a white space> Here is a MWE to work on. \...
  • 694
1 vote
1 answer
73 views

Beamer left margin setting does not remove whitespace

Using beamer, I am widening block size by 1.05X to get more text inside, using the command \usepackage{changepage} \addtobeamertemplate{block begin}{% \setlength{\textwidth}{1.05\textwidth} ...
0 votes
1 answer
44 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 ...
  • 15
0 votes
1 answer
35 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 ...
  • 193
1 vote
1 answer
59 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
61 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 ...
user avatar
3 votes
2 answers
164 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
120 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
40 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
36 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
54 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
60 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
50 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
144 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{...
  • 245
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
37 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 ...
  • 7,380
3 votes
3 answers
80 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
48 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
136 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
31 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
44 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,524
0 votes
1 answer
184 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
63 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{...
  • 7,282
3 votes
2 answers
136 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, \;, \&...
user avatar
0 votes
1 answer
81 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
1 answer
59 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,415
1 vote
1 answer
40 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
125 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
183 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
29 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
71 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
138 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 ...
  • 830
-1 votes
1 answer
64 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
63 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,493
0 votes
1 answer
285 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
25 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
356 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 ...
  • 501

1
2 3 4 5