14
votes
Accepted
Extra spacing on the left of operator?
Typing in
|\sin x|
is a very common error and my eyes bleed every time I see it.
The problem is that | is treated as an ordinary symbol, which makes it handy to type |x|, but fails miserably when one ...
6
votes
Why is there a space before the last full stop in the citation?
Never trust Google Scholar for BibTeX data. The article you're citing is not in a journal, but in a collection. You find it here
Here's a better BibTeX entry:
\begin{filecontents*}{\jobname.bib}
@...
6
votes
Extra space between fractions
You can check whether another \myfrac follows and, in this case, add \;.
\documentclass{article}
\usepackage{amsmath}
\makeatletter
\newcommand{\myfrac}[1]{%
\dfrac{\int\limits_0^{#1} x^2 \, \...
4
votes
Remove indentation
Something like this? (If the outcome of wide=0pt is too extreme for your taste, give left=0pt a try.)
\documentclass[12pt]{article}
\usepackage[hmargin=1.27cm,top=0.7cm,bottom=1.3cm]{geometry}
\...
4
votes
Accepted
Extra space in a math expression
You could simplify the example to
\documentclass{article}
\showoutput
\begin{document}
$df$ $d\hspace{0pt}f$
\end{document}
Which produces
....\mathon
....\OML/cmm/m/it/10 d
....\kern-1.66667
....\...
3
votes
Accepted
How can I automatically overwrite a wrapped line?
baselineskip set to 0pt
\documentclass{article}
\begin{document}
\setlength\baselineskip{0pt}
\setlength\lineskiplimit{-\maxdimen}
These are some words that I'd like to overwrite when they wrap ...
3
votes
Accepted
What is `\mathopen{}` for?
Some people write ]-1,1[ to denote the open interval from -1 to 1. The default TeX math status of the characters [ and ] is mathopen and mathclose, respectively. To properly typeset the open interval ...
2
votes
Accepted
Vertical spacing between equation and itemize environments
Here is a solution:
with a patch for lists in beamer.
using gather* (from amsmath package) instead of equation*
Note: An equation in the last item of a list is only distinguished from an equation ...
2
votes
Accepted
How to remove spacing after centering
Use \centering instead of the center environment which adds space after the environment.
% centerprob.tex SE 645778
\documentclass[fleqn,10pt]{article}
% END PREAMBLE
\begin{document}
\begin{...
2
votes
How to make vertical space around fancyvrb symmetric?
Using \showoutput, we can check the detail of latex how to type Verbatim env in the log file. The problem seems relate to the frame. When involve the frame, the output before the top rule (left figure)...
2
votes
Accepted
Equal spaces between my entries in my column
I suppose you're looking to use a tabular* rather than a tabularx environment. The widths of both environments are set to \textwidth in the following example. I suggest using the S column type (...
2
votes
Flexible sized underline
As others commented, \hrulefill is your friend, but you probably want to simplify your input and avoid doing repetitive and boring things (which are prone to error; indeed you talked about five boxes, ...
2
votes
Accepted
how can I diagnose inserted vertical (rubber) space?
\showoutput logs the internal box structure, you can use \showboxdepth to limit the log to the main vertical list, eg
\documentclass{article}
\usepackage{amsmath}
\showoutput
\showboxdepth=3
\...
2
votes
Accepted
Using different font sizes and double spacing to be same as in MS Word
Well — you should never use explicit font sizes in LaTeX; that should be a task for the document class designer to select a coherent set of fonts.
But you can have rope to hang yourself if you want. ...
2
votes
Accepted
Remove indentation
By use of the modified description list as suggested @Marco Daniel answer in your case enable to write a bit shorter and simpler code:
\documentclass[12pt]{article}
\usepackage{geometry}
\usepackage{...
2
votes
Weird word breaks in table
My main recommendation is that you employ landscape mode for the table. In the code below, this is accomplished by (a) loading the rotating package and (b) using the package's sidewaystable ...
1
vote
Weird word breaks in table
Using tabularray package, \small font size, and rotate table as suggested {Mico in his nice answer (+1):
\documentclass[11pt,fleqn,demo]{article}
\usepackage{geometry}
\usepackage[T1]{fontenc}
\...
1
vote
Accepted
Setting left margin in itemize pushes right-margin to be unaligned to section-right
Unless you're getting different results from me, the problem isn't that they're not right aligned. The problem is that the items inside the lists started with \resumeSubHeadingListStart are typeset ...
1
vote
Weird space before each bibliography in beamer
As noted in the comments, redefining \item is having unintended consequences on the bibliography, since the \bibitem command used in the bibliography file contains commands defined in terms of \item.
...
1
vote
Increase the space around \circ in script style
I'm not sure you can coerce tikz-cd to apply this to all labels, but it works with the explicit command.
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz-cd}
\newcommand{\cdl}[1]{\text{$\...
1
vote
Flexible sized underline
You can use \leaders TeX primitive:
\def\ulinefill{\noindent\null\leaders\vrule depth2.4pt height-2pt\hfill}
\begin{document}
\framebox{\begin{minipage}{0.7\textwidth}
\ulinefill\,$\square$ $\square$ ...
1
vote
Is it possible to use Tab space to create a horizontal space and then align the texts ? I used \quad and \qquad but it doesn't work
There is also the tabto package.
\documentclass{article}
\usepackage{tabto}
\def\t{\tabto{8cm}}
\begin{document}
\begin{itemize}
\item Structure porteuse (y. c. infrastructure) \t 75 ans
\...
1
vote
Accepted
Is it possible to use Tab space to create a horizontal space and then align the texts ? I used \quad and \qquad but it doesn't work
The default spacing between two columns is 2\tabcolsep, but you can replace it by adding @{\qquad} (for example) between the columns (ll) in the argument list.
\documentclass{article}
\begin{document}
...
1
vote
Accepted
TOC spacing problem
Is it something like this you're after? (I removed irrelevant code from the example). BTW: I don't understand the purpose of the redefinition of \@makechapterhead and \@makesectionhead, use the build ...
1
vote
Accepted
How to fix "Underfull \hbox (badness 10000) in paragraph " in a two-column format?
You should allowed that your list can be broken. For possible ways see answers on question allowing-line-break-at-in-inline-math-mode.
Not used global option is lettersize in documentclass options.
...
1
vote
Accepted
Limit interword shrinking without affecting the normal interword spacing
The amount of shrinkability is defined by the font metrics of the current font. Its value can be retrieved as \fontdimen4\font and it should be compared to the standard interword space, residing in \...
1
vote
Limit interword shrinking without affecting the normal interword spacing
REVISED ANSWER
My original answer still provides useful information so I leave it below. However, the OP, in revising the question would seem to like to specify the default interword space (\...
1
vote
Set exact spacing value between rows in array environment
You may try tabularray package: option stretch=0 removes the struts, and option rowsep=0.5\jot sets the exact spacing.
\documentclass{article}
\usepackage{tabularray}
\usepackage{amsmath}
\begin{...
1
vote
Typing vector space Rn in LaTeX
Your code is wrong in two respects:
V and the equals sign should be part of the formula
the exponent n should be outside of \mathbb
So
$V=\mathbb{R}^n$
would be the correct code.
Don't think to $ ...
Community wiki
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
spacing × 7380math-mode × 656
tables × 628
sectioning × 308
equations × 304
horizontal-alignment × 272
lists × 272
table-of-contents × 264
macros × 248
floats × 238
vertical-alignment × 237
paragraphs × 222
line-spacing × 211
formatting × 204
amsmath × 192
tikz-pgf × 186
beamer × 186
align × 173
line-breaking × 164
itemize × 140
graphics × 139
captions × 135
environments × 134
indentation × 128
titlesec × 122