Questions tagged [white-space]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

vskip and unskip after section heading

I've defined a macro that puts images and text in a table and puts some whitespace around it like that: \newcommand{\iec}[3]{% \unskip \vskip 0.5cm \begin{tabular}{cl} \adjustimage{width=1.5cm,valign=...
2
votes
2answers
51 views

Multiple Vertical alignment on two rows

I making a presentation using beamer. My question is simple. How can I align 2 rows in 2 different part ? I have in the 1° slide this: Advisor: Prof. Latex Tex Co. Advisor: Prof. Tex Latex And this ...
1
vote
1answer
23 views

Tight square of subfigures

I'm trying to create a tightly knit group of 4 subfigures, in a simple square configuration. I'm able to do this but I would like to remove the whitespace. I'm not sure about the linewidth numbers. ...
6
votes
1answer
81 views

When are \space tokens discarded?

Consider this example: \obeyspaces b \bye The output is b. Why is the \space discarded? It is not discarded during pre-processing because it has catcode 13 - it is discarded during tokenization, ...
1
vote
0answers
32 views

large Spaces in documents [closed]

please I'm new in latex. I have a problem with my paper which is the existing of a lot of white spaces between paragraphs, table and its comments and so on. I don't know how to fix it. I tried to use ...
0
votes
0answers
22 views

Unwanted space in text where float is positioned in the code

I am new to Latex, so I hope I am using the correct vocabulary to describe my problem. I couldn't find an answer to it. When I am including a figure in the code, it is displayed at a different ...
0
votes
2answers
26 views

Reduce horizontal whitespace in aligned equation

I am using the following code to create an aligned equation: \documentclass[a4paper,12pt]{article} \usepackage{Z_costumpreamble} \begin{document} \begin{align} % equation 3 Y\textsubscript{i,P}...
0
votes
0answers
36 views

How to get rid of huge random whitespace in the middle of the paragraph?

\documentclass[12pt]{report} \usepackage{graphicx, longtable} \graphicspath{{images/}} \usepackage[margin=1in]{geometry} \usepackage[table,xcdraw]{xcolor} \usepackage{tabularx} \usepackage{varwidth} \...
0
votes
2answers
33 views

Removing extra vertical space before chapter heading

I'm trying to remove some extraneous extra space that appears before chapter headings in the book class. I've used titlesec to set the space-above to 0pt, but there is still about one line's worth of ...
3
votes
1answer
47 views

Swallow space before command

Is there a way to swallow one space (or more spaces) before a command? E.g.: xxx \mycommand{}yyy which results in xxxyyy
1
vote
3answers
64 views

Print final spaces of an argument

I would like to print spaces that are at the end of an argument. Here is my M(not)WE. \documentclass{article} \newcommand\printspaceinarg[1]{% ]\texttt{#1}[% } \setlength\parindent{0em} \begin{...
0
votes
0answers
29 views

How to print spaces and tabs as spaces and tabs in 'lstlisting's?

Consider the following: \begin{lstlisting} int main(void) { printf("hello world"); return 0; } \end{lstlisting} [Note: the text is not actually rendered blue, I just tried to select it ...
0
votes
1answer
20 views

tagging package and subfigures: faulty vertical alignment

I'm using the great tagged package to compile my document using graphics of different qualities and/or file formats. The MWE \documentclass{article} \usepackage{subcaption} \usepackage{graphicx} \...
2
votes
0answers
61 views

Reduce whitespace after \ref

I have the following latex file: \documentclass[AMA,STIX1COL]{WileyNJD-v2} \usepackage{moreverb} \usepackage{algpseudocode} \usepackage{algorithm} \usepackage{tabu} \usepackage{tabularx} \usepackage{...
2
votes
3answers
173 views

Remove leading whitespace from expansion of command

I'm working with a program that converts markup to LaTeX documents; customization of the output is limited to defining commands to insert in the preamble. A certain markup construct gets converted to ...
2
votes
2answers
81 views

Skip space after optional argument

I have a command where the first argument is optional: \documentclass{minimal} \newcommand{\z}[2][]{\texttt{\underline{#1} #2}} \begin{document} \noindent \z[First]{Second}\\ \z{Only} \end{...
0
votes
1answer
49 views

White space before the landscape table

I have big table and I want it to be placed on whole page horizontally. I used \landscape but the problem is generating half page of white space before the table and the remaining of the text comes ...
0
votes
1answer
34 views

Get rid of extra horizontal space between words in bibliography

There is additional horizontal whitespace between words in my bibliography entries. I assume latex does this to align line breaks. But this whitespace is too large. I want to remove the extra ...
2
votes
1answer
49 views

Fitting a table in 2 column paper format

I am having a hard time trying to fit a table in my 2 column latex paper. \documentclass[nocrop]{bioinfo} \usepackage[english]{babel} \usepackage{dsfont} \usepackage{natbib} \...
1
vote
1answer
60 views

trouble matching %s in LuaTeX argument containing LaTeX command

I hope I can communicate this clearly. I've been trying to pass an argument to a Lua function that contains LaTeX commands. Normally this works fine, but if Lua tries to match/sub %s within this ...
1
vote
1answer
35 views

How can I make two adjacent images have NO whitespace?

This is sort a follow-up to my question How can I make a series of images (with some text) flow with minimal whitespace?. There are a couple differences from that question that hopefully simplify ...
0
votes
1answer
29 views

Blank space left about litemized list. How to remove this vertical space?

I am trying to remove vertical space inserted when I start a itemized list inside a table using the \tabular command: \begin{tabular}{@{} p{0.18\textwidth}|p{0.82\textwidth}} \raggedright \textbf{...
5
votes
3answers
310 views

\somepenalty=10000 vs. \somepenalty 10000 vs. \somepenalty10000

Replacing the equality symbol with a space below or omitting the symbol at all \documentclass{article} \pagestyle{empty} \usepackage{lipsum} \begin{document} \interlinepenalty=10000 % or \...
1
vote
0answers
13 views

Whitespace lost with fixme PDF margin notes (pdfcmargin)

When using the fixme package with pdfmargin layout a whitespace is lost. This minimal example \pdfoutput=1 \documentclass{article} \usepackage{fixme} \fxsetup{draft,layout=pdfmargin} \begin{document}...
0
votes
1answer
55 views

Wrap item with vertical margin

I have some cases where I will have an item in between two paragraphs. For example: Alfa bravo: \includegraphics{a.jpg} charlie delta: \begin{verbatim} echo foxtrot \end{verbatim} golf hotel the ...
1
vote
0answers
21 views

Spurious space using \path (wihout draw options) [duplicate]

I'm trying to extract coordinates from a named coordinate, then to use it for an additional drawings in the next code \documentclass[tikz, border=0.5]{standalone} \usepackage{tikz} \usepackage{...
0
votes
0answers
36 views

Large amount of whitespace between figure and text. Using vspace doesn't work

I have the following figure: \begin{figure}[t!] \centering \includegraphics[width = \columnwidth]{figures/fig.pdf} \caption{Caption} \label{fig:pipeline} \end{figure} There is a ...
0
votes
0answers
28 views

weird space between url and https, using \bibliography (bibtex)

currently, I'm preparing my references using \bibliography{mybibfile} and at the beginning, the URL was too long in my references. So, I found that I should use: \usepackage[hyphens]{url} \...
1
vote
0answers
58 views

Phantom does not work without protected keyword in xdef [duplicate]

I'm trying to align labels, but it seems that space has a different width then digits are. \documentclass[tikz, border=0.5]{standalone} \usepackage{tikz} \makeatletter \newcommand*\bigcdot{\...
0
votes
0answers
19 views

When using description/item, long item names add and extra empty line

When using description/item, long item names add and extra space. I would like to know if there is a way to remove the extra empty lines that appear after items named "This item name is longer than ...
2
votes
0answers
149 views

A valid alternative(s) to siunitx package [duplicate]

Although this question is very simple in the substance, I would like to ask it anyway. Visibly if I use the comma within the mathematical environment you can see a small space that I have underlined ...
1
vote
1answer
32 views

Undesirable empty spaces between rows while using longtable

I am using longtable which consist of 4 columns & 7 rows of reasonably consist of long sentences. The problem is that when one row was typeset it leaves more space on that page & prints the ...
0
votes
0answers
23 views

Reduce Space Between Graphs in LaTeX Multicolumn and Only Post One Group of Images at Top of Each Page

So i'm creating an academic paper using usenix format - https://www.usenix.org/conferences/author-resources/paper-templates, with 2 columns and i would like these 2 lines of graphs to be at the top ...
3
votes
3answers
104 views

Increase the vertical space in a fraction

I intend to create a vertical space between the number 39 and the horizontal bar of the fraction, so as not to get crowded. How can I create the vertical space? \documentclass[a4paper,11pt]{book} \...
1
vote
0answers
81 views

How to remove the whitespace for this section in YAAC resume?

I am building up my CV in Latex using this cv format YAAC: Another Awesome CV. But the projects section in metadata class is creating whitespace and that makes my cv very weird. I have tried \...
1
vote
1answer
96 views

How to measure “whitespace” surrounding \textbullet?

There is a space on both sides of \textbullet as well as below it, and the space is actually part of the bullet itself. Does anyone have any idea how to measure it? I want to get rid of it by using ...
0
votes
1answer
241 views

How to remove white space after table and before new section?

Kindly please help me soon, I must submit my paper as soon as possible and still there is a problem and white space and though I used htp for table, my table come between the text! also, I've searched ...
1
vote
0answers
71 views

How to add white space to variables? [closed]

I use variables in math mode with subscripts before and after the variable name itself, like {}_{B}\vec{a}_{GP}^{} In case I have equations where these are multiplied, one cannot tell which ...
3
votes
4answers
185 views

Whitespace characters

I am defining a command that uses an subscript somewhere. I want the subscript to dissappear when I leave its corresponding command-input open, but then LaTeX will trow an error since no character was ...
0
votes
1answer
49 views

how to break line \mychapter on page but not in toc

how to line break this \mychapter? if i use \chapter i can break line using \chapter[line 1 line 2]{line 1 \\ line 2} \documentclass{report} \newcommand{\mychapter}[2]{ \setcounter{chapter}{#1} ...
1
vote
1answer
28 views

adding space upper and down Image

I have more sequences of the image with the text between there, from this post I resolve the problem of the withe space but now I have too a little space from the image. I want to add the space upper ...
0
votes
0answers
42 views

Removing white space in LyX from table

I am using LyX and am trying to fit a table in the an A4 size. I have managed to get the table in landscape however I am not sure how I can make it in the centre. I already have tried using the ...
2
votes
1answer
39 views

Unwanted white space on left side of Tikz Picture

I am trying to recreate this: This is what I have so far: You might not be able to tell from this image, but there is some white space to the left of the picture, and I'm not sure why. I was ...
2
votes
1answer
38 views

How to add a non-breaking space after “ed. by” in BibLaTeX?

I tried this: \DefineBibliographyStrings{english}{% byeditor={ed.~by\penalty10000}, } but it didn't work. Any other ideas?
4
votes
1answer
93 views

TikZ Overlay: Inject content at the start of the next paragraph?

Problem Statement I'd like to conditionally add a TikZ overlay at the start of some paragraphs or figures. In this example (see code below), I'd like to conditionally insert red boxes around the ...
1
vote
1answer
53 views

Latex only letting me put 3 subsection per page, then the numbering starts pilling up unless I add a new page

I´m trying to make some specifications fit on one page, but the \subsection{} command keeps messing things up unless I create a \newpage. I'm using overleaf. When I do this: \documentclass[11pt, ...
0
votes
1answer
113 views

Remove blank page at the beginning of document

*Edited from original post to provide minimal working example as otherwise the question is useless as pointed out in the comments. I'm trying to create a simple A4 page document with a figure (a tikz ...
5
votes
2answers
81 views

Shift children and subtrees horizontally in forest

I am trying to draw a tree diagram with forest package. In order to have the diagram fitting within the page margins, I moved down the subtree of NastranBulkData object, as you can see from the image. ...
0
votes
1answer
84 views

Why does this scientific journal's LaTeX article template compile correctly on Ubuntu, but not on Windows?

I downloaded the "LaTeX article template" from this page: https://www.rsc.org/journals-books-databases/journal-authors-reviewers/author-tools-services/ I use Ubuntu, but am collaborating with someone ...
1
vote
1answer
89 views

Change the size of spaces between words in TikZ environment

I tried to change size of spaces between all words (inter word spacing) in a TikZ node but it seems not working. Anyone knows another approach that could work? \documentclass[12pt]{article} \...