Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [white-space]

The tag has no usage guidance.

0
votes
1answer
26 views

How to prevent excess whitespace after line breaks in inline equations using symbols defined in a glossary?

I have several mathematical symbols with definitions in a glossary created using the glossaries package. As an example, \newglossaryentry{real} { sort={r0}, name={\ensuremath{\mathbb{R}}}, ...
3
votes
1answer
37 views

Coerce LuaTeX into outputting a newline character

I encounter a problem when I wish to output a text file using a \directlua directive. There where I wish a newline character to be, I run into TeX problems. My solution is to invoke the dofile ...
1
vote
1answer
31 views

How do I reduce whitespace or stretching in the bibliography?

How do I reduce whitespace in between words in the bibliography? It seems it's trying to stretch things out to fit into the column. For example: Here is the test document: % test.tex \title{Article ...
4
votes
1answer
105 views

How do I horizontally compress or unstretch paragraph text?

My references section sometimes shows a lot of whitespace between words that I would like to remove. For example, in the following screenshot, I would like to remove the extra spaces within the text "...
1
vote
2answers
18 views

How can I remove whitespace under a figure inside a table?

I am building a table where each row contains an image, however when I insert the image I end up with a lot of whitespace under the image and it making the row unnecessarily tall. A minimum working ...
2
votes
3answers
54 views

Retain inter-word spacing in math mode

Is there a shorthand/ instruction for math mode to simply retain words and not collapse the whitespace? I.e. rather than manually inserting spacing after each word with \, and friends. Here is the ...
0
votes
1answer
83 views

ConTeXt: uniform handling of whitespace in margin and text

Why does whitespace handle differently in the margins than the text body? \setuppapersize[letter] \setupwhitespace[medium] \setuplayout [backspace=4.375in, width=3.625in, leftmargin=3....
3
votes
0answers
214 views

Simple LaTeX document sticks all consecutive words together (ignoring spaces) both inside and outside of `\text` [closed]

\listfiles\documentclass[varwidth]{standalone} \usepackage{lmodern} \usepackage{amsmath, amsthm, amssymb} \begin{document}\fontsize{30}{36}\selectfont Let $a$ be a symbol. \end{document} The result ...
2
votes
1answer
74 views

Custom \Rightarrow and \Leftrightarrow

Is there any way to shorten the double equal horizontal lines so they do not cross the arrow tips? Also, if I can get rid of the white space between two horizontal lines, it would be perfect. My MWE:...
6
votes
1answer
143 views

White-space after `[fragile]\end{frame}` breaks beamer?

I have detected a very strange behaviour when creating beamer slides with the [fragile] option. I read and know that the line \end{frame} must not be indented and must not have a comment directly ...
0
votes
1answer
22 views

Put text in whitespace wrapfigure of subfloats

I've got this right now: As you can see, the text does not occupy the whitespace above the left graph which makes it look very awkward. It also has to work with multiple lines\sections\paragraphs ...
0
votes
1answer
32 views

remove space after writing a command when using \write

I'm writing a macro to write commands to a file. These commands are supposed to be read when building my document. The lines I use to write to the file is : \newwrite\outtest \immediate\openout\...
0
votes
3answers
70 views

How to separate row *and* column caption from table content with a little portion of white space?

I actually thought that this question has already been asked but I could not find anything similar to it. I would like to separate the row and column caption from the table content in the following ...
0
votes
2answers
25 views

Reduce extra space with sidecap and iopart

Is there a way to reduce the white space between the figure and the caption in this MWE: \documentclass{iopart} %\documentclass{article} \usepackage{graphicx} \usepackage{mwe} \usepackage{sidecap} \...
0
votes
1answer
41 views

Add white line to align environment

I want to add a white line in between the two equations of the code below. Everything I tried resulted in the white line being listed as an additional equation. \begin{align} \begin{split} {}&\...
2
votes
1answer
44 views

Babel and listings cause problem with hard spaces in sectioning headers in classicthesis

Problematic MWE: \documentclass[headinclude,footinclude]{scrbook}%\documentclass[headinclude,footinclude,a4paper]{scrbook} \usepackage{classicthesis}%\usepackage[style=arsclassica]{classicthesis} \...
0
votes
1answer
44 views

Remove blank space in a column created with LaTeX and fits its content

everybody. I am currently writing a paper and have been trying to resemble the table shown in figure 1 (it is a 1row- 3colum table), created with Microsoft Word. However, the table I obtain, created ...
0
votes
2answers
78 views

How to remove white spaces before a table

I have the following code, but I am unable to remove the white space before the table even after using \vspace{} right after \subsection{Nomenclature}. \section{Mathematical Modeling} In this ...
1
vote
2answers
48 views

How to remove extra vertical space when using groupplots

I'm following the example from Axis break in pgfplots However, I found that you get a spurious vertical space on the plots Any way to remove it? And why is it there? \documentclass[convert]{...
1
vote
1answer
83 views

typesetting spaces in initials in German texts

Assuming you are preparing a German text (say, to be published with Springer), what would be a "standard" way to typeset spaces in a name, say, Edsger Wybe Dijkstra, in which the initials are ...
3
votes
1answer
109 views

Avoiding excessive space under equation

I'm wondering how can I avoid excessive white space under equation. This happens only a time in the entire document; in the other pages there are not this problem (I wrote the equation and the text in ...
4
votes
1answer
45 views

Prevent \tikzmark command from introducing additional whitespace

I am using the answer to this question: Drawing tikz line in the margin for multiple pages to draw a colored line on the margin of my document. I would like to have a possibility to comment out the ...
1
vote
1answer
121 views

Can I change the color of the whitespace markers in the TeXstudio editor?

I'm using a couple custom settings for syntax highlighting in the TeXstudio editor, but I'm running into a problem, and I'm not sure whether this is down to me not finding the correct settings and ...
0
votes
0answers
93 views

Why does my document have so much white space between text and a table?

Please see the picture below for a visualization of my issue. I am using the package placeins to ensure floating within a section, so that's why the table is forced within the subsection: \usepackage[...
4
votes
1answer
77 views

Remove whitespace between baseline and symbol

Despite my naive anchor=center specification, these four symbols are not aligned by their center: \documentclass{standalone} \usepackage{tikz} \tikzset{x=1pt, y=1pt, z=1pt} \begin{document} \...
0
votes
1answer
43 views

Remove white page that appeared out of nowhere

This is (part) my code: \bibliography{biblio}{} \bibliographystyle{plain} \onecolumn \begin{appendices} \section{\\Images} \begin{figure}[H] \begin{tabular}{cccccc} \subfloat[Car no ...
2
votes
1answer
35 views

Removing whitespace taken up by blank header on later pages

I would like to have a header on the first page of my document, and on subsequent pages I would like both the header and the whitespace where the header was to be usable as space for content so as to ...
3
votes
2answers
86 views

Custom command with space and following punctuation?

I want to write a custom command to produce a species name but I am having trouble getting it to work with punctuations. The specifications for my desired output are: Text in italic font No ...
0
votes
0answers
40 views

Getting rid of underfull vbox warnings when using clearpage

Whenever I use a \clearpage command in my document it is because I want to force a new page and leave whitespace at the bottom of the previous page. However, TeX doesn't like this, and gives me ...
0
votes
1answer
38 views

commands with variable adds horizontal spacing in text

I am using the following command to create two version of an article, one where changes with respect to the first version are showed in blue and a second one that is supposed to be the final version ...
9
votes
1answer
234 views

How can I preserve whitespaces at line endings in listings?

I want to display a Whitespace program (an esoteric programming language) in a listing. Even with keepspaces=true, spaces at line endings are discarded (and lines only consisting of whitespaces at the ...
3
votes
2answers
181 views

Spaces around command with empty output (for comments within paragraphs)

I defined a simple command to comment text inside a paragraph: \newcommand{\comm}[1]{} This is a␣\comm{commented text}␣paragraph containing a comment. The problem is that I get two spaces in place ...
0
votes
0answers
16 views

Listings adds vertical whitespaces in the rest of the PDF [duplicate]

I've made the command codeblock to show code blocks in a box with: \newtcblisting[auto counter]{codeblock}[2][]{ sharp corners, fonttitle = \bfseries, colframe = gray, listing only, ...
0
votes
1answer
63 views

Ignore whitespace during macro-definition?

Does LaTeX contain a supported construct for ignoring whitespace during macro definitions? The default situation By default, whitespace inside macro definitions is preserved just like everywhere ...
2
votes
0answers
73 views

Creating Even White-Space around Equations (Align Environment) as a Global Option

I would like to be able to set the vertical spacing around an align environment globally. The aim would be to have the same space above and below the equations in the align environment, regardless of ...
2
votes
1answer
109 views

How to customize the whitespace and characters in math typography correctly

Currently I would like to define whitespace that has this exact whitespace format { a, b, c } {} f : X -> Y X:Y (Notice the lack of space in {} and X:Y). I would also like to style some of the ...
3
votes
2answers
90 views

Spurious space for \path if in \enquote's argument in case of obeyspaces option

The following MCE points out a spurious space for url's \path if it is an argument of csquotes' \enquote in case of url's obeyspaces option. Do you know what's going on? \documentclass{article} \...
0
votes
2answers
68 views

How can I add horizontal space within a paragraph to move the remainder of the line to some margin?

I am trying to find a Latex command that can be used within a paragraph to create whitespace until some specified distance from the left margin is reached, and then the text resumes. It should do ...
0
votes
1answer
68 views

float after startsection adds whitespace (ConTeXt)

When I add a float straight after a section heading in ConTeXt for some reason additional whitespace is added. In this MWE it is not very pronounced, but in some of my documents it looks quite ...
0
votes
0answers
29 views

(Framed) environment blank spaces

Could be a very beginner question, but still. Considering the following: \usepackage{framed} \usepackage{tikz} \usepackage{listings} ... \newcommand{\some}{\textcolor{red}{\lstinline{some}}} \...
-1
votes
0answers
63 views

Delete whitespace in tabular for date in resume [on hold]

I'm newer to Tex. I try to do my Latex resume but I have some kind of problem and I didn't find how i can make it. The cls code (I used an existing template): \setlength{\tabcolsep}{0pt} % New ...
0
votes
1answer
57 views

Allow line breaks in .tex file for readability without extra white space in document

I want to be able to have line breaks in my .TeX file without producing extra white space in my final document. For example, from something I'm currently writing, I have \documentclass[12pt]{report} ...
0
votes
1answer
100 views

Align Text within Minipage

I have seen some similar posts, but none of the suggested solutions worked in my case, so I need to post the question. The problem seems simple, but somehow I mess it up. I have a minipage on my ...
0
votes
0answers
138 views

can't reduce space between figure and text

I've tried different methods but I can't figure out how to reduce the space between the figure and the text. Globally I have this: \setlength{\abovecaptionskip}{0pt} \setlength{\belowcaptionskip}{...
5
votes
1answer
53 views

Why does this ~ space not print within ExplSyntax command?

I am aware that \ExplSyntaxOn changes how spaces are interpreted. I use ~ to represent a space, but in this instance one of those tildes is not printed. \documentclass[a4paper,10pt,openany]{scrbook} ...
3
votes
1answer
170 views

Excessive lstlisting whitespace when using escape

I am trying to remove the excessive whitespace between the bullet points and the second hi. \documentclass[10pt]{hitec} \usepackage{listings} \lstset{ basicstyle=\small\ttfamily, columns=flexible, ...
0
votes
1answer
123 views

Long text is starting from the bottom in \tcolorbox

MWE \documentclass[a4paper,twoside,openright,12pt]{book} \usepackage{geometry} \usepackage[svgnames]{xcolor} \usepackage[listings,skins,breakable,hooks]{tcolorbox} \usepackage{empheq} \usepackage{...
3
votes
1answer
145 views

\@ifnextchar considering whitespace

Somewhat related to Understanding \@ifnextchar question... Is there any variant of \@ifnextchar which does not skip whitespace, i.e. which takes whitespace into account? For example, one would like ...
1
vote
2answers
34 views

Difference behaviour when passing a value or a macro

I am trying to fill in a form using the OCRB font. I need to add space after every digit in the amount. Below my command to do so: \newcommand*\giro@bvramount[1]{ \let\@tempa\relax \@tfor\@tempb:=...
1
vote
2answers
47 views

white space standard unit

Now, everytime I want to use hspace/vspace/... I always have to type "mm" behind my number and I often forget it. Is it possible to make sure that latex "knows" my units are in mm?