New answers tagged spacing
0
votes
NewDocumentEnvironment optional argument changes behaviour with \obeylines
The issue is "obviously" (*) that the optional argument grabber tries to tokenize the newline token, which normally has catcode 5 ("end of line") before \obeylines is executed ...
0
votes
How do I globally adjust/stretch the in-between vertical spacing of items in lists only when they include display style fractions in inline math mode?
Here is the way I come up with. Instead of figuring out whether there is \dfrac somewhere in the list and then change the sep, you can locally redefine \dfrac itself, so that it is a bit "taller&...
4
votes
Adding two diacritical points under letters
Totally different approach: Why not simply make use of Unicode's U+0323 COMBINING DOT BELOW and U+0324 COMBINING DIAERESIS BELOW?
Ḥāfiz̤, Shams-ud-Dīn Muḥammad
Other exampl̤e
5
votes
Adding two diacritical points under letters
With a very simple modification of your code:
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
\newcommand{\dd}[1]{%
\ooalign{#1\cr\hfil\raisebox{-.5ex}{\...
5
votes
Accepted
Adding two diacritical points under letters
\ooalign is not the right tool.
\documentclass{article}
\DeclareRobustCcommand{\dd}[1]{%
\vtop{%
\offinterlineskip
\ialign{%
##\cr % template
#1\cr % top line
\noalign{\...
6
votes
Adding two diacritical points under letters
Mimicking the plain definition for \d works well.
\makeatletter
\newcommand{\dd}[1]{{\o@lign{\relax#1\crcr \hidewidth\ltx@sh@ft{-1ex}.\kern-.1em.\hidewidth}}}
\makeatother
{\Huge
\d{H}\={a}fi\dd{...
1
vote
Accepted
Grouped Bar chart - scaling problem
You need set ytick=data. You are better to see the enlarge limit effect when there are axis lines drawn. Enlarge limit will make the two bars plot drawn in the proper distance. Also you axis height is ...
4
votes
How to add spacings within one line?
You need to set a higher value to \lineskiplimit (standard is 0pt) and to \lineskip (standard is 1pt).
\documentclass[a4paper]{article}
\usepackage{unicode-math}
\unimathsetup{bold-style=ISO,sans-...
0
votes
How to add spacings within one line?
\usepackage[linespread=1.5]{ctex} or \linespread{1.5} or using \renewcommand\baselinestretch{1.5}
all these commands should write after loading ctex
0
votes
avoid space after commas used as thousands separator in math mode
If you want an upper punctuation (freistehender Hochpunkt) without empty space in a math environment try \dot\,
example:
$ 14\dot\,000\dot\,000 \cdot \mbox{0,6} = 8\dot\,400\dot\,000 $
which will ...
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}
\...
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 ...
0
votes
Weird word breaks in table
Ok, here is some analysis and some trials to approach your desired result a little bit more. All changes where done with the questions in mind "does it compile?" and "do I move into the ...
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 ...
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 ...
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 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
\...
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.
...
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
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. ...
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{$\...
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, ...
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
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$ ...
0
votes
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
Another solution is using a makebox:
\begin{itemize}
\item \makebox[0.5\linewidth]{some text\hfill}see the gap
\item \makebox[0.5\linewidth]{A\hfill}B
\end{itemize}
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}
...
0
votes
Accepted
Roman pagenumbering on top with horizontal lines
Unfortunaly there is no MWE (minimal working example) in the question and I do not know which document class is used.
Do not load both packages fancyhdr and scrlayer-scrpage in a document. If you ...
0
votes
Text copied from pdf is missing spaces, or has extra ones
Try to use google chrome as viewer, for it helped to copy text with normal spaces
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 ...
0
votes
Space size before a title in the Article class
(code adapted from this answer to the query how does '\maketitle' work?)
I will being by assuming that you do not specify the option titlepage while using the article document class. (Do let me know ...
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 \, \...
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 (...
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 ...
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}
@...
0
votes
Accepted
Getting spacing right with hangindent
The problem is that the spaces in the formula participate in stretching or shrinking for justification, whereas in the box you measure the hanging indent with those spaces are fixed.
You need to “...
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
....\...
Top 50 recent answers are included
Related Tags
spacing × 7385math-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 × 224
line-spacing × 211
formatting × 204
amsmath × 192
tikz-pgf × 186
beamer × 186
align × 173
line-breaking × 164
itemize × 140
graphics × 139
captions × 135
environments × 135
indentation × 128
titlesec × 122