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.

1
vote
2answers
13 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
35 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
68 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` [on hold]

\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
54 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
132 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
20 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
30 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
0answers
35 views

Special algebraic symbol in Latex [duplicate]

how can I use following symbol in Latex: I don't know how to write this symbol (red arrow shows it) in Latex. Thanks for your help
0
votes
3answers
49 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
21 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
40 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
41 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
26 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
61 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
36 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
76 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
101 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 ...
0
votes
0answers
43 views

How to fix underfull \vbox error

I have to write a scientific report with a very specific set of rules regarding the layout of the page and a line spacing of 1.5. I finished the report with the default line spacing, and had no errors....
4
votes
1answer
41 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
96 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
88 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
69 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
42 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
30 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
79 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
35 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
37 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
206 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
171 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
57 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
72 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
105 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
89 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
64 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
67 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
26 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}}} \...
0
votes
0answers
58 views

Delete whitespace in tabular for date in resume

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
53 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
80 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
127 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
51 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
150 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
106 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
125 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
45 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?
0
votes
1answer
162 views

LaTeX PDF to Word using Acrobat Pro: How prevent multiple white-space?

To make use of the grammar and spell-checking of Word, I'd like to use Adobe Acrobat Pro to export a PDF into a Word document. When doing so, the resulting Word contains multiple white-spaces which ...
0
votes
0answers
113 views

White space issues in two column article

I am using \documentclass[twocolumn]{article} and the package widetext for long equations. White space is not used consistently through the document leading to a couple of localized issues: After a ...