Stack Exchange Network

Stack Exchange network consists of 175 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
0answers
32 views

Why does \hat{} create whitespace following its appearance with tex4ht?

I noticed that in the html output from a tex4ht run, there are spaces after the \hat{}. However, in the dvips output, there are no spaces. Is there a workaround for this? My guess is there needs ...
0
votes
0answers
41 views

The begin and the end of question`\ [closed]

Where is the '~' in keyboard? \documentclass{article} \begin{document} Hello,~\Tex~! Hello,~\Latex~! \end{document}
2
votes
1answer
54 views

Leaving Whitespace for Hidden Text, Math, and Figures

I have used a variety of commands to hide answers to questions in documents. I use a boolean to to determine whether the material should be hidden, i.e. hideans True then hide, hideans False then don'...
0
votes
0answers
38 views

Is it possible to detect large whitespace at the bottom of a page

I'm using this line: \newcommand\mysection{\vfil\penalty-9999\vfilneg\section*} to make sure that sections that doesn't fit on the remainder of a page is pushed to a new page, and it works well. ...
1
vote
1answer
33 views

\hfill -like command in the middle of a paragraph

I want to align the contents of a paragraph such that it is justified, BUT the white space at the end of the paragraph (on the last line) is moved inside the paragraph at a place where a \hfill-like ...
0
votes
0answers
21 views

No whitespace between name and year in Bibliography when one author

I am getting no whitespace between the author and year in my bibliography when there is only one author. This does not happen when there are more than one authors. Is there any way to fix this? ...
0
votes
0answers
20 views

How to control white-space dimensions around author block with authblk and geometry?

I am trying to control the white-space dimensions around my author block using authblk and geometry. How can I control the distance between the top margin and the title, the title and the author list,...
1
vote
1answer
38 views

How to reduce white space around floats to prevent them from taking an entire column

I have a two column document that features a couple of high aspect ratio (tall) floats which, including the caption, take up more than half, but not a full column. When I compile Latex always seems ...
0
votes
1answer
23 views

TikZ: Inexplicable whitespace when predefining shapes

Assumed we want to predefine some shapes for later usage in a TikZ-picture. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{tikz} \begin{document} \def\testone#1#2{ ...
0
votes
1answer
33 views

pagenote converts spaces to newlines and breaks verbatim typesetting

I want to typeset verbatim end notes (using minted). Unfortunately pagenote converts all spaces in my page notes into newlines, as the following minimal example shows: \documentclass{memoir} \...
4
votes
1answer
75 views

Japanese quotation marks do not display as full-width

When I use Japanese quotation marks at the start of a line, the whitespace at the beginning of the character seems to get cut off, moving the quotation mark half a space forward. This puts the text ...
1
vote
1answer
25 views

Citation on first line causes whitespace indent

tex code: \documentclass[a4paper,12pt]{article} \usepackage{cite} \setlength\parindent{0pt} \begin{document} \section*{First Chapter} \cite{naiveset} First line. \newline \cite{knuthwebsite} Second ...
1
vote
1answer
31 views

how to remove the white space between the image and the next column?

\documentclass{article} \usepackage{subcaption} \usepackage[demo]{graphicx} \usepackage{tabularx} \begin{document} \begin{table*}[h] \renewcommand{\arraystretch}{1.2} \begin{subtable}{0.22\textwidth}...
0
votes
1answer
71 views

how to index subtables as in number them as 1,2,3,…? [closed]

\documentclass{article} \usepackage{subcaption} \usepackage[demo]{graphicx} \usepackage{tabularx} \begin{document} \begin{table*}[h] \renewcommand{\arraystretch}{1.2} \begin{subtable}{0.22\textwidth}...
0
votes
1answer
55 views

How to remove excess whitespace on the first page?

The following MWE closely reproduces a LaTeX file I created. I'm using @egreg's solution to my question about programatically creating dummy text. The issue is that the quoted section on the second ...
0
votes
0answers
25 views

PDF inbound in text - cropping unwanted content

For this issue, I have no MWE. Problem: I have a word-file (survey, pretty complex structure) and I have been requested to use/integrate parts of this document for illustration in my LaTeX-file (e....
2
votes
2answers
33 views

uneven tab for align text

How can I align program and ''(commas) in same vertical line my code was \item [1.]\quad Identifier\quad program \item [2.]\quad White\_Space\quad' '
0
votes
1answer
33 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}}}, ...
2
votes
1answer
41 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
66 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
122 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
22 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
86 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
101 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
149 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
165 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
29 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
34 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
116 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
37 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
45 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
54 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
61 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
429 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
66 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]{...
2
votes
1answer
93 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
114 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
54 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
176 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 ...
4
votes
1answer
86 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
51 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
61 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
98 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
53 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
43 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
321 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
188 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
94 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 ...